Commit Graph

11 Commits

Author SHA1 Message Date
Maximilian Hils 880c66fe48 socks: optionally fail early 2015-07-03 02:45:12 +02:00
Maximilian Hils 9aaf10120d socks: add assert_socks5 method 2015-07-03 02:01:30 +02:00
Thomas Kriechbaumer e3d390e036 cleanup code with autopep8
run the following command:
  $ autopep8 -i -r -a -a .
2015-05-27 11:19:11 +02:00
Aldo Cortesi f2bc58cdd2 Add tcp.Reader.safe_read, use it in socks and websockets
safe_read is guaranteed to raise or return a byte string of the
requested length. It's particularly useful for implementing binary
protocols.
2015-05-05 10:47:02 +12:00
Aldo Cortesi 8086022920 Add a tiny utility class for keeping bi-directional mappings.
Use it in websocket and socks.
2015-04-30 09:04:22 +12:00
Aldo Cortesi 9ce2f473f6 Simplify expected_http_body_size signature, fixing a traceback found in fuzzing 2014-11-07 15:59:00 +13:00
Maximilian Hils 987fa22e64 make socks reading more bulletproof 2014-10-09 01:46:08 +02:00
Maximilian Hils 6d1b601ddf minor cleanups 2014-08-16 15:53:07 +02:00
Maximilian Hils e69133f98c remove ntop windows workaround 2014-06-25 21:16:47 +02:00
Maximilian Hils 6405595ae8 socks module: polish, add tests 2014-06-25 20:31:28 +02:00
Maximilian Hils 217660f5db add socks module 2014-06-25 14:30:42 +02:00