login/register

Snip!t from collection of Alan Dix

see all channels for Alan Dix

Snip
summary

If you don't know anything about php non alpha numeric c...
I used the following charset: $_=+();
As you can see only 7 chars.
In the end the function log will be created,because this ...
... it back to us. So the code will look like this $_=_($_)

InsertScript: PHP Non Alpha Numeric 7/6 Chars
http://insert-script.blogspot.co.uk/2012/12/php-non-alpha-numeric-76-chars.html

Categories

/Channels/just fun

[ go to category ]

For Snip

loading snip actions ...

For Page

loading url actions ...

If you don't know anything about php non alpha numeric code you should read Gareth Heys Tutorial first: Tutorial.

I used the following charset: $_=+();

As you can see only 7 chars.
In the end the function log will be created,because this won't exceed the memory limit. In the beginning I created the php function assert and it was 99 mb large php file, way too big to get executed.

Lets start

To begin with we need a way to get  a string. But how? To start with we can create numbers by increasing a non-existing variable:
$_=++$_+(++$_);$_=++$_+(++$_);

This will store the number 9 in $_. Ok, but with numbers we can't create any function name...

To Infinity and beyond

The simple trick is to count on to infinity, which will store the constant INF in $_. So the first big block of (++$_) is simple counting to infinity. But INF is a constant not a string, so we can't increase it. Now the alias _ for gettext helps. This function is nice, because it assumes that we meant the string INF and will pass it back to us. So the code will look like this $_=_($_)

HTML

If you don't know anything about php non alpha numeric code you should read Gareth Heys Tutorial first: <a href="http://www.thespanner.co.uk/2012/08/21/php-nonalpha-tutorial/">Tutorial</a>. <br> <br> I used the following charset: $_=+();<br> <br> As you can see only 7 chars.<br> In the end the function log will be created,because this won't exceed the memory limit. In the beginning I created the php function assert and it was 99 mb large php file, way too big to get executed.<br> <br> <h2> Lets start</h2> To begin with we need a way to get&nbsp; a string. But how? To start with we can create numbers by increasing a non-existing variable:<br> $_=++$_+(++$_);$_=++$_+(++$_);<br> <br> This will store the number 9 in $_. Ok, but with numbers we can't create any function name...<br> <br> <h2> To Infinity and beyond</h2> The simple trick is to count on to infinity, which will store the constant INF in $_. So the first big block of (++$_) is simple counting to infinity. But INF is a constant not a string, so we can't increase it. Now the alias _ for gettext helps. This function is nice, because it assumes that we meant the string INF and will pass it back to us. So the code will look like this $_=_($_)