Created
October 20, 2016 18:32
-
-
Save ecamellini/cd30c1b65d9de3dd41e2e7c902cb910b to your computer and use it in GitHub Desktop.
hitconquals 2016 - regexpert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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