Skip to content

Commit

Permalink
Fixed malformed PADT
Browse files Browse the repository at this point in the history
  • Loading branch information
fedebuonco committed Oct 20, 2024
1 parent 62661d5 commit 1c1d2cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/exploit/packet_creation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ pub fn create_padt_packet(
payload.push(constants::PPPOE_CODE_PADT); // Code (PADt)
payload.extend_from_slice(&session_id); // Session ID

// We know fixed size of 12
payload.extend_from_slice(&[0, 12]);
// We know fixed size of 0
payload.extend_from_slice(&[0, 0]);

ether::Builder::default()
.source(source_mac.into())
Expand Down

0 comments on commit 1c1d2cf

Please sign in to comment.