Gallopsled / pwntools

CTF framework and exploit development library
http://pwntools.com
Other
11.99k stars 1.7k forks source link

Change newline when setting `context.os` to "windows" #2330

Closed peace-maker closed 6 months ago

peace-maker commented 9 months ago

Windows uses b'\r\n' for newlines while unix uses b'\n'. Change the expected newline to b'\r\n' when setting context.os = "windows" automatically for convenience.

peace-maker commented 6 months ago

This only matters for windows targets which aren't a common target anyway. So lets add it.