Skip to content

Instantly share code, notes, and snippets.

@jeremypruitt
Last active August 31, 2019 03:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeremypruitt/6fe409361396515b005d09f75881c5e0 to your computer and use it in GitHub Desktop.
Save jeremypruitt/6fe409361396515b005d09f75881c5e0 to your computer and use it in GitHub Desktop.
Awesome Security CLI Commands

Awesome Security CLI Commands

ffuf

A go-based single-binary and very fast replacement for both gobuster and wfuzz. It can perform both dirbuster style URL path/extension-specific fuzzing, and also URL param fuzzing.

Wfuzz style of URL param fuzzing:

$ ffuf -w /usr/share/commix/src/txt/passwords_john.txt \
       -u 'http://eve.example.com/url/path?username=alice&password=FUZZ' \
       --fw 3 \
       -c

Dirbuster/gobuster style of URL path fuzzing:

$ ffuf -w /usr/share/dirbuster/wordlists/directory-list-2.3-small.txt \
       -u http://eve.example.com/url/path/FUZZ \
       -e php

sudo_killer

Lorem iosum bacon...

$ sudo_killer.sh -c -r report.txt -e /tmp/

To update the CVE database:

$ ./cve_update.sh

Misc HTTP

POST using netcat Sometimes curl and wget just aren't avialble, or you are using busybox which has a version of wget that can only GET, not POST.

POST_PATH="/login.cgi"
HOST=199.188.1.99
BODY="Put here HTML body...."
BODY_LEN=$( echo -n "${BODY}" | wc -c )

echo -ne "POST ${POST_PATH} HTTP/1.0\r\nHost: ${HOST}\r\nContent-Type: application/x-www-form-urlencoded\r\nContent-Length: ${BODY_LEN}\r\n\r\n${BODY}" \
|  nc -i 3 ${HOST} 80

source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment