News for hackers. Stuff that matters.
Re:OpenBSD now enforcing no invalid NUL characters in shell ... by IsTom on Tuesday September 24, 2024 @10:31AM (#41636856)
You can also create files named e.g. '--help' (if you're not particularly malicious) and with globbing it'll cause e.g. 'ls *' to print help.
Re:OpenBSD now enforcing no invalid NUL characters in shell ... by jasonjayr on Tuesday September 24, 2024 @10:38AM (#41636945)

    touch -- '-f ..'
(If you want to lay an evil trap)

Remember that in most option parsing libraries, putting '--' in your arguments stops option parsing, so you can safely run:

    rm -- '-f ..'