The worst hacker search engine in Shodan.


0x01 Shodan What:

同样是搜索引擎,但它并不像谷歌,bing...那样,只单单针对web 中的各类html数据进行爬取shodan 是基于各类在线网络设备的旗标的全网搜索如,各类边界网络摄像头,路由器,交换机... ,中间件服务[如,各类web服务器,数据库,分布式中间件,文件共享服务等...]默认只能看到一部分搜索结果,具体是多少条已经忘记了可能需要付点费才能看到更多的搜索结果,同样它也提供查询api,这就非常方便按照我们自己的扫描需求定制脚本在渗透一些特定的网络设备或者自己手握0day批量打的时候还是非常好使的,俗称"工控设备渗透"...1

So, what are we gonna do with it?

利用0day实施大规模批量入侵,前提是不要把自己的0day撞到别人的蜜罐里面去了,否则就可惜了全网批量统计所有感染有某一数据特征的后门,可以专门用来检测某种定向攻击批量扫描各种中间件的高危错误配置及能被远程利用的各类已知漏洞,也就是说完全可以把它当成一个高级的漏洞扫描器来用批量探测各种弱口令批量抓各种shell [ 不仅限于webshell,backdoor ... ]等……...1

0x03 For more details about Shodan itself, please refer directly to its official site [注册个账号是必须的]:

https://www.shodan.io/  

0x04, like Google hacking, Shodan has its own grammar rules. Below are a few simple filters embedded in Shodan:

city:       城市,貌似只支持英文,而且不是能是简称,如,TOKYO,Hong Kong,Seoul...country:    指定国家或地区后缀,比如:cn,us,jp,tw,br,ph,vn,hk...hostname:   指定主机名,其实就是目标域名[域名如果是子域还需要在前面加个.]net:        指定网络范围,可以是单个ip或者cidr格式的ip段os :        指定操作系统 centOS,win32,red hat,suse 等...port:       指定端口,HTTP (80),FTP (21),SSH (22),SNMP (161),SIP (5060)等...product:    指定具体的产品名称,如,各类web服务器,数据库服务器,网络设备名称等......1

The following are simple examples of searches:

搜集某个城市的特定设备 [这里暂以不同类型的web服务器为例] 标识 [自己可以事先多收集一些常见的软件和设备标识]:Microsoft-IIS/5.0 city:"TOKYO"   可逐个尝试能否直接写shellMicrosoft-IIS/6.0 city:"Seoul"   可逐个尝试能否直接 RCEMicrosoft-IIS/7.5 city:"Hong Kong" apache city:"Nagoya" Apache/2.2.27 city:"Nagoya"Tomcat city:"Seoul" 可逐个尝试能否直接 RCEcisco city:"Osaka"tplink city:"nanjing"1
搜索特定版本的操作系统及端口:os:"linux" net:"72.34.62.0/24"os:"windows" net:"195.40.91.0/24"Apache city:"Hong Kong" port:"8080"  product:"Apache Tomcat/Coyote JSP engine"Apache city:"Seoul" port:"8080"hostname:".polyu.edu.hk" os:"windows"1
搜索指定国家地域特定类型的工具服务 (还是那句话,多搜集一些高质量的工具banner):product:"tomcat"  net:"158.132.18.0/24"product:"apache"  net:"158.132.18.0/24"product:"iis"     net:"158.132.18.0/24"port:"8080" jboss country:CNport:"8080" jboss country:IN1
扫描指定网段内的所有特定数据库服务器:product:"Mysql"  net:"140.117.13.0/24" port:"3306"port:"1433" net:"78.131.197.0/24"port:"5432" net:"77.55.149.0/24"port:"1521" net:"78.143.192.0/12"port:"1521" city:"Osaka"1
搜索特定远程管理终端端口:os:"windows" port:"3389" net:"107.160.1.0/24"os:"linux" port:"22" net:"107.160.1.0/24"os:"linux" port:"23" net:"107.160.1.0/24"os:"linux" port:"23" net:"87.124.0.0/15"1
搜各类路由的特定web管理端口:
搜索ftp / tftp :port:"21" net:"107.160.1.0/24"port:"69" net:"218.242.16.0/24"1
在某个城市中搜索指定的端口,操作系统及在线网络设备:city:"Hong Kong" port:"69"city:"Hong Kong" port:"3389"city:"Hong Kong" port:"22"city:"Hong Kong" port:"23"city:"Hong Kong" port:"3306"city:"Hong Kong" port:"110"city:"Hong Kong" os:"windows"city:"Hong Kong" product:"cisco"city:"Hong Kong" port:"8080"1
搜索指定国家的特定设备,端口,服务器:port:"23" country:CNport:"1433" country:CNport:"3389" country:CNtplink country:CNhuawei country:CNnetcam  country:CNcountry:CN net:"115.225.113.0/24" port:"22"country:CN routeradmin login  country:HKhacked by country:HK1
搜缺省密码:"default password" city:"Hong Kong"country:CN "default password"1
搜exp[其实,就是把exploit上的东西扒下来]:https://exploits.shodan.io/welcome1
搜索各类漏洞摄像头:netcam net:"187.189.82.0/24"1
批量搜集一些开源web程序,尝试0day批量利用:
针对某个端口,批量搜集感染了某种数据标志的木马:
批量搜集一些经典漏洞尝试利用,比如:iis,tomcat,jboss... RCE,心脏滴血,bash远程执行,等等……:

