Skip to content

Commit

Permalink
Fix simple todo
Browse files Browse the repository at this point in the history
  • Loading branch information
fedebuonco committed Oct 13, 2024
1 parent e775350 commit b273f1d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/exploit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,15 +243,16 @@ impl Exploit {
let _result = listen_for_packet(rx.as_mut(), is_ipcp_conf_ack);
// wait for req conf
println!("[*] Waiting for IPCP configure request...");
let _result = listen_for_packet(rx.as_mut(), is_ipcp_conf_req);
let result = listen_for_packet(rx.as_mut(), is_ipcp_conf_req);
let id = u8::from_be_bytes([result.unwrap()[23]]);
// send nak
println!("[*] Sending IPCP configure NAK...");
let lcp_configure = create_ipcp_conf_nak(
self.source_mac,
self.target_mac,
0x00,
constants::PPPOE_SESSION_ID.to_be_bytes(),
2, //TODO fix extract
id,
constants::TARGET_IPV4,
);
let _result = tx
Expand Down

0 comments on commit b273f1d

Please sign in to comment.