]> hackdaworld.org Git - my-code/hdw-sniff.git/commitdiff
improved snap logging
authorhackbard <hackbard>
Wed, 20 Nov 2002 14:28:54 +0000 (14:28 +0000)
committerhackbard <hackbard>
Wed, 20 Nov 2002 14:28:54 +0000 (14:28 +0000)
hdw-sniff.c

index 32e16613c497b51ece66f8c2e7c66709cd5555f0..025973038d2fd854ce1bd1925b59538de9011913 100644 (file)
@@ -249,20 +249,13 @@ void pcap_process(u_char *info,const struct pcap_pkthdr *pcap_header,
                else {
                        printf("- crypted packet!\n");
                        /* print crypted snap - write into file */
-                       printf("snap: (aa aa 03 00 00 00) ");
-                       for(i=0;i<4;i++) {
-                               printf("%x ",*(snap_hdr->snap-4+i));
-                               crypted_snap[i]=*(snap_hdr->snap-4+i);
+                       printf("snap: (iv + crypted aa aa 03 00 00 00) ");
+                       for(i=0;i<10;i++) {
+                               printf("%x ",*(snap_hdr->snap+i));
+                               crypted_snap[i]=*(snap_hdr->snap+i);
                                // if(file_fd>0) 
                                //      write(file_fd,snap_hdr->snap+i-4,1);
                        }
-                       printf("| ");
-                       for(i=0;i<6;i++) {
-                               printf("%x ",snap_hdr->snap[i]);
-                               crypted_snap[4+i]=snap_hdr->snap[i];
-                               // if(file_fd>0) 
-                               //      write(file_fd,snap_hdr->snap+i,1);
-                       }
                        printf("\n");
                        crypted_snap[10]='\n';
                        if(file_fd>0) {