sensepost / snoopy-ng

Snoopy v2.0 - modular digital terrestrial tracking framework
Other
429 stars 128 forks source link

KeyError: 'mtk' in Maltego #36

Closed stevenhorner closed 9 years ago

stevenhorner commented 9 years ago

When I try to run any transforms in Maltego I get a python error.

The full Debug output is:

File "fetchDrones.py", line 13, in from transformCommon import * File "/root/snoopy-ng/transforms/transformCommon.py", line 36, in mtk = metadata.tables['mtk'] KeyError: 'mtk'

I am actually running this from a Kali-linux Live CD just to test it before doing a full install. Data is being written into the SQLite database I can see ssids in 'wifi_client_ssids' and data in a couple of other tables.

What is this 'mtk' table it doesn't exist in my SQLite DB. I can see that the line that follow 37 & 38 specify 'users' and 'sessions' they don't exist in my DB either or is this trying to create them.

Any help appreciated, it could be because I'm running on a live CD. I was kind of surprised it installed and appears to run fine except for the Maltego transforms.

3arlybird commented 9 years ago

You have to run snoopy with the server plugin again. "snoopy -v -m server" Then the missing mtk entry will be added to snoopy.db. for me it works ;)

stevenhorner commented 9 years ago

Thanks that worked.

I had followed the quick instructions to save the data locally and then tried to use Maltego to view it. Maybe the quick instructions should mention you need to run "snoopy -v -m server" at least once for Maltego to open it (unless I missed that part).

3arlybird commented 9 years ago

That just happens when you collect data with an "old" version of snoopy (old db structure) and then try to work with this old database in the newest commit where the new "mtk" entry was added. so its only an one time migragtion problem.