Incomplete Data Received with Nuclei's JavaScript NetConn ('nuclei/net') #4285
Labels
Status: Completed
Nothing further to be done with this issue. Awaiting to be closed.
Type: Bug
Inconsistencies or issues which will cause an issue or problem for users or implementors.
Based on the implementation of Recv() or similar family function it is expected to receive 4096 bytes from the socket by default. However, the number of bytes you want to receive can also be passed as an argument. https://github.com/projectdiscovery/nuclei/blob/main/pkg/js/libs/net/net.go#L116-L117
However, for some reason, the number of bytes specified in the argument are not getting considered. This behavior is only observed when using
OpenTLS
instead ofOpen
to open a socket.Nuclei version:
[INF] Nuclei Engine Version: v3.0.1
Current Behavior:
Example:
nuclei -t simplejs.yaml -u vps.noob.ninja
Outputs:
Expected Behavior:
Should output
Steps To Reproduce:
nuclei -t simplejs.yaml -u vps.noob.ninja
Outputs:
Anything else:
The text was updated successfully, but these errors were encountered: