Skip to content

Bugfix for non-HTTP ports (xmlrpc-methods.nse) - #244

Closed
takeshixx wants to merge 1 commit into
nmap:masterfrom
takeshixx:master
Closed

takeshixx wants to merge 1 commit into
nmap:masterfrom
takeshixx:master

Conversation

@takeshixx

Copy link
Copy Markdown

Whenever the script runs on a non HTTP port (like a sshd running on
TCP/443), this script returns an ERROR because it references
response.body which is not set in such a case.

Whenever the script runs on a non HTTP port (like a sshd running on
TCP/443), this script returns an ERROR because it references
response.body which is not set in such a case.
@dmiller-nmap

Copy link
Copy Markdown

Thanks for catching this. I'm handling it by checking for response, response.body, and response.status immediately after the http.post and bailing out early if any of them is false. Watch for linked commit to close this PR soon.

@nmap-bot nmap-bot closed this in d2d5a78 Nov 29, 2015
qha pushed a commit to qha/nmap that referenced this pull request Dec 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants