November 30, 2017

"recv" and "send" summary of pwntools library

The "recv" and "send" functions of pwntools library are used as below.
(from pwn import *)


❑ To TCP/UDP connection
❍ SSH → s=ssh(host='pwnable.kr', user='asm', password='guest')
* Reference(Link), Example(Link)
❍ Socket → r=remote('google.ca', 443, ssl=True)
* Reference(Link), Example(LinK)

❑ To run other process : process('/bin/')
* Reference(Link), Example(Link)


FYI. open() function is not in the pwntools library and it uses "read" and "write" functions.
❑ To open the file : f = open("newfil", 'w')
* Reference(Link)