Skip to content

Commit

Permalink
Fb heap groom and green tests
Browse files Browse the repository at this point in the history
* Start spray function

* fede

* Start icmpv6 pnet transport

* Add semi working heap grooming

* Finish heap grooming with errors

Need to start testing

* Add print for missing sections

* Add coverage and test_data folder

* Add some test for packet identification

* Add more test cases

* Rename create to build

* Add more generation tests

* Fix PADS test

* Fix IPCP conf ack

* FIx IPCP Nak tests

* Fix ipcp tests

* Add ipcv6_adv test

* ALl test green

* clean repo

* Fix merge problems
  • Loading branch information
fedebuonco authored Oct 10, 2024
1 parent b49c0ce commit 094d0f1
Show file tree
Hide file tree
Showing 32 changed files with 431 additions and 332 deletions.
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
/target
.venv
.venv
tarpaulin-report.html
lcov.info

# Ignore all files in test_data/ folder except for .pcap files
test_data/*.bin
.DS_Store
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

45 changes: 0 additions & 45 deletions .vscode/launch.json

This file was deleted.

Empty file removed .zed/settings.json
Empty file.
181 changes: 3 additions & 178 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ hwaddr = "0.1.7"
packet = "0.1.4"
pcap = "2.0.0"
pnet = "0.35.0"
pyo3 = { version = "0.21.2", features = ["extension-module"] }


[lib]
name = "py_yapppwn"
Expand Down
Binary file removed end2end/.DS_Store
Binary file not shown.
1 change: 0 additions & 1 deletion end2end/PPPwn
Submodule PPPwn deleted from fe8043
Binary file removed expected_pads.bin
Binary file not shown.
Binary file removed generated_pado.bin
Binary file not shown.
Binary file removed generated_pads.bin
Binary file not shown.
4 changes: 3 additions & 1 deletion src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ pub const PPPOE_TAG_HEADER_LEN: usize = 4;
pub const PPPOE_SOFTC_SC_DEST: u64 = 0x24;
pub const SPRAY_NUM: u32 = 0x1000;
pub const LCP_ID: u8 = 0x41;
pub const IPCP_ID: u8 = 0x41;
pub const IPCP_ID: u8 = 0x2;
pub const FAKE_IP_ADDR: [u8; 4] = [42, 42, 42, 42];
pub const FAKE_PRIMARY_DNS_SERVER: [u8; 4] = [0, 0, 0, 0];
pub const LCP_CONF_REQ: u8 = 1;
pub const LCP_CONF_ACK: u8 = 2;
pub const LCP_CONF_NAK: u8 = 3;
Expand Down
Loading

0 comments on commit 094d0f1

Please sign in to comment.