GinjaChris / pentmenu

A bash script for recon and DOS attacks
GNU General Public License v3.0
505 stars 216 forks source link

changed dns recon module so that it doesn't need whois #24

Closed xorond closed 8 years ago

xorond commented 8 years ago

removes unnecessary dependency whois

GinjaChris commented 8 years ago

How about this instead, we use whois if available, if it isn't, do the lookup on ipinfo.io? The benefit of whois is that it does both a lookup for both ip or name. ipinfo.io of course requires an ip, so I think we should take advantage of whois if it is installed. What do you think?

if ! [[ $? = 0 ]]; then
 nslookup $TARGET
 fi
sleep 1 && whois -H $TARGET
if ! [[ $? = 0 ]]; then
sleep 1 && curl ipinfo.io/$TARGET
fi
 }
 ## create pingsweep function
 pingsweep()
xorond commented 8 years ago

Sounds good. Adding the changes now.