index.php
. 代码如下:
<?php
$ip = $_server['remote_addr'];
?>
<!doctype html public "-//w3c//dtd html 4.01 transitional//en" "http://www.w3.org/tr/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta name="author" content="">
<title>php dos, coded by exe</title>
</head>
<!-- php dos, coded by exe -->
<style type="text/css">
<!--
body {
font-family: arial, helvetica, sans-serif;
font-size: 12px;
font-style: normal;
line-height: normal;
color: #ffffff;
background-color: #000000;
}
-->
</style>
<!-- php dos, coded by exe -->
<body>
<center><br><br>
<img src="main.jpg"><br>
<b>your ip:</b> <font color="red"><?php echo $ip; ?></font> (don't dos yourself nub)<br><br>
<form name="input" action="function.php" method="post">
ip:
<input type="text" name="ip" size="15" maxlength="15" class="main" value = "0.0.0.0" onblur = "if ( this.value=='' ) this.value = '0.0.0.0';" onfocus = " if ( this.value == '0.0.0.0' ) this.value = '';">
time:
<input type="text" name="time" size="14" maxlength="20" class="main" value = "time (in seconds)" onblur = "if ( this.value=='' ) this.value = 'time (in seconds)';" onfocus = " if ( this.value == 'time (in seconds)' ) this.value = '';">
port:
<input type="text" name="port" size="5" maxlength="5" class="main" value = "port" onblur = "if ( this.value=='' ) this.value = 'port';" onfocus = " if ( this.value == 'port' ) this.value = '';">
<br><br>
<input type="submit" value=" start the attack---> >
<br><br>
<center>
after initiating the dos attack, please wait while the browser loads.
</center>
</form>
</center>
<!-- php dos, coded by exe -->
</body>
</html>
function.php
. 代码如下:
以上代码就是php dos攻击。