mirror of https://github.com/E-Almqvist/wwmap
parent
ef563d0b1a
commit
cda30bd819
@ -1,4 +0,0 @@ |
|||||||
|
|
||||||
pub fn generate_ips() -> Vec<Vec<u8>> { |
|
||||||
|
|
||||||
} |
|
@ -0,0 +1,11 @@ |
|||||||
|
use permutator::Permutation; |
||||||
|
|
||||||
|
pub fn get_ipv4_permutations(start_pos: [u8; 4]) -> Vec<Vec<u8>> { |
||||||
|
let perms: Vec<Vec<u8>> = Vec::new(); |
||||||
|
|
||||||
|
// (2^8)^4 = 2^32 => 32bit
|
||||||
|
let range: Box<[u8; u32::max_value() as usize]> = (0..u8::max_value()).collect::<Box<[u8]>>().try_into().expect("nope"); |
||||||
|
|
||||||
|
|
||||||
|
perms |
||||||
|
} |
Loading…
Reference in new issue