Created
July 15, 2021 13:59
-
-
Save oldkingcone/7a61d80fa7bff9b30e7368eb3ec1ba74 to your computer and use it in GitHub Desktop.
Leakix script to run from your command line. this is quite useful when you have only the CLI to work with.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if test $# -lt 1;then | |
echo "Missing params you dunce. If you have forgotten, use h to print the help menu." | |
else | |
case $1 in | |
"h") | |
echo $0 "[h/l/q] host or protocol" | |
echo "If using q, you will need to specify the url encoded version. I am lazy and havent gotten around to adding in an array to test for this." | |
echo "h displays this menu and exits." | |
echo "l searches for host" | |
echo "q searches for query, went with q, because q is in the get request. dont judge me. You also need the scope of what you are looking for." | |
;; | |
"l") | |
proxychains curl -vsqH'Accept: application/json' "https://leakix.net/host/$2" -H "User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0" | |
;; | |
"q") | |
proxychains curl -vsqH'Accept: application/json' "https://leakix.net/search?q=$2&scope=$3&page=0" -H "User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0" | |
;; | |
esac | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment