peass-ng / PEASS-ng

PEASS - Privilege Escalation Awesome Scripts SUITE (with colors)
https://book.hacktricks.xyz
Other
16.06k stars 3.09k forks source link

Error running script locally #12

Closed hexrom closed 4 years ago

hexrom commented 4 years ago

$ ./linpeas.sh cut: you must specify a list of bytes, characters, or fields Try cut --help' for more information. ./linpeas.sh: line 60: -d: command not found cut: option requires an argument -- d Trycut --help' for more information. ./linpeas.sh: line 60: : command not found Usage: grep [OPTION]... PATTERN [FILE]... Try grep --help' for more information. ./linpeas.sh: line 75: AT: command not found tr: missing operand Trytr --help' for more information. ./linpeas.sh: line 154: \n: command not found Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...

-n, --quiet, --silent suppress automatic printing of pattern space -e script, --expression=script add the script to the commands to be executed -f script-file, --file=script-file add the contents of script-file to the commands to be executed -i[SUFFIX], --in-place[=SUFFIX] edit files in place (makes backup if extension supplied) -c, --copy use copy instead of rename when shuffling files in -i mode (avoids change of input file ownership) -l N, --line-length=N specify the desired line-wrap length for the `l' command --posix disable all GNU extensions. -r, --regexp-extended use extended regular expressions in the script. -s, --separate consider files as separate rather than as a single continuous long stream. -u, --unbuffered load minimal amounts of data from the input files and flush the output buffers more often --help display this help and exit --version output version information and exit

If no -e, --expression, -f, or --file option is given, then the first non-option argument is taken as the sed script to interpret. All remaining arguments are names of input files; if no input files are specified, then the standard input is read.

E-mail bug reports to: bonzini@gnu.org . Be sure to include the word sed'' somewhere in theSubject:'' field. ./linpeas.sh: line 155: s/|daemon|/|daemon[\s:]|^daemon$|/: No such file or directory ./linpeas.sh: line 154: and: command not found tr: missing operand after \\n' Two strings must be given when translating. Trytr --help' for more information. ./linpeas.sh: line 157: |: command not found Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...

-n, --quiet, --silent suppress automatic printing of pattern space -e script, --expression=script add the script to the commands to be executed -f script-file, --file=script-file add the contents of script-file to the commands to be executed -i[SUFFIX], --in-place[=SUFFIX] edit files in place (makes backup if extension supplied) -c, --copy use copy instead of rename when shuffling files in -i mode (avoids change of input file ownership) -l N, --line-length=N specify the desired line-wrap length for the `l' command --posix disable all GNU extensions. -r, --regexp-extended use extended regular expressions in the script. -s, --separate consider files as separate rather than as a single continuous long stream. -u, --unbuffered load minimal amounts of data from the input files and flush the output buffers more often --help display this help and exit --version output version information and exit

If no -e, --expression, -f, or --file option is given, then the first non-option argument is taken as the sed script to interpret. All remaining arguments are names of input files; if no input files are specified, then the standard input is read.

E-mail bug reports to: bonzini@gnu.org . Be sure to include the word sed'' somewhere in theSubject:'' field. ./linpeas.sh: line 162: s/|/\|/g: No such file or directory

hexrom commented 4 years ago

Nevermind looks like script got mangled locally