Comments (10)
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.
@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.
Do you have a usage example showing the failure?
from nexpose-client.
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.
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.
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.
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.
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.
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.
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)
- XML::VulnerabilityDetail/Complete API missing an instances value for vulnerabilities HOT 2
- Credentials failure after using Site.copy HOT 3
- Unknown SSH Handshake error HOT 5
- Api call to Generate Scan Engine Shared Secret HOT 1
- Is there any 2.1 API(i.e json support one) to get device vulnerability details ? HOT 3
- list_vuln_exceptions returns API error HOT 9
- APIError HTTP 500 when updating one tag with existing search_criteria HOT 3
- No data returned for vulnerability id and asset id in list_vuln_exceptions
- user.save(connection) causes a Null Pointer Exception HOT 1
- No method to save search criteria for a dynamic site? HOT 4
- Connection object `scan_devices` method failure on Global assets HOT 4
- api/3/assets/{id}/software returns HTTP.500 error HOT 2
- OpenSSL certificate verify failed HOT 7
- [QUESTION] How to generate Shared Secret via RESTful API? HOT 2
- job failure in servicenow HOT 1
- Login Failed when update nexpose-client 2.0.2 to 7.2.1 HOT 2
- Hostname not recognized by util.rb/convert with Ruby 2.6.3 HOT 2
- Stuck on maintenance mode page HOT 1
- Scan engine Issue HOT 1
- FQDN not recognized by util.rb/convert with Ruby 2.7.2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nexpose-client.