Removed silly subdomain module

Hannah Ward 2016-09-01 16:14:25 +01:00
parent 4e3300d66c
commit 4f923d6606
No known key found for this signature in database
GPG Key ID: BA89E572EE1B4C5F
1 changed files with 0 additions and 62 deletions

View File

@ -1,62 +0,0 @@
import json
import os
import subprocess
import requests
import tempfile
misperrors = {'error': 'Error'}
mispattributes = {'input': ['domain'], 'output': ['domain']}
# possible module-types: 'expansion', 'hover' or both
moduleinfo = {'version': '1', 'author': 'Hannah Ward',
'description': 'Attempt to brute force subdomains',
'module-type': ['expansion']}
# config fields that your code expects from the site admin
moduleconfig = ["use_top_n_subdomains"]
domains = requests.get("").text.split("\n")[:-1]
def handler(q=False):
global domains
if q is False:
return False
request = json.loads(q)
r = {"results": []}
f = tempfile.NamedTemporaryFile(delete=False, prefix="domains", mode="w")
print("Saving domains to {}".format(
print("Searching for subdomains of {}".format(request["domain"]))
print("Using {} domains".format(request["config"]["use_top_n_subdomains"]))
print("Turning on tor...")[".","torsocks","on"])
proc = subprocess.Popen(["knockpy", "-w",, request["domain"]],
print("Turning off tor...")[".","torsocks","off"])
out,err = proc.communicate()
r["results"] = {'values':out.split("\n"), "types":'domain'}
return r
def introspection():
return mispattributes
def version():
moduleinfo['config'] = moduleconfig
return moduleinfo