Last active
May 9, 2021 13:18
-
-
Save tanaka-geek/225d69345bdde317de9924c13f81f594 to your computer and use it in GitHub Desktop.
OSCP Buffer Overflow Template Script
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/python3 | |
import socket | |
host = "127.0.0.1" | |
port = 1337 | |
overflow = 'A' * 64 | |
eip = '' | |
paddings = '' | |
buff = overflow + eip + paddings | |
s = socket.socket(socket.AF_INET,socket.SOCK_STREAM) | |
print("[*] Connecting to %s:%d" % (host,port)) | |
s.connect((host,port)) | |
s.send(buff) | |
s.close() | |
print("[*] Payload sent!") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment