\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