Skip to content

Commit

Permalink
Remove stuff for release and ignore tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fedebuonco committed Oct 28, 2024
1 parent 4ec106b commit 68cc775
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/exploit/exploit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ impl Exploit {
let (mut tx, _rx) = create_ethernet_channel(interface).unwrap();
let total_length: usize = self.stage2.len();
let udp_header = create_udp_header(
[0x00, 0x35], //TODO hardodce
[0x23, 0x3c], // TODO
[0x00, 0x35], //TODO do not hardcode
[0x23, 0x3c], // TODO do not hardcode
total_length + 8,
);
let mut tobefrag = Vec::new();
Expand Down Expand Up @@ -626,6 +626,7 @@ mod tests {
}

#[test]
#[ignore]
fn test_fake_lle_comparison() {
let mut expl_state = ExploitState::default();

Expand Down Expand Up @@ -667,12 +668,14 @@ mod tests {
}

#[test]
#[ignore]
fn test_read_stage() {
let stage2: Vec<u8> = read_stage("stage2/stage2.bin").unwrap();
assert_eq!(stage2.len(), 2705);
}

#[test]
#[ignore]
fn test_fragment() {
let stage2: Vec<u8> = read_stage("stage2/stage2.bin").unwrap();
let frags = fragment(stage2);
Expand Down
3 changes: 3 additions & 0 deletions src/exploit/negotiations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ mod tests {
use crate::exploit::{build_fake_ifnet, ExploitState};

#[test]
#[ignore]
fn test_ppp_negotiation_initial() {
// Find the specified network interface
let interface = datalink::interfaces()
Expand Down Expand Up @@ -211,6 +212,7 @@ mod tests {
}

#[test]
#[ignore]
fn test_lcp_negotiation() {
// Find the specified network interface
let interface = datalink::interfaces()
Expand Down Expand Up @@ -264,6 +266,7 @@ mod tests {
}

#[test]
#[ignore]
fn test_ipcp_negotiation() {
// Find the specified network interface
let interface = datalink::interfaces()
Expand Down

0 comments on commit 68cc775

Please sign in to comment.