-
Notifications
You must be signed in to change notification settings - Fork 364
Open
Labels
Description
Report
Setting the socket timeout (or just using the default 5 seconds) does not work. The fuzzer hangs at "Info: Receiving..." forever.
Expected behavior
When setting receive_data_after_fuzz=True (in session), and a recv_timeout=1 (in connection) the fuzzer should wait a maximum of 1 second for data after a sending a fuzz packet.
Actual behavior
When setting receive_data_after_fuzz=True (in session), and a recv_timeout=1 (in connection) the fuzzer waits forever for a packet from the target.
Steps to reproduce the problem
See above
boofuzz script
boofuzz version
0.4.2
Python version
3.13
Platform
Linux
Anything else?
This is how the timeout for the socket is set:
| self._sock.setsockopt(socket.SOL_SOCKET, socket.SO_RCVTIMEO, _seconds_to_sockopt_format(self._recv_timeout)) |
If I change it to self._sock.settimeout(self._recv_timeout) it works. Not sure if this will also mess with the send timeout.