HurricaneLabs / machinae

Machinae Security Intelligence Collector
MIT License
504 stars 101 forks source link

[!] Error from Shodan: 'str' object has no attribute 'copy' #51

Closed infosystir closed 5 years ago

infosystir commented 5 years ago

So I tried to figure this out I promise.... I thought I was even getting better at python!! When I enable shodan the error in the title is what I get. I tried debug and it didn't really offer me any help either. :)

root@ossec-lab:/etc# python -m pdb machinae Traceback (most recent call last): File "/usr/lib/python2.7/pdb.py", line 1314, in main pdb._runscript(mainpyfile) File "/usr/lib/python2.7/pdb.py", line 1233, in _runscript self.run(statement) File "/usr/lib/python2.7/bdb.py", line 400, in run exec cmd in globals, locals File "", line 1, in File "machinae", line 1 ipwhois: ^ SyntaxError: invalid syntax

billford commented 5 years ago

I really want to blame you. :)

What do you get if you run it outside the debugger ?

On Fri, Dec 21, 2018 at 15:25 infosystir notifications@github.com wrote:

So I tried to figure this out I promise.... I thought I was even getting better at python!! When I enable shodan the error in the title is what I get. I tried debug and it didn't really offer me any help either. :)

root@ossec-lab:/etc# python -m pdb machinae Traceback (most recent call last): File "/usr/lib/python2.7/pdb.py", line 1314, in main pdb._runscript(mainpyfile) File "/usr/lib/python2.7/pdb.py", line 1233, in _runscript self.run(statement) File "/usr/lib/python2.7/bdb.py", line 400, in run exec cmd in globals, locals File "", line 1, in File "machinae", line 1 ipwhois: ^ SyntaxError: invalid syntax

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/HurricaneLabs/machinae/issues/51, or mute the thread https://github.com/notifications/unsubscribe-auth/ACLwA1qgkAcFVPS5Ylbekc9TB9DYuL3jks5u7UPHgaJpZM4ZfDRn .

-- Sent from mobile -- all typos are autocorrect features

mcm commented 5 years ago

You have to add an API key when you enable it. Did you do that?

infosystir commented 5 years ago

Yep, have my API key in it, and it had been working prior to me upgrading my VM to the new version. Without the debugger everything works except Shodan gives "[!] Error from Shodan: 'str' object has no attribute 'copy'" as opposed to the actual results.

billford commented 5 years ago

“Upgraded my VM” hmm works as expected no workaround required or something. :)

Seriously though, give me version numbers of python and machinae and I’ll try to reproduce.

On Sat, Dec 22, 2018 at 21:09 infosystir notifications@github.com wrote:

Yep, have my API key in it, and it had been working prior to me upgrading my VM to the new version. Without the debugger everything works except Shodan gives "[!] Error from Shodan: 'str' object has no attribute 'copy'" as opposed to the actual results.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/HurricaneLabs/machinae/issues/51#issuecomment-449609431, or mute the thread https://github.com/notifications/unsubscribe-auth/ACLwA4uEVgoWXP70b97zUB0CfrZFmbOsks5u7uXxgaJpZM4ZfDRn .

-- Sent from mobile -- all typos are autocorrect features

tcwaddell commented 5 years ago

Are you still experiencing this issue?