![Kali Linux:An Ethical Hacker's Cookbook](https://wfqqreader-1252317822.image.myqcloud.com/cover/618/36700618/b_36700618.jpg)
上QQ阅读APP看书,第一时间看更新
How to do it...
To learn about Shodan, follow the given steps:
- Open your browser and visit https://www.shodan.io:
![](https://epubservercos.yuewen.com/364BC0/19470402501612306/epubprivate/OEBPS/Images/c37be7d1-dcc2-4486-9a00-c02619411c09.png?sign=1739297656-PKAVKNC9oHvaWVO8Dz5TnclkuRrz5S4t-0-e72444d857b488535348c4efc4c64728)
- We begin by performing a simple search for the FTP services running. To do this we can use the following Shodan dorks: port:"21". The following screenshot shows the search results:
![](https://epubservercos.yuewen.com/364BC0/19470402501612306/epubprivate/OEBPS/Images/4f081bfa-6d92-4c2e-871e-9efdfc746d11.png?sign=1739297656-0biTm3UYIZJOjzIGpmRxbmyPDczxYDeB-0-2efa52b31fa1fce64c53035d3ef891a1)
- This search can be made more specific by specifying a particular country/organization: port:"21" country:"IN". The following screenshot shows the search results:
![](https://epubservercos.yuewen.com/364BC0/19470402501612306/epubprivate/OEBPS/Images/c6ddb2e6-ec35-4d64-a5d8-00290198facf.png?sign=1739297656-mkmOyM9cH4dkW3iskGySN57tbW0k5jl7-0-c64d0832b1eb1ec7e093b040cf36dca6)
- We can now see all the FTP servers running in India; we can also see the servers that allow anonymous login and the version of the FTP server they are running.
- Next, we try the organization filter. It can be done by typing port:"21" country:"IN" org:"BSNL" as shown in the following screenshot:
![](https://epubservercos.yuewen.com/364BC0/19470402501612306/epubprivate/OEBPS/Images/881d975d-6c73-41ef-95f3-1c52947ed82b.png?sign=1739297656-C4gm6jrNJFmsPCQg13jPi0Fn0coOIX3Q-0-f0ce3ae9cfe5b9d1189523b4faef73a1)
Shodan has other tags as well that can be used to perform advanced searches, such as:
More details can be found at https://www.shodan.io/explore.
- net: to scan IP ranges
- city: to filter by city
More details can be found at https://www.shodan.io/explore.