splitline / PHPFuck

PHPFuck: ([+.^]) / Using only 7 different characters to write and execute php.
https://splitline.github.io/PHPFuck/
MIT License
401 stars 37 forks source link

7 is too many #6

Open arxenix opened 3 years ago

arxenix commented 3 years ago

You can do it in 5 :)

arxenix commented 3 years ago

currently being run as a challenge for UIUCTF'21 if you would like to try http://phpfuck-fixed.chal.uiuc.tf

arxenix commented 3 years ago

Now that the CTF is officially over: a working charset is (^.9)

some teams had solutions that were in fact simpler than this (using same charset), but here is my original approach,

after arbitrary string generation, the rest is based off of @splitline 's ideas

How it works

splitline commented 3 years ago

Cool, I only know a 6 charset trick before, nice work!

lexsd6 commented 3 years ago

Excuse me, can you share which six characters? I'm interested in it

arxenix commented 3 years ago

@lexsd6 See my above comment for the charset and explanation. you can do it with only 5 characters

lebr0nli commented 3 years ago

Excuse me, can you share which six characters? I'm interested in it

@lexsd6 You can use ([^.]) to do it. https://github.com/lebr0nli/PHPFun (Ideas and code are inspired and based on PHPFuck and jsfuck :p)