pwntools 사용법

2018. 4. 27. 20:59

http://lclang.tistory.com/82


http://lclang.tistory.com/90?category=254640


http://lclang.tistory.com/94?category=254640



로컬에서 사용법

http://cheesehack.tistory.com/category/Etc/Pwntools%20reference










출처 : https://bpsecblog.wordpress.com/2017/01/18/defcon2016-feed-me/



pwnlib.tubes에서


conn = remote(host, port)



conn.shutdown()

shutdown(direction = "send")[source]

Closes the tube for futher reading or writing depending on direction.

Parameters:direction (str) – Which direction to close; “in”, “read” or “recv” closes the tube in the ingoing direction, “out”, “write” or “send” closes it in the outgoing direction.
Returns:None

읽거나 쓰기를 direction옵션에 따라 tube를 닫는다. 

디폴트로는 send라서 출력방향을 닫겠다는 것... 그냥 send를 종료하겠다를 의미.(write를 못하고 read만 됨)



sendlineafter(delimdatatimeout = default) → str[source]

A combination of recvuntil(delim, timeout) and sendline(data).

delim까지 받고나서 data를 보낸다.

+ Recent posts