Skip to content

Instantly share code, notes, and snippets.

@bordeux
Last active February 20, 2018 18:21
Show Gist options
  • Save bordeux/2f679dea12248983dac352da1a34e531 to your computer and use it in GitHub Desktop.
Save bordeux/2f679dea12248983dac352da1a34e531 to your computer and use it in GitHub Desktop.
Solutions to returntrue.win
1. !0
2. function(){return 'true';}
3. !0
4. 0
5. 𪒧
6. $GLOBALS[v] = create_function('', 'return $GLOBALS[v];')
7. (object)[!0]
8. new class extends Bar{}
9. N //or NaN (if you do not like errors)
10. function(&$x){$x=new Bar(1);}
11. []
@thepeanutguy
Copy link

Absolute best for #2 is str_rot13.

@krowinski
Copy link

krowinski commented Feb 14, 2018

for #6 u can use

($x=session_id)($x).$x

@wakabadou
Copy link

for #9 u can use

!1

@hnw
Copy link

hnw commented Feb 15, 2018

1. is also the absolute best for #3.

@andrewbo
Copy link

#10 may be diminished to function(&$x){$x=new$x(1);}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment