Skip to content

Commit

Permalink
Start creating reply
Browse files Browse the repository at this point in the history
  • Loading branch information
fedebuonco committed Jul 14, 2024
1 parent 7577348 commit b9a1798
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/exploit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,10 @@ pub fn create_lcp_echo_reply(
identifier: u8,
) -> Vec<u8> {
let mut packet = Vec::new();
// Ethernet header
packet.extend_from_slice(&target_mac);
packet.extend_from_slice(&source_mac);
packet.extend_from_slice(&constants::ETHERTYPE_PPPOESESS.to_be_bytes());

packet
}
Expand Down

0 comments on commit b9a1798

Please sign in to comment.