Code Monkey home page Code Monkey logo

Comments (6)

f-amato avatar f-amato commented on July 24, 2024

Hi @nickkilla thanks for tried faraday!
Could you please try on debug mode using ./faraday.py -d
Is it possible to share us the report? Maybe there is something new that it's breaking the parser.
Best

from faraday.

nickkilla avatar nickkilla commented on July 24, 2024

2015-05-10 20:13:05,584 - faraday.CouchDbConnector - DEBUG - Watching for changes
2015-05-10 20:13:05,598 - faraday.MainApplication - DEBUG - Starting Reports Manager Thread
2015-05-10 20:13:05,599 - faraday.model.api - DEBUG - Faraday ready...
2015-05-10 20:13:05,599 - faraday.model.api - DEBUG - clearTree called
2015-05-10 20:13:06,118 - faraday.model.api - DEBUG - createShellEnvironment called - About to create new shell env with name Shell-1
2015-05-10 20:13:06,603 - faraday.model.api - DEBUG - processOutputHandler (IGNORED by flags):
'export PS1="[\u@\h:\w]>$ "\r\n[root@kali:/Desktop/scripts/faraday/faraday-dev]>$ clear\r\n'
2015-05-10 20:13:06,610 - faraday.model.api - DEBUG - processOutputHandler (IGNORED by flags):
'\x1b[H\x1b[2J[root@kali:
/Desktop/scripts/faraday/faraday-dev]>$ '
2015-05-10 20:14:36,240 - faraday.model.api - DEBUG - Report file is /root/.faraday/report/labs2/7xa6po.nessus
2015-05-10 20:14:36,256 - faraday.model.api - DEBUG - nessus
2015-05-10 20:14:36,258 - faraday.model.api - DEBUG - The file is /root/.faraday/report/labs2/7xa6po.nessus, nessus
2015-05-10 20:14:36,260 - faraday.model.api - DEBUG - Executing ./nessus report
2015-05-10 20:14:36,276 - faraday.CouchDbConnector - DEBUG - Saving document in couch db
2015-05-10 20:14:36,393 - faraday.CouchDbConnector - DEBUG - Saving document in couch db
2015-05-10 20:14:36,412 - faraday.model.api - DEBUG - PluginController (191560524) - Created plugin_process (194885420) for plugin instance (191524140)
2015-05-10 20:14:36,430 - faraday.model.api - DEBUG - ----------------------------------------
2015-05-10 20:14:36,431 - faraday.model.api - DEBUG - proc_name = PluginProcess-1
2015-05-10 20:14:36,431 - faraday.model.api - DEBUG - Starting run method on PluginProcess
2015-05-10 20:14:36,432 - faraday.model.api - DEBUG - parent process: 30008
2015-05-10 20:14:36,432 - faraday.model.api - DEBUG - process id: 30532
2015-05-10 20:14:36,432 - faraday.model.api - DEBUG - ----------------------------------------
2015-05-10 20:14:36,439 - faraday.model.api - DEBUG - PluginProcess-1: New Output
2015-05-10 20:14:37,131 - faraday.model.api - DEBUG - Plugin raised an exception:
2015-05-10 20:14:37,132 - faraday.model.api - DEBUG - Traceback (most recent call last):
File "/root/Desktop/scripts/faraday/faraday-dev/plugins/core.py", line 799, in run
self.plugin.parseOutputString(output)
File "/root/.faraday/plugins/nessus/plugin.py", line 163, in parseOutputString
resolution=resolution,ref=ref)
File "/root/Desktop/scripts/faraday/faraday-dev/plugins/core.py", line 686, in createAndAddVulnWebToService
category=category, parent_id=service_id)
File "/root/Desktop/scripts/faraday/faraday-dev/model/common.py", line 546, in generateID
return '.'.join([parent_id, tmpObj.getID()])
File "/root/Desktop/scripts/faraday/faraday-dev/model/common.py", line 248, in getID
self.updateID()
File "/root/Desktop/scripts/faraday/faraday-dev/model/common.py", line 1012, in updateID
self.id = get_hash([self.name, self.website, self.path, self.desc ])
File "/root/Desktop/scripts/faraday/faraday-dev/utils/common.py", line 17, in get_hash
return hashlib.sha1(".
.".join(parts)).hexdigest()
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 515: ordinal not in range(128)

2015-05-10 20:14:37,134 - faraday.model.api - DEBUG - PluginProcess-1: Exiting

Where should I send the nessus file?

from faraday.

f-amato avatar f-amato commented on July 24, 2024

please send to devel [at] infobytesec [dot] com
Thanks!

from faraday.

nickkilla avatar nickkilla commented on July 24, 2024

Nessus file emailed.

from faraday.

rgerman avatar rgerman commented on July 24, 2024

Hi @nickkilla!
We had problems with unicode characters inside the nessus report.
Could you try this patch? Move to the faraday root, save the diff in a file like "nessus.patch" and then run: patch -p1 < nessus.patch

diff --git a/plugins/repo/nessus/plugin.py b/plugins/repo/nessus/plugin.py
index 722f937..81d1e63 100644
--- a/plugins/repo/nessus/plugin.py
+++ b/plugins/repo/nessus/plugin.py
@@ -129,10 +129,10 @@ class NessusPlugin(core.PluginBase):
             for v in t.vulns:

                 desc=""
-                desc+=v.get('description') if v.get('description') else ""
+                desc+=v.get('description').encode("ascii", errors="backslashreplace") if v.get('description') else ""
                 resolution = ""
-                resolution = v.get('solution') if v.get('solution') else ""
-                desc+="\nOutput: "+v.get('plugin_output') if v.get('plugin_output') else ""
+                resolution = v.get('solution').encode("ascii", errors="backslashreplace") if v.get('solution') else ""
+                desc+="\nOutput: "+v.get('plugin_output').encode("ascii", errors="backslashreplace") if v.get('plugin_output') else ""
                 ref=[]
                 if v.get('cve'):
                     ref.append(", ".join(v.get('cve')))

Thanks!

from faraday.

nickkilla avatar nickkilla commented on July 24, 2024

Patch worked. Nessus file was imported.

from faraday.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.