sensepost / snoopy-ng

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

Running snoopy_auth against latest sqlalchemy produces an error #10

Closed maximcherny closed 9 years ago

maximcherny commented 9 years ago
>>> import sqlalchemy
>>> sqlalchemy.__version__ 
'0.9.7'
snoopy_auth -l
[+] Available drone accounts:
Traceback (most recent call last):
  File "/usr/bin/snoopy_auth", line 103, in <module>
    drones = auth_.manage_drone_account("foo", "list")
  File "/usr/bin/snoopy_auth", line 29, in manage_drone_account
    self.db.create(self.drone_tbl_def )
  File "<string>", line 2, in create
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/deprecations.py", line 106, in warned
    return fn(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/interfaces.py", line 859, in create
    raise NotImplementedError()
NotImplementedError

This works correctly against 0.7.8.

Perhaps, a specific known working version needs to be requested by the installation script.

What is the version being developed against?

glennzw commented 9 years ago

Hmm, interesting error. I am indeed using 0.7.8 on my dev machine. When I get around to creating the proper egg installer I'll point it to specific versions.

Thanks for pointing this out.

glennzw commented 9 years ago

Also, is this error only produced when using snoopy_auth? Or also when running it regularly?

maximcherny commented 9 years ago

Okay, did some more tests. Could not reproduce the error when running snoopy itself.

Only snoopy_auth seems affected, and only when snoopy_creds.db does not already exist.

aiddenkeli commented 9 years ago

Uh this maybe a stupid question but where exactly is snoopy_auth located?

JosephGregg commented 9 years ago

From install.sh: ln -s pwd/includes/auth_handler.py /usr/bin/snoopy_auth

so you can find it snoopy-ng/includes/auth_handler.py

dustyb commented 9 years ago

temp workaround easy_install "SQLAlchemy==0.7.8"

ElkanRoelen commented 9 years ago

@dustyb This fixed it for me! (specially created an account to tell you that.. :D) OS: Ubuntu gnome 14.04

dustyb commented 9 years ago

@ElkanRoelen awesome. Glad so see I wasn't the only one with the issue.