rapid7 / nexpose-client-python

DEPRECATED : Rapid7 Nexpose API client library written in Python
https://www.rapid7.com/
BSD 3-Clause "New" or "Revised" License
25 stars 20 forks source link

How to connect to silo with Nexpose python API? #46

Open fr1d4yyy opened 6 years ago

fr1d4yyy commented 6 years ago

Could someone please let me know how to connect to a silo using the python API?

Thanks !

gschneider-r7 commented 6 years ago

It looks like that isn't supported currently as only the username and password are used to construct the login request: https://github.com/rapid7/nexpose-client-python/blob/master/nexpose/nexpose.py#L194-L197

fr1d4yyy commented 6 years ago

@gschneider-r7 thanks for the info, do you maybe know if this is planned? Because at this moment we need to rewrite everything to ruby and it's a pain :/

gschneider-r7 commented 6 years ago

Not necessarily planned, but it shouldn't be difficult to add support. It's just a matter of adding an optional silo ID parameter. I'll probably get to it soon when I have some free time available.

fr1d4yyy commented 6 years ago

That would be awesome! Thanks!