Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding call to whois command tool #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions snitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

try:
from optparse import OptionParser
import urllib, json, re, socket, signal, time, random, sys
import urllib, json, re, socket, signal, time, random, subprocess, sys
except:
print "\n[!] Some python modules are missing!"
exit()
Expand Down Expand Up @@ -415,7 +415,7 @@ def dork(url, dork):
)

for x in dork.split(','):
if x in 'all,info,ext,docs,files,soft':
if x in 'all,info,ext,docs,files,soft,whois':
if x == 'info' or x == 'all':
print "\n[+] Looking for information leaks" "\n"
for y in dorkleak:
Expand All @@ -436,12 +436,13 @@ def dork(url, dork):
print "\n[+] Looking for web software\n"
for y in dorksoft:
find(y+"site:"+url)

if x == 'whois' or x == 'all':
print "\n[+] Looking for domain register\n"
subprocess.call(['whois', url])
else:
print "\n[!] Wrong dork type specified!"
exit()


def setproxy(ip, port):
try:
socket.inet_aton(ip)
Expand Down Expand Up @@ -484,6 +485,7 @@ def setproxy(ip, port):
docs Documents & Messages
files Files & Directories
soft Web software
whois Information about domain owner
all All
"""
else:
Expand Down