Colorea el código porque no todos hacen copy&past en visual studio
(GeSHi)Estas seguro que tu interfaz es correcta?
Yo tuve que cambiar:
//Sniffing on all of the interfaces
for (i = 0; local->h_addr_list[i] != 0; ++i)
{
memcpy(&addr, local->h_addr_list[i], sizeof(struct in_addr));
memset(&dest, 0, sizeof(dest));
memcpy(&dest.sin_addr.s_addr, local->h_addr_list[4], sizeof(dest.sin_addr.s_addr)); // cambio: h_addr_list[4]
dest.sin_family = AF_INET;
dest.sin_port = 0;
printf("%s\n", inet_ntoa(addr)); // Para ver tu ip, la mía es la de ethernet
}
Luego en el log esta:
***********************TCP Packet*************************
IP Header
|-IP Version : 4
|-IP Header Length : 5 DWORDS or 20 Bytes
|-Type Of Service : 0
|-IP Total Length : 1272 Bytes(Size of Packet)
|-Identification : 15071
|-Reserved ZERO Field : 0
|-Dont Fragment Field : 1
|-More Fragment Field : 0
|-TTL : 128
|-Protocol : 6
|-Checksum : 48770
|-Source IP : 192.168.1.10 // mi ip de ethernet
|-Destination IP : 108.162.206.73
TCP Header
|-Source Port : 20749
|-Destination Port : 80
...
DATA Dump
IP Header
45 00 04 f8 3a df 40 00 80 06 be 82 c0 a8 01 0a E...:.@.........
6c a2 ce 49 l..I
TCP Header
51 0d 00 50 6f f6 2a a4 b4 63 07 05 50 18 fa f0 Q..Po.*..c..P...
6b 1b 00 00 k...
Data Payload
47 45 54 20 2f 20 48 54 54 50 2f 31 2e 31 0d 0a GET / HTTP/1.1..
48 6f 73 74 3a 20 66 6f 72 6f 2e 65 6c 68 61 63 Host: foro.elhac
6b 65 72 2e 6e 65 74 0d 0a 43 6f 6e 6e 65 63 74 ker.net..Connect
69 6f 6e 3a 20 6b 65 65 70 2d 61 6c 69 76 65 0d ion: keep-alive.
0a 41 63 63 65 70 74 3a 20 74 65 78 74 2f 68 74 .Accept: text/ht
...
Ahora pon tu filtro fijandote en el Referer y el User-Agent
Un saludo