Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

thepeanutguy commented Feb 13, 2018

Absolute best for #2 is str_rot13.

@krowinski

This comment has been minimized.

krowinski commented Feb 14, 2018

for #6 u can use

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

@wakabadou

This comment has been minimized.

wakabadou commented Feb 15, 2018

for #9 u can use

!1

@hnw

This comment has been minimized.

hnw commented Feb 15, 2018

1. is also the absolute best for #3.

@andrewbo

This comment has been minimized.

andrewbo commented Feb 20, 2018

#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