bug fix for gen_load

This commit is contained in:
Kkevsterrr 2019-12-13 08:14:37 -05:00
parent c26e62240a
commit be5fac92be
1 changed files with 2 additions and 1 deletions

View File

@ -180,6 +180,7 @@ class Layer():
value = urllib.parse.unquote(value)
value = value.encode('utf-8')
# Add support for injecting arbitrary protocol payloads if requested
dns_payload = b"\x009ib\x81\x80\x00\x01\x00\x01\x00\x00\x00\x01\x08examples\x03com\x00\x00\x01\x00\x01\xc0\x0c\x00\x01\x00\x01\x00\x00\x01+\x00\x04\xc7\xbf2I\x00\x00)\x02\x00\x00\x00\x00\x00\x00\x00"
http_payload = b"GET / HTTP/1.1\r\nHost: www.example.com\r\n\r\n"
@ -194,7 +195,7 @@ class Layer():
as a field properly.
"""
load = ''.join([random.choice(string.ascii_lowercase + string.digits) for k in range(10)])
return random.choice(urllib.parse.quote(load))
return urllib.parse.quote(load)
class IPLayer(Layer):