View Issue Details

IDProjectCategoryView StatusLast Update
0007520Kali LinuxKali Package Bugpublic2022-10-24 07:41
Reportermohammadhosseinjanatiyan Assigned Todaniruiz  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionnot fixable 
Product Version2021.4 
Summary0007520: theHarvester tool crashes
Description

when i run the tool for an IP address which is not present in shodan.io the tool crashes and won't continue to other IP addresses.

Steps To Reproduce

get api-key of shodan.io and set it in /etc/theHarvester/api-key.yaml
run the tool with this command:
theHarvester -d google.com -b all -s
when it finished the last line of the output show the error and crash. as you can see in the attachments

Additional Information

i have solved this bug by surrounding the code that is related to shodan search by try/except block as you can see in the attach

Attached Files
Capture3.JPG (65,203 bytes)   
Capture3.JPG (65,203 bytes)   
Capture.JPG (41,118 bytes)   
Capture.JPG (41,118 bytes)   
Capture2.JPG (32,288 bytes)   
Capture2.JPG (32,288 bytes)   

Activities

mohammadhosseinjanatiyan

mohammadhosseinjanatiyan

2021-12-31 18:49

reporter   ~0015593

capture3.jpg is the modification to the code which is in the following directory:
sudo vim /usr/lib/python3/dist-packages/theHarvester/main.py
and the modification has solved the problem

L1ghtn1ng

L1ghtn1ng

2022-10-08 16:26

reporter   ~0016942

Shodan code at the moment is broken, this is not a kali bug so this can be closed. Disclaimer: I am a core dev/maintainer of theHavester

daniruiz

daniruiz

2022-10-24 07:40

manager   ~0016993

Thanks for the notice @L1ghtn1ng, I'm closing this then. Ping us if there's anything else we can do, or just to update the package

Issue History

Date Modified Username Field Change
2021-12-31 18:45 mohammadhosseinjanatiyan New Issue
2021-12-31 18:45 mohammadhosseinjanatiyan File Added: Capture3.JPG
2021-12-31 18:45 mohammadhosseinjanatiyan File Added: Capture.JPG
2021-12-31 18:45 mohammadhosseinjanatiyan File Added: Capture2.JPG
2021-12-31 18:49 mohammadhosseinjanatiyan Note Added: 0015593
2022-03-25 13:57 g0tmi1k Severity crash => feature
2022-03-25 13:58 g0tmi1k Severity feature => minor
2022-10-08 16:26 L1ghtn1ng Note Added: 0016942
2022-10-24 07:40 daniruiz Note Added: 0016993
2022-10-24 07:41 daniruiz Assigned To => daniruiz
2022-10-24 07:41 daniruiz Status new => closed
2022-10-24 07:41 daniruiz Resolution open => not fixable