Results 1 to 15 of 15

Thread: PHP - &

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: Jul:2002
    Location: The Bog of Eternal Stench
    Posts: 345

    PHP - &

    ,
    PHP- , . Win , PHP- , , / .

  2. #2
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    LocalSystem ( ), . , . , , - exec() ActiveX FileSystemObject, . CScript.exe, , ( 2.2 ) - Der Zugang war verboten.
    EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
    Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|

  3. #3
    hmm BornToDrink's Avatar
    Join Date: Aug:2005
    Location: .
    Posts: 11,573
    , - . remote , , unmap- drive-a.
    Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
    .

  4. #4
    Registered User
    Join Date: Jul:2002
    Location: The Bog of Eternal Stench
    Posts: 345
    - PHP- Administrator , ..

  5. #5
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    . . -. - IUSR_kaktobeshetam - UNC , . .
    EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
    Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|

  6. #6
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    . - - cgi? - , .
    EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
    Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|

  7. #7
    Registered User
    Join Date: Jul:2002
    Location: The Bog of Eternal Stench
    Posts: 345
    PHP- Apache-, . Administrator, .. , Bombera, .

  8. #8

    Join Date: Sep:2005
    Location: Sofia
    Posts: 18,517
    Quote Originally Posted by v_mihaylov View Post
    PHP- Apache-, . Administrator, .. , Bombera, .
    apache ? Apache?

  9. #9
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    SYSTEM , . . .
    .. , . Windows Scripting Host? Javascript, exec(), safe_mode, ?
    Last edited by Bombera; 3rd June 2008 at 18:23.
    EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
    Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|

  10. #10
    Registered User
    Join Date: Jul:2002
    Location: The Bog of Eternal Stench
    Posts: 345
    Quote Originally Posted by Bombera View Post
    SYSTEM , . . .
    , 10x

  11. #11
    Registered User
    Join Date: Jul:2002
    Location: The Bog of Eternal Stench
    Posts: 345
    Quote Originally Posted by Bombera View Post
    .. , . Windows Scripting Host? Javascript, exec(), safe_mode, ?

    . PHP, "" .

  12. #12
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    . . .
    EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
    Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|

  13. #13
    Registered User
    Join Date: Jul:2002
    Location: The Bog of Eternal Stench
    Posts: 345
    Quote Originally Posted by Bombera View Post
    . . .
    ? Windows- ....

  14. #14
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    mapdrive.js
    Code:
    var drive = "Z:";
    var UNCpath = "\\\\computer\\folder";
    var user = "computer\\username";
    var pwd = "parola";
    
    var objFS = new ActiveXObject("Scripting.FileSystemObject");
    
    if(!objFS.DriveExists(drive)){
    	WshNetwork = WScript.CreateObject("WScript.Network");
    	WshNetwork.MapNetworkDrive(drive, UNCpath, true, user, pwd);// if error, returns 1
    }
    WScript.Quit(0);
    unmapdrive.js
    Code:
    var drive = "Z:";
    
    var objFS = new ActiveXObject("Scripting.FileSystemObject");
    
    if(objFS.DriveExists(drive)){
    	WshNetwork = WScript.CreateObject("WScript.Network");
    	WshNetwork.RemoveNetworkDrive(drive, true, true); // if error script returns 1
    }
    WScript.Quit(0);
    test.php
    PHP Code:
     $map true//       false,   se unmap-ne,   
     //   ini_get('safe_mode_exec_dir')  ,  safe_mode e off      .js .  safe_mode  on,      ,     php.ini  safe_mode_exec_dir,      cscript.exe!!! 
     
    $path ini_get('safe_mode_exec_dir').(($map)?'/mapdrive.js':'/unmapdrive.js');
     
    exec('cscript.exe /nologo '.$path$stdout$exit_code);
     
     if(
    $exit_code != 0){
            echo 
    '  '.(($map)?'':'').': <font color="#FF0000">'.$stdout[0].'(  : '.$exit_code.')</font>';
     }
     
    mkdir('Z:\blah1'); //   ,      Z:,  .      ,  ,   ,   . 
    , .js exec(). . , URL , cscript, . - cscript.exe , .
    :
    , . .
    $map=true
    mkdir, ( ) , , . ., .
    - .
    :
    , .
    $map=false
    , ( ).
    - .
    mkdir, , - .

    ! . , , . .

    - , . 100 ., .
    Attached Files
    Last edited by Bombera; 3rd June 2008 at 20:58. Reason: ...
    EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
    Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|

  15. #15
    Registered User
    Join Date: Jul:2002
    Location: The Bog of Eternal Stench
    Posts: 345
    , !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |