1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-07 21:21:31 +00:00

nmap_service.exe is now encoded locally by xor'ing each byte by 0xFF. It is decoded in line before it is uploaded. This is to prevent antivirus false positives from picking it up.

This commit is contained in:
ron
2010-01-23 16:56:49 +00:00
parent 49d8db7ba5
commit 13f8f95a5f
4 changed files with 42 additions and 2 deletions

View File

@@ -943,7 +943,7 @@ local function upload_everything(host, config)
-- Upload the service file
stdnse.print_debug(1, "smb-psexec: Uploading: nselib/data/psexec/nmap_service.exe => \\\\%s\\%s", config.share, config.service_file)
status, err = smb.file_upload(host, "nselib/data/psexec/nmap_service.exe", config.share, "\\" .. config.service_file, overrides)
status, err = smb.file_upload(host, "nselib/data/psexec/nmap_service.exe", config.share, "\\" .. config.service_file, overrides, true)
if(status == false) then
cleanup(host, config)
return false, string.format("Couldn't upload the service file: %s\n", err)