user@server:~/opt/nmap/bin$ sudo ifconfig eth0 inet6 add 3ffe::60/64 user@server:~/opt/nmap/bin$ sudo ./nping --echo-server "public" -e eth0 -6 -d4 Starting Nping 0.6.41SVN ( http://nmap.org/nping ) at 2013-09-25 17:30 EEST Resolving specified targets... 0 target IP addresses determined. start() Opening pcap device eth0 BPF-filter: ip and ( not (tcp and (dst port 9929 or src port 9929) ) ) Packet capture will be performed using network interface eth0. Waiting for connections... nep_listen_socket() Server bound to :::9929 [1380119457] Connection received from 3ffe::61:37015 getNewClientID() generateNonce() generateNonce() deriveKey() Session Key MAC_S2C_INITIAL: 0000 9c 82 08 4b 03 2c 57 be 6c 61 82 79 7b 00 03 cc ...K.,W.la.y{... generate_hs_server() addClientContext(ctx->id=0) hs_server_handler() nep_hs_server_handler() getClientContext() getClientContext(0) 1 Found client with ID #0 at p0. Total clients 1 SENT: NEP_HANDSHAKE_SERVER to 3ffe::61 capture_handler() nep_capture_handler() Scheduled next capture event Captured 228 bytes nep_match_packet(0x8f8e0e, 228) Recv packet is IPv4. Trying to find a matching client. nep_match_headers(0x7fff894af570,(nil),0x7fff894af5d0,(nil),(nil),0x7fff894aeec0) nep_match_headers() Trying to match packet against client #0 nep_match_headers() Couldn't match packet with any client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 52 bytes nep_match_packet(0x8fbb6e, 52) Recv packet is IPv4. Trying to find a matching client. nep_match_headers(0x7fff894af570,(nil),0x7fff894af5d0,(nil),(nil),(nil)) nep_match_headers() Trying to match packet against client #0 nep_match_headers() Couldn't match packet with any client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 56 bytes nep_match_packet(0x8f89fe, 56) Recv packet is IPv4. Trying to find a matching client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 96 bytes nep_match_packet(0x8fbb6e, 96) Recv packet is IPv4. Trying to find a matching client. nep_match_headers(0x7fff894af570,(nil),(nil),0x7fff894aee90,(nil),0x7fff894aeec0) nep_match_headers() Trying to match packet against client #0 nep_match_headers() Couldn't match packet with any client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 96 bytes nep_match_packet(0x8f89fe, 96) Recv packet is IPv4. Trying to find a matching client. nep_match_headers(0x7fff894af570,(nil),(nil),0x7fff894aee90,(nil),0x7fff894aeec0) nep_match_headers() Trying to match packet against client #0 nep_match_headers() Couldn't match packet with any client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 64 bytes nep_match_packet(0x8fbb6e, 64) Recv packet is IPv6. Trying to find a matching client. Received ICMPv6 packet. Not yet supported. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 56 bytes nep_match_packet(0x8f89fe, 56) Recv packet is IPv4. Trying to find a matching client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 56 bytes nep_match_packet(0x8fbb6e, 56) Recv packet is IPv4. Trying to find a matching client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 96 bytes nep_match_packet(0x8f89fe, 96) Recv packet is IPv4. Trying to find a matching client. nep_match_headers(0x7fff894af570,(nil),(nil),0x7fff894aee90,(nil),0x7fff894aeec0) nep_match_headers() Trying to match packet against client #0 nep_match_headers() Couldn't match packet with any client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 56 bytes nep_match_packet(0x8fbb6e, 56) Recv packet is IPv6. Trying to find a matching client. Received ICMPv6 packet. Not yet supported. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 96 bytes nep_match_packet(0x8f89fe, 96) Recv packet is IPv4. Trying to find a matching client. nep_match_headers(0x7fff894af570,(nil),(nil),0x7fff894aee90,(nil),0x7fff894aeec0) nep_match_headers() Trying to match packet against client #0 nep_match_headers() Couldn't match packet with any client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 96 bytes nep_match_packet(0x8fbb6e, 96) Recv packet is IPv4. Trying to find a matching client. nep_match_headers(0x7fff894af570,(nil),(nil),0x7fff894aee90,(nil),0x7fff894aeec0) nep_match_headers() Trying to match packet against client #0 nep_match_headers() Couldn't match packet with any client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 56 bytes nep_match_packet(0x8f89fe, 56) Recv packet is IPv4. Trying to find a matching client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 56 bytes nep_match_packet(0x8fbb6e, 56) Recv packet is IPv4. Trying to find a matching client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 56 bytes nep_match_packet(0x8f89fe, 56) Recv packet is IPv4. Trying to find a matching client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 56 bytes nep_match_packet(0x8fbb6e, 56) Recv packet is IPv4. Trying to find a matching client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 96 bytes nep_match_packet(0x8f89fe, 96) Recv packet is IPv4. Trying to find a matching client. nep_match_headers(0x7fff894af570,(nil),(nil),0x7fff894aee90,(nil),0x7fff894aeec0) nep_match_headers() Trying to match packet against client #0 nep_match_headers() Couldn't match packet with any client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 96 bytes nep_match_packet(0x8fbb6e, 96) Recv packet is IPv4. Trying to find a matching client. nep_match_headers(0x7fff894af570,(nil),(nil),0x7fff894aee90,(nil),0x7fff894aeec0) nep_match_headers() Trying to match packet against client #0 nep_match_headers() Couldn't match packet with any client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 64 bytes nep_match_packet(0x8f89fe, 64) Recv packet is IPv6. Trying to find a matching client. Received ICMPv6 packet. Not yet supported. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 56 bytes nep_match_packet(0x8fbb6e, 56) Recv packet is IPv4. Trying to find a matching client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 56 bytes nep_match_packet(0x8f89fe, 56) Recv packet is IPv4. Trying to find a matching client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 56 bytes nep_match_packet(0x8fbb6e, 56) Recv packet is IPv4. Trying to find a matching client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 56 bytes nep_match_packet(0x8f89fe, 56) Recv packet is IPv4. Trying to find a matching client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 56 bytes nep_match_packet(0x8fbb6e, 56) Recv packet is IPv4. Trying to find a matching client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 56 bytes nep_match_packet(0x8f89fe, 56) Recv packet is IPv4. Trying to find a matching client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 96 bytes nep_match_packet(0x8fbb6e, 96) Recv packet is IPv4. Trying to find a matching client. nep_match_headers(0x7fff894af570,(nil),(nil),0x7fff894aee90,(nil),0x7fff894aeec0) nep_match_headers() Trying to match packet against client #0 nep_match_headers() Couldn't match packet with any client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 96 bytes nep_match_packet(0x8f89fe, 96) Recv packet is IPv4. Trying to find a matching client. nep_match_headers(0x7fff894af570,(nil),(nil),0x7fff894aee90,(nil),0x7fff894aeec0) nep_match_headers() Trying to match packet against client #0 nep_match_headers() Couldn't match packet with any client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 64 bytes nep_match_packet(0x8fbb6e, 64) Recv packet is IPv6. Trying to find a matching client. Received ICMPv6 packet. Not yet supported. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 56 bytes nep_match_packet(0x8f89fe, 56) Recv packet is IPv4. Trying to find a matching client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 2948 bytes nep_match_packet(0x8fbb6e, 2948) Recv packet is IPv4. Trying to find a matching client. nep_match_headers(0x7fff894af570,(nil),0x7fff894af5d0,(nil),(nil),0x7fff894aeec0) nep_match_headers() Trying to match packet against client #0 nep_match_headers() Couldn't match packet with any client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 1300 bytes nep_match_packet(0x8f89fe, 1300) Recv packet is IPv4. Trying to find a matching client. nep_match_headers(0x7fff894af570,(nil),0x7fff894af5d0,(nil),(nil),0x7fff894aeec0) nep_match_headers() Trying to match packet against client #0 nep_match_headers() Couldn't match packet with any client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 52 bytes nep_match_packet(0x8fbb6e, 52) Recv packet is IPv4. Trying to find a matching client. nep_match_headers(0x7fff894af570,(nil),0x7fff894af5d0,(nil),(nil),(nil)) nep_match_headers() Trying to match packet against client #0 nep_match_headers() Couldn't match packet with any client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 2948 bytes nep_match_packet(0x8f89fe, 2948) Recv packet is IPv4. Trying to find a matching client. nep_match_headers(0x7fff894af570,(nil),0x7fff894af5d0,(nil),(nil),0x7fff894aeec0) nep_match_headers() Trying to match packet against client #0 nep_match_headers() Couldn't match packet with any client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 1300 bytes nep_match_packet(0x8fbb6e, 1300) Recv packet is IPv4. Trying to find a matching client. nep_match_headers(0x7fff894af570,(nil),0x7fff894af5d0,(nil),(nil),0x7fff894aeec0) nep_match_headers() Trying to match packet against client #0 nep_match_headers() Couldn't match packet with any client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 1300 bytes nep_match_packet(0x8f89fe, 1300) Recv packet is IPv4. Trying to find a matching client. nep_match_headers(0x7fff894af570,(nil),0x7fff894af5d0,(nil),(nil),0x7fff894aeec0) nep_match_headers() Trying to match packet against client #0 nep_match_headers() Couldn't match packet with any client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 52 bytes nep_match_packet(0x8fbb6e, 52) Recv packet is IPv4. Trying to find a matching client. nep_match_headers(0x7fff894af570,(nil),0x7fff894af5d0,(nil),(nil),(nil)) nep_match_headers() Trying to match packet against client #0 nep_match_headers() Couldn't match packet with any client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 52 bytes nep_match_packet(0x8f89fe, 52) Recv packet is IPv4. Trying to find a matching client. nep_match_headers(0x7fff894af570,(nil),0x7fff894af5d0,(nil),(nil),(nil)) nep_match_headers() Trying to match packet against client #0 nep_match_headers() Couldn't match packet with any client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 356 bytes nep_match_packet(0x8fbb6e, 356) Recv packet is IPv4. Trying to find a matching client. nep_match_headers(0x7fff894af570,(nil),0x7fff894af5d0,(nil),(nil),0x7fff894aeec0) nep_match_headers() Trying to match packet against client #0 nep_match_headers() Couldn't match packet with any client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 52 bytes nep_match_packet(0x8f89fe, 52) Recv packet is IPv4. Trying to find a matching client. nep_match_headers(0x7fff894af570,(nil),0x7fff894af5d0,(nil),(nil),(nil)) nep_match_headers() Trying to match packet against client #0 nep_match_headers() Couldn't match packet with any client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 2948 bytes nep_match_packet(0x8fbb6e, 2948) Recv packet is IPv4. Trying to find a matching client. nep_match_headers(0x7fff894af570,(nil),0x7fff894af5d0,(nil),(nil),0x7fff894aeec0) nep_match_headers() Trying to match packet against client #0 nep_match_headers() Couldn't match packet with any client. Couldn't match captured packet with a client hs_client_handler() nep_hs_client_handler() RCVD: NEP_HANDSHAKE_CLIENT getClientContext() getClientContext(0) 1 Found client with ID #0 at p0. Total clients 1 parse_hs_client() deriveKey() deriveKey() deriveKey() deriveKey() Session Key MAC_C2S: 0000 49 95 1b 37 ec 18 6a 4c e9 d4 a3 0c e6 07 da 7d I..7..jL.......} Session Key MAC_S2C: 0000 e4 4e c1 f8 5d ed 7e f7 aa ed cf 07 39 33 42 c4 .N..].~.....93B. Session Key CIPHER_C2S: 0000 ef 27 06 69 9a b6 62 ed 51 b5 00 ce 22 dc a2 79 .'.i..b.Q..."..y Session Key CIPHER_S2C: 0000 ae 81 ec be 7d 27 d8 21 ec be 20 58 ee f8 82 ea ....}'.!...X.... decrypt(0x8f88cc, 16, 0x8f890c) aes128_cbc_decrypt(0x7fff894aae60, 32, 0x7fff894ad240, 0x8f88cc, 16, 0x8f890c) OpenSSL bug: it says EVP_DecryptFinal() failed when it didn't (error:06065064:lib(6):func(101):reason(100)). generate_hs_final() encrypt(0x8f88dc, 16, 0x8f88ec) aes128_cbc_encrypt(0x7fff894af770, 32, 0x7fff894b1b70, 0x8f88dc, 16, 0x8f88ec) capture_handler() nep_capture_handler() Scheduled next capture event Captured 1220 bytes nep_match_packet(0x8f89fe, 1220) Recv packet is IPv4. Trying to find a matching client. nep_match_headers(0x7fff894af570,(nil),0x7fff894af5d0,(nil),(nil),0x7fff894aeec0) nep_match_headers() Trying to match packet against client #0 nep_match_headers() Couldn't match packet with any client. Couldn't match captured packet with a client hs_final_handler() nep_hs_final_handler() SENT: NEP_HANDSHAKE_FINAL capture_handler() nep_capture_handler() Scheduled next capture event Captured 52 bytes nep_match_packet(0x8fbf7e, 52) Recv packet is IPv4. Trying to find a matching client. nep_match_headers(0x7fff894af570,(nil),0x7fff894af5d0,(nil),(nil),(nil)) nep_match_headers() Trying to match packet against client #0 nep_match_headers() Couldn't match packet with any client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 724 bytes nep_match_packet(0x8f89fe, 724) Recv packet is IPv4. Trying to find a matching client. nep_match_headers(0x7fff894af570,(nil),0x7fff894af5d0,(nil),(nil),0x7fff894aeec0) nep_match_headers() Trying to match packet against client #0 nep_match_headers() Couldn't match packet with any client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 52 bytes nep_match_packet(0x8fbb6e, 52) Recv packet is IPv4. Trying to find a matching client. nep_match_headers(0x7fff894af570,(nil),0x7fff894af5d0,(nil),(nil),(nil)) nep_match_headers() Trying to match packet against client #0 nep_match_headers() Couldn't match packet with any client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 100 bytes nep_match_packet(0x8f89fe, 100) Recv packet is IPv4. Trying to find a matching client. nep_match_headers(0x7fff894af570,(nil),0x7fff894af5d0,(nil),(nil),0x7fff894aeec0) nep_match_headers() Trying to match packet against client #0 nep_match_headers() Couldn't match packet with any client. Couldn't match captured packet with a client capture_handler() nep_capture_handler() Scheduled next capture event Captured 52 bytes nep_match_packet(0x8fbb6e, 52) Recv packet is IPv4. Trying to find a matching client. nep_match_headers(0x7fff894af570,(nil),0x7fff894af5d0,(nil),(nil),(nil)) nep_match_headers() Trying to match packet against client #0 nep_match_headers() Couldn't match packet with any client. Couldn't match captured packet with a client packetspec_handler() nep_packetspec_handler() RCVD: NEP_PACKETSPEC getClientContext() getClientContext(0) 1 Found client with ID #0 at p0. Total clients 1 parse_packet_spec() decrypt(0x8f88cc, 16, 0x8f889c) aes128_cbc_decrypt(0x7fff894a6220, 128, 0x7fff894a8650, 0x8f88cc, 16, 0x8f889c) OpenSSL bug: it says EVP_DecryptFinal() failed when it didn't (error:06065064:lib(6):func(101):reason(100)). RCVD FieldSpec: Type=B0 Len=03 Data=0x000000; RCVD FieldSpec: Type=B1 Len=01 Data=0x00; RCVD FieldSpec: Type=C0 Len=02 Data=0x848b; RCVD FieldSpec: Type=C1 Len=02 Data=0x0050; RCVD FieldSpec: Type=C2 Len=04 Data=0xcfc7e5a1; RCVD FieldSpec: Type=C3 Len=04 Data=0x00000000; RCVD FieldSpec: Type=C4 Len=01 Data=0x02; RCVD FieldSpec: Type=C5 Len=02 Data=0x05c8; RCVD FieldSpec: Type=B2 Len=01 Data=0x06; nep_session_ended_handler() getClientContext() getClientContext(0) 1 Found client with ID #0 at p0. Total clients 1 [1380119457] Client #0 (3ffe::61:37015) disconnected Deleted client #0 context. [1380119457] Couldn't establish NEP session with client #0 (3ffe::61:37015). capture_handler() nep_capture_handler() Captured 100 bytes nep_match_packet(0x8f89fe, 100) Recv packet is IPv4. Trying to find a matching client. nep_match_headers(0x7fff894af570,(nil),0x7fff894af5d0,(nil),(nil),0x7fff894aeec0) nep_match_headers() Couldn't match packet with any client. Couldn't match captured packet with a client ^Csignal_handler(): Received signal 2 Raw packets captured: 47 (17.784KB) | Echoed: 0 (0B) | Not Matched: 47 (17.784KB) (100.00%) Tx time: 26.84989s | Tx bytes/s: 0.00 | Tx pkts/s: 0.00 Rx time: 26.84989s | Rx bytes/s: 662.35 | Rx pkts/s: 1.75 Nping done: 0 clients served in 26.85 seconds user@server:~/opt/nmap/bin$ exit