vesche / scanless

online port scan scraper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hackertarget not working

NurvX opened this issue · comments

commented

It seems something might have changed on hackertarget side, scanless needs an update.
`Python 3.11.2 (main, Feb 12 2023, 00:48:52) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import scanless
sl = scanless.Scanless()
output = sl.scan('scanme.nmap.org', scanner='hackertarget')
Traceback (most recent call last):
File "", line 1, in
File "/home/kali/.local/lib/python3.11/site-packages/scanless/core.py", line 76, in scan
return self.scannersscanner
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kali/.local/lib/python3.11/site-packages/scanless/core.py", line 106, in hackertarget
output = soup.findAll("pre", {"id": "formResponse"})[0].string
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
`

Hey @NurvX thanks for the report. Looks like they have added reCAPTCHA to their online scanner. I'll likely have to disable this module.

Screen Shot 2023-03-23 at 08 45 23

Fixed this in v2.2.1 (removed the hackertarget module).

Upgrade to latest to fix this error.