Description
Hi, my name is Ruby. I like converting characters into ascii values and then calculating the sum.
Exploit
Let me count the ascii values of 10 characters: |
So, now we know the matching regular expression. However, we can’t achieve the target score by input only 10 [a-f] characters.
Let me count the ascii values of 10 characters: |
To input more characters, I make use of the feature of Ruby’s regular expression describe in this post.
^ for start-of-string and $ for end-of-string ARE just new lines - \n!
Using following pattern, we can make the sum more than 1020 and get the flag.
1 | from pwnlib.tubes.remote import remote |
Flag:
IW{RUBY_R3G3X_F41L}