Skip to content

Commit

Permalink
Add test data for malicious lcp
Browse files Browse the repository at this point in the history
  • Loading branch information
fedebuonco committed Oct 13, 2024
1 parent 08d35b7 commit bdf4393
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/exploit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,12 +333,12 @@ impl Exploit {
e
),
};
pin_to_cpu_0(tx.as_mut(), self.source_mac, self.target_mac);
pin_to_cpu_0(tx.as_mut(), self.source_mac, self.target_mac); //TODO whyb malformed packet different mac source? form yappwn and ppwn
thread::sleep(time::Duration::from_secs(1));

// Corrupt in6_llentry object
let overflow_lle = build_overflow_lle(self.pppoe_softc);
println!("[*] Sending malicious LCP configure request...");
println!("[*] Sending malicious LCP configure request..."); // TODO send with A padding like malicious_lcp.pcap
let mal_request = create_lcp_conf_request(
self.source_mac,
self.target_mac,
Expand Down Expand Up @@ -419,8 +419,8 @@ fn pin_to_cpu_0(tx: &mut dyn DataLinkSender, source_mac: [u8; 6], target_mac: [u
.send_to(packet.as_slice(), None)
.expect("[-] Failed to send etherpacket");
thread::sleep(time::Duration::from_millis(1));
println!("[+] Pinning to CPU 0...done")
}
println!("[+] Pinning to CPU 0...done")
}

fn is_ipcp_conf_req(data: &[u8]) -> bool {
Expand Down
Binary file added test_data/malicious_lcp.pcap
Binary file not shown.
Binary file added test_data/malicious_lcp_reject.pcap
Binary file not shown.

0 comments on commit bdf4393

Please sign in to comment.