summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-04-25 21:39:12 +0000
committerMike Frysinger <vapier@gentoo.org>2004-04-25 21:39:12 +0000
commitaefbe726fcce8ae41b5c6f2f025336a36d3b977d (patch)
tree68af8f431f72705de881ff065b78d8040cb1a546 /net-wireless
parentAdd die following econf (Manifest recommit) (diff)
downloadgentoo-2-aefbe726fcce8ae41b5c6f2f025336a36d3b977d.tar.gz
gentoo-2-aefbe726fcce8ae41b5c6f2f025336a36d3b977d.tar.bz2
gentoo-2-aefbe726fcce8ae41b5c6f2f025336a36d3b977d.zip
remove useless hunks
Diffstat (limited to 'net-wireless')
-rw-r--r--net-wireless/wepattack/files/0.1.3-filter-mac-address.patch76
1 files changed, 1 insertions, 75 deletions
diff --git a/net-wireless/wepattack/files/0.1.3-filter-mac-address.patch b/net-wireless/wepattack/files/0.1.3-filter-mac-address.patch
index 088eb50ade97..0dfdf316701d 100644
--- a/net-wireless/wepattack/files/0.1.3-filter-mac-address.patch
+++ b/net-wireless/wepattack/files/0.1.3-filter-mac-address.patch
@@ -22,15 +22,6 @@ diff -U 3 -r /src/log.c src/log.c
fclose(fp);
}
-@@ -101,7 +101,7 @@
- fprintf(fp, "\t%d Bit", ((bssid->encryption&0x0F)+3)*8);
- if ((bssid->encryption&0x60) == MODE_KEYGEN)
- fprintf(fp, " (KEYGEN)");
--
-+
- fprintf(fp, "\t%d sec", (int)difftime(now, start_time));
-
- fclose(fp);
@@ -120,7 +120,7 @@
fprintf(fp, "\n");
print_hex_array(fp, list->frame.bssid, 6);
@@ -56,23 +47,6 @@ diff -U 3 -r /src/misc.c src/misc.c
fprintf(stdout,"-m mode \trun wepattack in diffente modes (default: all)\n");
fprintf(stdout,"\t\tvalues: 64, 128, n64, n128\n");
fprintf(stdout,"-n network \tnetwork number to attack\n");
-diff -U 3 -r /src/modes.c src/modes.c
---- /src/modes.c 2002-10-24 15:15:19.000000000 +0200
-+++ src/modes.c 2004-04-07 00:39:51.000000000 +0200
-@@ -153,7 +153,7 @@
- rc4_key_gen = generate_rc4_key(padded_key,
- generate_length, current_packet->frame.iv);
-
-- // process rc4 on first byte of stream
-+ // process rc4 on first byte of stream
- process_rc4_key(current_packet->frame.payload, 1 ,rc4_key_gen);
-
- // verify if snap header is equal then second verify crc32
-@@ -184,4 +184,3 @@
-
- return 0;
- }
--
diff -U 3 -r /src/wepattack.c src/wepattack.c
--- /src/wepattack.c 2002-10-24 15:14:29.000000000 +0200
+++ src/wepattack.c 2004-04-07 00:43:56.000000000 +0200
@@ -124,7 +98,7 @@ diff -U 3 -r /src/wepattack.c src/wepattack.c
- current_packet = current_packet->next;
+ //Make another list with provided bssid
+ if (is_bssid_set){
-+ for (aux=current_packet; aux!=NULL;aux=aux->next){
++ for (aux=current_packet; aux!=NULL;aux=aux->next){
+ sprintf(bssid_aux,"%.2X:%.2X:%.2X:%.2X:%.2X:%.2X",aux->frame.bssid[0],aux->frame.bssid[1],aux->frame.bssid[2],aux->frame.bssid[3],aux->frame.bssid[4],aux->frame.bssid[5]);
+ sprintf(bssid_aux2,"%.2X%.2X%.2X%.2X%.2X%.2X",aux->frame.bssid[0],aux->frame.bssid[1],aux->frame.bssid[2],aux->frame.bssid[3],aux->frame.bssid[4],aux->frame.bssid[5]);
+ sprintf(bssid_aux3,"%.2x:%.2x:%.2x:%.2x:%.2x:%.2x",aux->frame.bssid[0],aux->frame.bssid[1],aux->frame.bssid[2],aux->frame.bssid[3],aux->frame.bssid[4],aux->frame.bssid[5]);
@@ -177,21 +151,6 @@ diff -U 3 -r /src/wepattack.c src/wepattack.c
network = 0;
// if only one should be attacked, remove the others from the list
-@@ -98,12 +149,13 @@
- network_count++;
- current_packet = current_packet->next;
- }
-+
- // extract one packet from list
- list_packet_to_crack = get_one_packet(list_packet_to_crack,
- current_packet->frame.bssid, current_packet->frame.key);
- network_count = 1;
- }
--
-+
- printf("\n%d network%s loaded...\n", network_count, network_count>1?"s":"");
-
- }
@@ -220,14 +272,20 @@
// process command line options
@@ -214,18 +173,6 @@ diff -U 3 -r /src/wepattack.c src/wepattack.c
pf = fopen(packet_file,"r");
if (!pf) {
printf("Dumpfile error: No such file or directory!\n\n");
-@@ -310,10 +368,9 @@
- word_count++;
-
- // main loop to process key in modes on every packet
-- loop_packets(key);
-+ loop_packets(key);
- }
-
- clean_up();
-
- }
--
diff -U 3 -r /src/wepattack.h src/wepattack.h
--- /src/wepattack.h 2002-10-24 15:14:22.000000000 +0200
+++ src/wepattack.h 2004-04-07 00:39:51.000000000 +0200
@@ -240,16 +187,6 @@ diff -U 3 -r /src/wepattack.h src/wepattack.h
diff -U 3 -r /src/wepfilter.c src/wepfilter.c
--- /src/wepfilter.c 2002-10-24 15:14:13.000000000 +0200
+++ src/wepfilter.c 2004-04-07 00:39:51.000000000 +0200
-@@ -86,8 +86,7 @@
- //
- // puts new element at the beginning of the list (pointed by head)
- //
--void push(wlan_packet_list** head, const u_char* data, int length,
--packet_delimiter limits) {
-+void push(wlan_packet_list** head, const u_char* data, int length,packet_delimiter limits) {
-
- wlan_packet_list* newframe = malloc(sizeof(wlan_packet_list));
- memcpy(&newframe->frame.frameControl, data+limits.frame_control, 2);
@@ -104,6 +103,7 @@
memcpy(&newframe->frame.key, data+limits.key, 1);
newframe->frame.key = newframe->frame.key >> 6;
@@ -258,14 +195,3 @@ diff -U 3 -r /src/wepfilter.c src/wepfilter.c
newframe->framesize = length;
newframe->next = *head;
*head = newframe;
-@@ -113,9 +113,7 @@
- // callback function that is passed to pcap_loop() and called each time a
- // packet is recieved
- //
--void my_callback(u_char *useless, const struct pcap_pkthdr* pkthdr,
-- const u_char* packet) {
--
-+void my_callback(u_char *useless, const struct pcap_pkthdr* pkthdr, const u_char* packet) {
- static int count = 1;
- FILE *fp;
- unsigned int framesize = pkthdr->caplen;