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

dradis nmap import fails #363

Closed
tjb6 opened this Issue Sep 19, 2018 · 4 comments

Comments

Projects
None yet
3 participants
@tjb6

tjb6 commented Sep 19, 2018

Steps to reproduce

Import nmap xml data into Kali dradis

Expected behavior

Data should import normally, creating nodes

Actual behavior

Import fails, shows the following in the import log
[10:41:59] There was a fatal error processing your upload:
[10:41:59] undefined method project_id' for #<Node:0x00007facc6578f08> [10:42:00] /usr/lib/dradis/ruby/2.5.0/gems/activemodel-5.1.6/lib/active_model/attribute_methods.rb:432:in method_missing'
[10:42:00] /usr/lib/dradis/ruby/2.5.0/bundler/gems/dradis-plugins-5ff9d71c05de/lib/dradis/plugins/content_service/nodes.rb:40:in create_node' [10:42:00] /usr/lib/dradis/ruby/2.5.0/bundler/gems/dradis-nmap-4dc26f25433a/lib/dradis/plugins/nmap/importer.rb:31:in block in import'
[10:42:01] /usr/lib/dradis/ruby/2.5.0/gems/ruby-nmap-0.9.3/lib/nmap/xml.rb:293:in `block in each_host'

System configuration

Dradis version: 3.10.0 from Kali package

Ruby version: 2.5.1

OS version: Kali rolling

@dormi

This comment has been minimized.

Show comment
Hide comment
@dormi

dormi Sep 20, 2018

Contributor

Hello @tjb6.
Would it be possible to attach the nmap file that causes the error? Or does it happen with any file you try?

If you prefer it you can send it to us privately via slack or email.

Contributor

dormi commented Sep 20, 2018

Hello @tjb6.
Would it be possible to attach the nmap file that causes the error? Or does it happen with any file you try?

If you prefer it you can send it to us privately via slack or email.

@tjb6

This comment has been minimized.

Show comment
Hide comment
@tjb6

tjb6 Sep 21, 2018

It happens with any nmap file.
I'm creating the nmap files by saving from zenmap

tjb6 commented Sep 21, 2018

It happens with any nmap file.
I'm creating the nmap files by saving from zenmap

@rachkor

This comment has been minimized.

Show comment
Hide comment
@rachkor

rachkor Sep 21, 2018

Member

@tjb6 Rachael with the Dradis support team here. I was reading through the thread and noticed Dradis version: 3.10.0 from Kali package. Could you try running the latest version from Git? https://dradisframework.com/ce/documentation/install_kali.html. My hunch is that Kali rolling grabbed Dradis at a point where the updates to dradis-plugins were ahead of the updates to dradis-nmap. This should be resolved in the latest version, we just need to get you there!

Member

rachkor commented Sep 21, 2018

@tjb6 Rachael with the Dradis support team here. I was reading through the thread and noticed Dradis version: 3.10.0 from Kali package. Could you try running the latest version from Git? https://dradisframework.com/ce/documentation/install_kali.html. My hunch is that Kali rolling grabbed Dradis at a point where the updates to dradis-plugins were ahead of the updates to dradis-nmap. This should be resolved in the latest version, we just need to get you there!

@tjb6

This comment has been minimized.

Show comment
Hide comment
@tjb6

tjb6 Sep 22, 2018

Rachel,
That worked fine, the nmap output imports now
Thanks,
Tony

tjb6 commented Sep 22, 2018

Rachel,
That worked fine, the nmap output imports now
Thanks,
Tony

@dormi dormi closed this Sep 24, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment