Skip to content

Instantly share code, notes, and snippets.

@volpino volpino/client.py
Created Apr 20, 2015

Embed
What would you like to do?
pctf cryptoserv client
from socket import socket
import struct
def q(word):
return struct.pack("<I", word)
message = "\x00\x00\x06\x00AAAA"
message += "\x00\x01\x07\x00AAAA"
message += "\x0c\x00\x00\x00AAAA"
plain = "AAAAAAAA"
s = socket()
#s.connect(('127.0.0.1', 4141))
s.connect(('52.4.141.125', 4141))
s.send(q(len(bytecode) / 8))
s.send(q(len(plain)))
s.send("\x00" * 8)
s.send(bytecode)
s.send(plain)
print repr(s.recv(1024))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.