offlinemark / poet

[unmaintained] Post-exploitation tool
MIT License
183 stars 55 forks source link

poetsocket recv bug #46

Closed offlinemark closed 9 years ago

offlinemark commented 9 years ago

https://github.com/mossberg/poet/blob/f956451c2f718accc62d9524edd7f5c700f294be/client.py#L69

just like below, we should be recv'ing the minimum of what we have left until PREFIX_LEN or PREFIX_LEN

this kind of thing wouldn't show up unless the network is really bad and we can't even recv 4 bytes in one receive. might be cool to try to test this with netsim