{"id":18865312,"url":"https://github.com/jonathanprince/nessus-api-helper","last_synced_at":"2025-08-04T02:07:14.027Z","repository":{"id":39452621,"uuid":"220017623","full_name":"JonathanPrince/nessus-api-helper","owner":"JonathanPrince","description":"A simple helper for making requests to a Nessus API","archived":false,"fork":false,"pushed_at":"2023-01-06T09:21:51.000Z","size":763,"stargazers_count":0,"open_issues_count":13,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-30T22:10:29.931Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JonathanPrince.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-06T14:36:50.000Z","updated_at":"2020-06-22T15:47:05.000Z","dependencies_parsed_at":"2023-02-05T18:55:18.704Z","dependency_job_id":null,"html_url":"https://github.com/JonathanPrince/nessus-api-helper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonathanPrince%2Fnessus-api-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonathanPrince%2Fnessus-api-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonathanPrince%2Fnessus-api-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonathanPrince%2Fnessus-api-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JonathanPrince","download_url":"https://codeload.github.com/JonathanPrince/nessus-api-helper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239809411,"owners_count":19700618,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T04:46:37.212Z","updated_at":"2025-02-20T09:25:38.221Z","avatar_url":"https://github.com/JonathanPrince.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nessus API Helper\n\nA simple module to help make requests to the Nessus API.\n\n## Usage\n\nCreate a client instance:\n```\n  const nessus = new Nessus({\n    host: 'localhost',\n    user: 'username',\n    pass: 'password'\n  })\n```\n\nAuthenticate:\n```\n  await nessus.authenticate()\n```\n\nMake requests:\n```\n  const scanData = await nessus.getScanById(\u003cscanId\u003e)\n```\n\n## Constructor Config\n\n| key       | description                     | default     |\n|-----------|---------------------------------|-------------|\n| host      | Hostname or IP of Nessus server | localhost   |\n| port      | Nessus port                     | 8834        |\n| protocol  | http or https                   | https       |\n| user      | Nessus username                 |             |\n| password  | Nessus password                 |             |\n\n## Methods\n\n### .authenticate()\nUses the user and password supplied in the constructor to set auth headers for subsequent requests.\n\n### .getFolders()\nReturns the folder list\n\n### .getScans([queryObject])\nReturns a list of scans\nOptional query object can be used to add the query parameters `folder_id` and/or `last_modification_date`\n\n### .getScanById(scanId[, historyId])\nReturns scan data for the given scan id\n\n### .getScanHost(scanId, hostId[, historyId])\nReturns host data for the the given scan and host id\n\n### .getScanHostPlugin(scanId, hostId, pluginId[, historyId])\nReturns the plugin data for the given scan, host and plugin id\n\n### .getScanHostCompliance(scanId, hostId, complianceId[, historyId])\nReturns the compliance plugin data for the given scan, host and compliance id\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathanprince%2Fnessus-api-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonathanprince%2Fnessus-api-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathanprince%2Fnessus-api-helper/lists"}