Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't parse Masscan XML #238

Closed
Slad3G opened this issue Dec 20, 2016 · 5 comments
Closed

Can't parse Masscan XML #238

Slad3G opened this issue Dec 20, 2016 · 5 comments

Comments

@Slad3G
Copy link

Slad3G commented Dec 20, 2016

NMAP has not been finishing scans for me so I've started using masscan. Eyewitness has been a great tool however it isn't working for me right now. Any assistance would be greatly appreciated.

I tried to use a masscan XML with this syntax:
./EyeWitness.py -x /root/x/scans/masscan/citrix.xml --all-protocols

OS Used - ALL Information (architecture, linux flavor, etc.)

Linux Kali2 4.8.0-kali2-amd64 #1 SMP Debian 4.8.11-1kali1 (2016-12-08) x86_64 GNU/Linux

##error you are encountering
ERROR: You didn't give me a valid file name! I need a valid file containing URLs!

Expected behavior (vs. what you encountered)

Parse xml and grab screenshots

@ChrisTruncer
Copy link
Contributor

So, this should be working. The one scenario I've seen this issue arise is when it parses XML output, but there's no webservers in it, EieWitness will throw this error (as if there is no file vs. there just aren't any web servers within the XML file. Can you validate there are active web servers within the XML scan?

@ChrisTruncer
Copy link
Contributor

I actually just added in a check, where EyeWitness will now parse the XML file, and if it doesn't find any active web servers within it, then it alerts you that that is the issue.

Now, if you can validate there are active web servers, and EyeWitness is missing it, then that's a different issue and would love to know if that's the case.

But hopefully this will help at least eliminate this as being a problem.

@Slad3G
Copy link
Author

Slad3G commented Dec 21, 2016

Chris,

Thanks for the quick turnaround. There are no banners that say "http" however there are several hosts with 80 and 443 open in the file. Here's an excerpt from the xml:
<host endtime="1482258241"><address addr="redacted" addrtype="ipv4"/><ports><port protocol="tcp" portid="80"><state state="open" reason="syn-ack" reason_ttl="61"/></port></ports></host>

S

@ChrisTruncer
Copy link
Contributor

ChrisTruncer commented Dec 21, 2016 via email

@ChrisTruncer
Copy link
Contributor

I just pushed an update which should help address this. EyeWitness specifically looks for the service tag in xml output to help determine what the port might be. However, the latest update will build web urls as long as the port is open, and in the http or https list of known ports. Hopefully this should help.

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

No branches or pull requests

2 participants