Skip to content

Instantly share code, notes, and snippets.

@ecamellini
Created October 20, 2016 18:32
Show Gist options
  • Save ecamellini/cd30c1b65d9de3dd41e2e7c902cb910b to your computer and use it in GitHub Desktop.
Save ecamellini/cd30c1b65d9de3dd41e2e7c902cb910b to your computer and use it in GitHub Desktop.
hitconquals 2016 - regexpert
from pwn import *
solns = ['(?i)s.*e.*l.*e.*c.*t',
'^(a\g<1>*b)$',
r'(?!(xx+)\1+$)^xx+$',
r'^((.)\g<1>\2|.?)$',
r'^(?=(a\g<1>?b)c)a+(b\g<2>?c)$',
""]
r = remote('52.69.125.71',2171)
for s in solns:
crap = ""
while "=" not in crap:
crap = r.recv()
print crap
r.send(s + "\n")
print r.recv()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment