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

Parser is not working properly #4

Open
RaTB0t5 opened this issue Apr 19, 2018 · 5 comments
Open

Parser is not working properly #4

RaTB0t5 opened this issue Apr 19, 2018 · 5 comments

Comments

@RaTB0t5
Copy link

RaTB0t5 commented Apr 19, 2018

i tried load my nipper studio xml report, but the output is showing some error

root@kali:~/nipper_parser/lib# ruby nipper_parser.rb dummy-sw.xml 
/root/nipper_parser/lib/nipper_parser/parsers/security_audit.rb:149:in `block in findings': undefined method `elements' for nil:NilClass (NoMethodError)
	from /root/nipper_parser/lib/nipper_parser/parsers/security_audit.rb:139:in `map'
	from /root/nipper_parser/lib/nipper_parser/parsers/security_audit.rb:139:in `findings'
	from /root/nipper_parser/lib/nipper_parser/parsers/security_audit.rb:108:in `initialize'
	from nipper_parser.rb:55:in `new'
	from nipper_parser.rb:55:in `initialize'
	from nipper_parser.rb:67:in `new'
	from nipper_parser.rb:67:in `<main>'

root@kali:~/nipper_parser/lib/nipper_parser/parsers# ruby security_audit.rb dummy-sw.xml 
security_audit.rb:149:in `block in findings': undefined method `elements' for nil:NilClass (NoMethodError)
	from security_audit.rb:139:in `map'
	from security_audit.rb:139:in `findings'
	from security_audit.rb:108:in `initialize'
	from security_audit.rb:295:in `new'
	from security_audit.rb:295:in `<main>'

Im not able to get the excat out as u mentioned in the readme file.kindly help me....

@KINGSABRI
Copy link
Owner

Hello there
Would you share the nipper_parser.rb and security_audit.rb scripts you are using?

@KINGSABRI
Copy link
Owner

hmm just noticed from your terminal that you're not using it as a library, you use the inside security_audit.rb file which is not recommended because it tends to be for testing.

Please install gem install nipper_parser and use this way to use the gem

@RaTB0t5
Copy link
Author

RaTB0t5 commented Apr 25, 2018

Ok Thank you So much KingSABRI

@RaTB0t5
Copy link
Author

RaTB0t5 commented Apr 25, 2018

Can you help me !! how to execute a sample dummy XML parser... can you add the command line here?
if possible.

@KINGSABRI
Copy link
Owner

Hey!
It's not a commandline tool it a library but tell me what do you want to do exactly to help you? what kind of outputs do you need?

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