summaryrefslogtreecommitdiffstats
path: root/Reaktor/commands
diff options
context:
space:
mode:
authorEUcancER <root@euer.krebsco.de>2012-04-18 23:16:39 +0200
committerEUcancER <root@euer.krebsco.de>2012-04-18 23:16:39 +0200
commit4d756ac98601b17be326882207e42f842e23cacc (patch)
treec2b8d9e8d1b1f1121d55b4c4186d0f90e53792c1 /Reaktor/commands
parent24ba6f739de8c5ca478bebd039e5e9dca405531e (diff)
Reaktor: cleanup
Diffstat (limited to 'Reaktor/commands')
l---------[-rwxr-xr-x]Reaktor/commands/revip48
l---------Reaktor/commands/subdomains1
2 files changed, 2 insertions, 47 deletions
diff --git a/Reaktor/commands/revip b/Reaktor/commands/revip
index b4920f52..e2c3b7ab 100755..120000
--- a/Reaktor/commands/revip
+++ b/Reaktor/commands/revip
@@ -1,47 +1 @@
-#!/usr/bin/python
-# fork from darkb0t v0.4
-# modularized and extended
-import sys
-import os
-import json
-import socket
-import httplib
-from urlparse import urlparse
-try:
- target = sys.argv[1]
-except:
- print "Usage: %s [target]" % sys.argv[0]
- exit(0)
-
-print "Reverse IP Search"
-print "Target: ",target
-try:
- hostname,aliases,ip = socket.gethostbyaddr(target)
-except:
- print "Cannot resolve `%s`!" % target
- exit (1)
-print "IP: ",ip[0]
-sites = {target : "", hostname : ""} # make entries unique
-for a in aliases:
- sites[a] = ""
-offset = 0
-appid = os.environ.get("BING_APPID",'7A0B8DA3E913BE5ECB4AF11C7BC398B43000DC1C')
-while offset < 300:
- url ="/json.aspx?AppId=%s&Query=ip:%s&Sources=Web+RelatedSearch+News+Image+Video&Version=2.2&Market=en-us&Web.Count=50&Web.Offset=%s&Web.Options=DisableQueryAlterations" % (appid, ip, offset)
- conn = httplib.HTTPConnection("api.bing.net")
- conn.request("GET", url)
- res = conn.getresponse()
- doc = json.load(res)
- try:
- results = doc["SearchResponse"]["Web"]["Results"]
- conn.close()
- for res in results:
- sites[urlparse(res['Url'])[1]] = ""
- offset += 50
- except:
- break
-print "Total: ", len(sites), " dns name(s)\n"
-num = 1
-for s in sites:
- print "["+str(num)+"/"+str(len(sites))+"] : "+s
- num += 1
+../repos/revip/revip \ No newline at end of file
diff --git a/Reaktor/commands/subdomains b/Reaktor/commands/subdomains
new file mode 120000
index 00000000..0489555f
--- /dev/null
+++ b/Reaktor/commands/subdomains
@@ -0,0 +1 @@
+../repos/consolidate_dns/index \ No newline at end of file