Skip to content

Commit

Permalink
Make multi-host attack scale better
Browse files Browse the repository at this point in the history
  • Loading branch information
albinowax committed Jan 31, 2019
1 parent f8602d1 commit 9770232
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions resources/examples/multiHost.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
# Please note the stats panel won't reflect reality on multi-host attacks, and this example script isn't optimised for scale
# Please note the stats panel won't reflect reality on multi-host attacks
def queueRequests(target, wordlists):
req = '''GET / HTTP/1.1
Host: %s
Connection: keep-alive
'''
for domain in open('your domain list here'):
engines = {}
for domain in open('/tmp/domains'):
domain = domain.rstrip()
engine = RequestEngine(endpoint='https://'+domain+':443')
engine.start()
engines[domain] = engine

for i in range(3, 8):
for i in range(3, 8):
for (domain, engine) in engines.items():
engine.queue(req, randstr(i)+'.'+domain, learn=1)

for word in open('/usr/share/dict/words'):
engine.queue(req, word.rstrip()+'.'+domain)
for word in open('/tmp/words'):
word = word.rstrip()
for (domain, engine) in engines.items():
engine.queue(req, word+'.'+domain)


def handleResponse(req, interesting):
Expand Down

0 comments on commit 9770232

Please sign in to comment.