1

I want to create own wordlist, with the following options:

crunch 4 4 abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789`~!@#$%^&*()_+-=[]{}\|'";:/?.>,</ -o out.txt

but the result output getting this error: bash: !@#: event not found

John Kugelman
  • 349,597
  • 67
  • 533
  • 578
Aso
  • 603
  • 7
  • 16
  • 1
    The exclamation point is used in history substitution. See https://www.gnu.org/software/bash/manual/html_node/Event-Designators.html – Shawn Aug 23 '21 at 22:39

1 Answers1

2

You have to properly escape and quote special characters.

command 'abc....}\|'\''".../'
                    ^^        - preserve literal single quote by escaping it
        ^          ^  ^     ^ - put other stuff in single quotes

Research "shell quoting" for more info.

KamilCuk
  • 120,984
  • 8
  • 59
  • 111