The following are some common default usernames that can attempt to hit luck:

ACTi: admin/123456 or Admin/123456Axis (traditional): root/pass,Axis (new): requires password creation during first loginCisco: No default password, requires creation during first loginGrandstream: admin/adminIQinVision: root/systemMobotix: admin/meinsmPanasonic: admin/12345Samsung Electronics: root/root or admin/4321Samsung Techwin (old): admin/1111111Samsung Techwin (new): admin/4321Sony: admin/adminTRENDnet: admin/adminToshiba: root/ikwdVivotek: root/<blank>WebcamXP: admin/ <blank>1
关于shodan 的入门用法到这里基本就差不多了,建议大家如果真的想用好,可以付点费自己写脚本,当然,你也可以直接用别人提供好的py shodan库国内利用此api衍生出来的工具还是蛮多的,这里就不一一细说了总之来讲,批量抓shell效果还是非常不错的从上面我们也不难发现,利用的核心还是各种特征 [banner] 质量加上你自己的想象力,因为它直接决定了你的命中率...1

In addition, the introduction of two small domestic tool stations, which are very simple and graphic, is not detailed here:

https://www.punkspider.org/   在线web漏洞扫描http://ics.zoomeye.org/       基于shodan实现...1

The following is a common method of use:

ip:ip地址    它就会把这个ip所对应的所有域名都列出来

0x09 The principles for the preparation of side-station tools based on this api in various C segments:

编写过程其实也很简单,就是把bing搜索的结果格式化截取输出一下不过,在此之前你需要事先去bing申请一下搜索用的api去微软的开发者中心申请一个即可如果旁站能想通,那么C段也只不过是把254台机器在线的ip又轮训一遍而已,我想你应该懂了1

Zerox10:
      As for the use of Google and Shodan, it’s probably easy to use them here. It is basically a few filters that come back and go back in assembly, which are randomly tailored to their actual needs, bottom-up, depending on your imagination and sensitivity to existing information characteristics. You see, if you’re fully manual, it’s exhausting. Why not write automated feet that would have helped us do this? Of course, there are many tools available, but not according to our ideas, so it might be better if you did it yourself. But before writing scripts, you could have done it with a little bit more skill, and then you could have written instruments that would have been much more powerful than just one of those engines.



Zerox10:
       In general, when we gather target information on search engines, first of all, we should go straight to the more high-risk loopholes, such as those that are fast getshell, for example, default account codes, which can only be sent directly to Shell after entering. Moreover, if there is a machine supporting jsp scripts, we should start with jsp, because it’s usually very high and almost server administrator authority, so we should try to find the best information in gathering this information, and we must be careful, so we can avoid doing too much useless work, of course, if you have an open web program that is not publicly available and then use it in conjunction with similar search engines, and that results will be understood that we use various search engines for information with the ultimate purpose of finding a target border as soon as possible …

1. Shodan Syntax:

Common filter commands:

    hostname: Search for specified hosts or domain names, such as hostname: “google”

    port: search for specified ports or services, e.g. port: “21”

    Country: Search for a given country, e.g. country: “CN”

    City: Search for a given city, e. g. city: “Hefei”

    (e) Search for a given organization or company, e.g. “google”

    Isp: Search for specified ISP suppliers, e.g. isp: “China Telecom”

    Program: Search for specified operating systems/software/platform, e.g. program: “Apache httpd”

    version: Search for specified software versions, e.g. version: “1.6.2”

    go: Search for a given geographical location with parameters of longitude, e.g. geo: “31.8639,117.2808”

    Before/after: Search data in dd-mm-yy, e.g. before: “11-11-15”

   Net: Search for specified IP addresses or subnets, e.g. “210.45.240.0/24”

   apace city: “Hefei”: search for an Apache server located in Fatty

   nginx country: “CN”: Find the Nginx server located in the country

  “Server: gws” hostname: “google”: Find GWS (Google Web Server) server

  huawei net country: “CN”: Find the specified country for Chinese equipment

2. Shodan search camera

Basic realm=”IP Camera” country:CN

Search keyword Server: uc-httpd 1.0.0 200 OK Country: “CN”

3. Python installation of Shodan library

pip install shodan

4. Citation of shodan in code

Shodan interface account generation api, api.search (‘shodan grammar’)

import shodan

SHODAN_API_KEY=api

api= shodan.Shodan(SHODAN_API_KEY)

♪ try:

    # Search for Shodan

    results= api.search(‘host www.baidu.com’)

print(results)

except shodan.APIErroras e:

    print (‘Error: %s’ % e)

5. kali msf

msf5 > use auxiliary/gather/shodan_search

msf5 auxiliary(gather/shodan_search) > Options View Parameters

msf5 auxiliary(gather/shodan_search) > set SHODAN_APIKEY shodanapi

msf5 auxiliary(gather/shodan_search) > set QUERY “webcamXP”  Set up search camera

msf5 auxiliary(gather/shodan_search) > Run!

More high-quality dry articles. Welcome to the direct attention of everyone. My blog.
Or scan your own “apt attack guide” and don’t regularly update the push:)

未经允许不得转载:萌萌Apprentissage » The worst hacker search engine in Shodan.

Like (0) 打赏

Comments 0

Protected with IP Blacklist CloudIP Blacklist Cloud
  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏

//下一个脚本特效
//下一个脚本