diff --git a/start.py b/start.py index 73f85f4..b429287 100755 --- a/start.py +++ b/start.py @@ -132,13 +132,19 @@ def payload_launcher(self): thread.start() def inject_exploit_html(self, html): - inject = b'
  • {EXP}
  • \n' - + inject = b'' data = b'' try: + i = 0 for exploit in os.listdir(EXPLOIT_LOC): if exploit != 'index.html': - data += inject.replace(b'{EXP}', bytes(exploit, 'utf-8')) + if i >= 3: + data += b'
    ' + i = 0 + url = '/exploits/{}/'.format(exploit) + temp = inject.replace(b'{EXP}', bytes(exploit, 'utf-8')) + data += temp.replace(b'{URL}', bytes(url, 'utf-8')) + i += 1 except IOError: pass