TasosY2K / camera-exploit-tool

Automated exploit scanner for cameras on the internet
https://blog.tmeletlidis.tech/ilovecameras/
GNU General Public License v3.0
169 stars 34 forks source link

Access denied (403 Forbidden) when #4

Open rizzblocks opened 1 year ago

rizzblocks commented 1 year ago

When trying to run following command:

sudo python3 scanner.py --shodan --api-token 'token' --query 'country:"RU" http.status:200 product:"Hikvision IP Camera"' --pages 1

I get the following screen pointing to line 404 of scanner.py

bug

rxmmah commented 1 year ago

same here

[i] 09/25/2023, 02:02:41 :: Fetching hosts from shodan | Query linux upnp avtech | Pages 1 [i] 09/25/2023, 02:02:41 :: Fetching page 1 [+] 09/25/2023, 02:02:41 :: Error: Access denied (403 Forbidden) Traceback (most recent call last): File "/home/kira/gitrepos/camera-exploit-tool/scanner.py", line 589, in main() File "/home/kira/gitrepos/camera-exploit-tool/scanner.py", line 573, in main fetch_and_insert(args) File "/home/kira/gitrepos/camera-exploit-tool/scanner.py", line 404, in fetch_and_insert all_hosts.append(get_shodan_hosts(api, args.query, page)["matches"])


TypeError: 'NoneType' object is not subscriptable