From 1c1d2cfc58fc6f1541457b52a7710a1bf60d96fd Mon Sep 17 00:00:00 2001 From: fedebuonco Date: Sun, 20 Oct 2024 14:35:29 +0100 Subject: [PATCH] Fixed malformed PADT --- src/exploit/packet_creation.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/exploit/packet_creation.rs b/src/exploit/packet_creation.rs index 5acb086..c4fd931 100644 --- a/src/exploit/packet_creation.rs +++ b/src/exploit/packet_creation.rs @@ -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())