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

Fixed a bug in afp-brute and the afp library related to missing SSL.

This commit is contained in:
patrik
2012-08-05 14:25:53 +00:00
parent 6f43ac38b2
commit be92f68cad
2 changed files with 10 additions and 4 deletions

View File

@@ -886,12 +886,16 @@ Proto = {
local status, response
if not HAVE_SSL then
return false, "OpenSSL not available, aborting ..."
response = Response:new()
response:setErrorMessage("OpenSSL not available, aborting ...")
return response
end
-- currently we only support AFP3.3
if afp_version == nil or ( afp_version ~= "AFP3.3" and afp_version ~= "AFP3.2" and afp_version ~= "AFP3.1" ) then
return false, "Incorrect AFP version"
response = Response:new()
response:setErrorMessage("Incorrect AFP version")
return response
end
if ( uam == "No User Authent" ) then
@@ -1120,8 +1124,6 @@ Proto = {
local pad = 0
local response, fork = {}, {}
print("volume_id" .. volume_id)
local data = bin.pack( "CC>S>I>S>S", COMMAND.FPOpenFork, flag, volume_id, did, file_bitmap, access_mode )
if path.type == PATH_TYPE.LongName then