Last active
April 25, 2022 10:35
-
-
Save TartarusLabs/242501f0abfc52f3c2c8e16c8bb507a2 to your computer and use it in GitHub Desktop.
Useful options when using the shodan CLI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Setting Up | |
sudo pip install shodan # Install shodan | |
shodan init API_KEY # Initialise it with your API key | |
Searching Existing Database | |
shodan search "net:212.159.101.101/24 port:22" # Search specific IP range for a specific port | |
shodan search "nginx port:5011" # Search for banner text on specific open port | |
shodan count "port:502" # Return the number of results that would be returned by a given search | |
shodan download myfile "port:502" # Run the search and save results into myfile.json.gz instead of displaying on screen | |
shodan host 212.159.101.101 # Return all info known about specific host | |
Initiating New Scans | |
shodan scan submit 212.159.101.101 # Add specific IP address to Shodan's scan queue | |
General | |
shodan info # Show info about remaining credits on shodan account | |
shodan myip # Show current public IP address that is talking to shodan |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment