1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Make sure there's some data to read. See #689

This commit is contained in:
dmiller
2017-02-27 16:42:50 +00:00
parent f0e26cb709
commit d8942b360b

View File

@@ -105,6 +105,10 @@ Default configuration of RMI registry allows loading classes from remote URLs wh
-- 0x51 : Returndata
return false, "No return data received from server";
end
-- Need to make sure we get a good chunk of data. It's going to be a java
-- stack trace. But if we don't get enough, I guess we can check with
-- whatever we get.
registry.out.dis:canRead(256)
local data = registry.out.dis.bReader.readBuffer;
if string.find(data, "RMI class loader disabled") == nil then