Giter Site home page Giter Site logo

Comments (10)

mdaines-r7 avatar mdaines-r7 commented on July 20, 2024

I cannot reproduce the behavior you describe using 0.6.1 of the gem. After successful login, I get a value value for nsc.session_id

Do you have some minimal reproducing code to demonstrate the problem?

from nexpose-client.

thesp0nge avatar thesp0nge commented on July 20, 2024

@mdaines-r7 I edited the issue... the problem is not that session_id is nil but all other API calls failed.

You can try with this app: https://github.com/thesp0nge/nexty

from nexpose-client.

gschneider-r7 avatar gschneider-r7 commented on July 20, 2024

Do you have a usage example showing the failure?

from nexpose-client.

thesp0nge avatar thesp0nge commented on July 20, 2024

Install the nexty gem or clone the repo, change config.yaml accordingly and then issue the command: bundle exec ruby -I lib bin/nexty --host ip
This should retrieve risk factor and site number for ip in nexpose.

With latest gem the ip is not found, with version older then 0.1.3 the code works.

from nexpose-client.

gschneider-r7 avatar gschneider-r7 commented on July 20, 2024

Given that your Nexty gem seems to duplicate some of the Nexpose gem's functionality from 0.1.3, it might be easier to create a new script (or gem) that just uses the Nexpose gem features instead.

To achieve the functionality you're having trouble with currently, you could do this for example with the Nexpose gem:

require "nexpose"
nsc = Nexpose::Connection.new("127.0.0.1", "username", "password")
nsc.login
host = nsc.find_device_by_address("10.0.0.1")
puts "#{host.address} #{host.site_id} #{host.risk_score} #{host.risk_factor}"

from nexpose-client.

thesp0nge avatar thesp0nge commented on July 20, 2024

Well bur why on older gem my code works and with newer not?
Il 23/gen/2014 20:23 "gschneider" [email protected] ha scritto:

Given that your Nexty gem seems to duplicate some of the Nexpose gem's
functionality from 0.1.3, it might be easier to create a new script (or
gem) that just uses the Nexpose gem features instead.

To achieve the functionality you're having trouble with currently, you
could do this for example with the Nexpose gem:

require "nexpose"nsc = Nexpose::Connection.new("127.0.0.1", "username", "password")host = nsc.find_device_by_address("10.0.0.1")puts "#{host.address} #{host.site_id} #{host.risk_score} #{host.risk_factor}"


Reply to this email directly or view it on GitHubhttps://github.com//issues/45#issuecomment-33158556
.

from nexpose-client.

mdaines-r7 avatar mdaines-r7 commented on July 20, 2024

There were breaking changes to some of the calls between 0.1.3 and 0.1.4, thus leading the problem described.

This is part of the reason I've started trying to put in the release notes and be more vigilant that a patch release does not introduce breaking API changes.

from nexpose-client.

thesp0nge avatar thesp0nge commented on July 20, 2024

It sounds like "ooops, your code doesn't work but we don't know why and we don't care that much". Thank you after all.

from nexpose-client.

mdaines-r7 avatar mdaines-r7 commented on July 20, 2024

Sorry you took it that way.

If you look at the methods being called, there was a swap in method names between the versions you are concerned about. I don't have the changes in front of me, but it's commits to the repo between 6 Feb and 14 Feb 2013. @gschneider-r7 showed them to me, but I don't have that good a memory. It was something like changing device_list to list_devices or site_listing to list_sites.

from nexpose-client.

thesp0nge avatar thesp0nge commented on July 20, 2024

That's fine to me. Nexty is just an internal tool for my daily usage since
we use Nexpose a lot at work. I'll hack over it when I have some spare time
to invest

On 31 January 2014 15:58, Michael Daines [email protected] wrote:

Sorry you took it that way.

If you look at the methods being called, there was a swap in method names
between the versions you are concerned about. I don't have the changes in
front of me, but it's commits to the repo between 6 Feb and 14 Feb 2013.
@gschneider-r7 https://github.com/gschneider-r7 showed them to me, but
I don't have that good a memory. It was something like changing device_list
to list_devices or site_listing to list_sites.

Reply to this email directly or view it on GitHubhttps://github.com//issues/45#issuecomment-33800339
.

$ cd /pub
$ more beer

The Application Security blog you really want to read:
http://armoredcode.com

from nexpose-client.

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.