The search engine is one of the tools I use most frequently in my daily work, and common domestic search engines include Baidu, Sougou, bin. But what I want to record in this article is not these usual search engines, but some of the web-based search engines required by information security practitioners. The search engines that I want to describe are Shodan, censys, clock eyes, Google, FoFa, Dnsdb, etc. The content of this section is mainly some of the advanced grammar of these search engines, which will make the search more accurate.
It’s a reference to the search engine syntax, that’s all.
Google Search Engine
The reason why the Google search engine is presented here is because it has an extraordinary status in the security world, unlike content search engines such as 100 degrees, dogs and so forth, or even a word dedicated to Google hacking used to describe google ‘ s unusual relationship with security.
Google Basic Syntax:
Index of/ Use it to enter directly all files and folders on the first page of the website.
Intext: returns all pages that contain keywords in the body of the web page.
Inverte: returns a page with keywords in the title of all pages.
Cache: Search Google’s cache of certain elements.
define: Search for a definition of a term.
Filetype: Search the specified file type, e. g. .bak,.mdb,.inc, etc.
Information: Finds some basic information about the specified site.
Inurl: Search if the characters we specified exist in URLs.
Link: link:theef.one can return all URLs that are linked to thetheif.one.
Set:site:thisef.one will return all URLs associated with this station.
Use the word that Google may ignore as a query range.
– Ignore a word, for example: the new plus-poe.
~ Agree.
A single wildcard.
* A wildcard, representing multiple letters.
“”Accurate query.
Search for different country websites
Taiwaninurl:jp Japan
Using Google Riot Library
Using goole, you can search directly downloaded database files on the Internet in the following syntax:
inurl:editor/db/inurl:eWebEditor/db/inurl:bbs/data/inurl:databackup/inurl:blog/data/inurl:\boke\datainurl:bbs/database/inurl:conn.aspinc/conn.aspServer.mapPath(“.mdb”)allinurl:bbs datafiletype:mdb inurl:databasefiletype:inc conninurl:data filetype:mdbintitle:”index of” data
Use goole to search for sensitive information
Some sites can be searched for sensitive information using google, in the following syntax:
intitle:”index of” etcintitle:”Index of” .sh_historyintitle:”Index of” .bash_historyintitle:”index of” passwdintitle:”index of” people.lstintitle:”index of” pwd.dbintitle:”index of” etc/shadowintitle:”index of” spwdintitle:”index of” master.passwdintitle:”index of” htpasswdinurl:service.pwd
Search for C-session server information using google
This technique comes from lostwolf.
site:218.87.21.*
218.87.21.0/24 service information is available through Google.
Shodan search engine
The shodan web search engine is biased towards network equipment and server searches, with details available online, giving its advanced search syntax.
Address: Shodan
Search Syntax:
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 specified country, e. g. country: “CN”
city: search for a given city, e. g. city: “Hefei”
: Search for a given organization or company, e.g. “google”
isp: Search for specified ISP suppliers, e. g. sp: “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 assigned geographic location, e.g. geo: “31.8639,117.2808”
Before/after: Search data in dd-mm-yy, e.g. before: 11-11-15
: Search for specified IP addresses or subnets, e.g., “210.45.240.0/24”
See above: xiaix’s Blog
censys search engine
The censys search engine functions similar to the shodan, and the following document information is available.
Address: Censys
https://www.censys.io/certificates/help Help Documenthttps://www.censys.io/ipv4?q= p queryhttps://www.censys.io/domain?q= Domain Name Queryhttps://www.censys.io/certificates?q= Certificate Query
Search Syntax:
By default, the full text search is supported by censys.
23.0.0.0/8 or 8.8.8.0/0/24 may be used
80. http.get.status_code: 200
80.http.get.status_code:[200 TO 300] Status code between 200 and 300
I’m not sure if you’re going to be able to do this, but it’s a good idea.
Protocols: (“23/telnet” or “21/ftp” protocol
tags: scada label
80. http.get.heads.server: nginx server type version
Autonomous_system.description: United System Description
Right.
The eyes of the bell.
The Eye of the Bell is biased towards a search at the Web application level.
Address:https://www.zoomeye.org/
Search Syntax:
App: nginx component name
ver: Version 1.0
OS:windows operating system
Country: “China” country
City: “hangzhou” city
port: 80 port
hostname: google
site domain name
dsc: nmask description
Keywords: nmask’blog keyword
Service: ftp service type
ip: 8.8.8.8 ip address
cidr: 8.8.8.8/24 ip address
FoFa search engine
The FoFa search engine is biased towards asset searches.
Address: FOFA Pro – Cyberspace Security Search Engine, CyberSpace Search Engine, Cyberspace Mapping, Security Posture Awareness
Search Syntax:
Title = “abc” searches abc from the title. Example: The title includes Beijing web site.
Header = “abc” searches abc from http at the top. Example: jBoss server.
Body =’abc’ search for abc from the body of html. Example: The body contains Hacked by.
Domain= “qq.com” search root domain withhttp://qq.com的网站。例: Root domain name ishttp://qq.com的网站。
host=.gov.cn” search from url.gov.cn, be careful to use host as the name for the search.
The port = “443” searches for assets corresponding to the 443 port.
ip = “1.1.1.1” Searches the web site containing 1.1.1.1 from the ip, noting that the search is to be named using the ip.
Protocol = “https” search for protocol type (valid if port scan is opened). Example: Search for https protocol assets.
City = “Beijing” searchs for assets in a given city. Example: Searches for assets in a specified city.
Region = “Zhejiang” searchs for assets in a designated administrative area.
Country = “CN” search for assets in a designated country (coding). Example: Search for assets in a specified country (code).
cert= “google.com” with search certificates (https or imaps, etc.)http://google.com的资产。
Advanced search:
title=”powered by” && title!=discuz
title!=”powered by” && body=discuz
( body=”con\=\”WordPress” || (header=”X-Pingback” && header=”/xmlrpc.php” && body=”/wp-includes/“) ) && host=”gov.cn”
Dnsdb search engine
dnsdb search engine is a query platform for dbs resolution.
Address: DnsDB
Search Syntax:
DnsDB query syntax structure is condition 1 Condition 2 Condition 3…, each condition at space intervals, DnsDB will
Return the result of all queries to the user.
Domain Name Query Conditions
Domainname query means searching for all DNS records of top private domain names, with search syntax:.
For example, querieshttp://google.com All DNS records: domain:google.com.
Domain name queries can be omitted: .
Host Query Conditions
Query syntax: host:
Could not close temporary folder: %shttp://mp3.example.com的DNS记录: host:http://map3.example.com
The difference between the host search condition and the domain query condition is that the host query matches a DNS record
Host
Query by DNS Record Type
Query Syntax: type:.
For example, only check A record: type:a
Conditions for use: Domain: or host: conditions must exist before type: search syntax can be used
Press IP Limit
Query Syntax: p:
Query specifies IP: ip: 8.8.8.8, which is equivalent to a query with direct input 8.8.8.8
Query specifies the IP range: ip: 8.8.8.8-8.8.255.255
CIDR: ip: 8.0.0/24
65536 IP maximum scope limits
Examples of condition combination queries
Queryhttp://google.com的所有A记录: http://google.comtype:a
This paper will add a few things on an ongoing basis.
未经允许不得转载:萌萌Apprentissage » Hackers' common search engine.
learn NMAP