Cyberspace Search
TestNet integrates with major internet space search engines, allowing you to query asset information directly within the platform and import results into your asset library.
Supported Engines
| Engine | Description | Website |
|---|---|---|
| FOFA | Chinese internet space mapping, rich query syntax | fofa.info |
| Hunter | QiAnXin Eagle-Eye platform, comprehensive data | hunter.qianxin.com |
| Quake | 360 global internet space mapping | quake.360.net |
| Shodan | International leader, global coverage | shodan.io |
| ZoomEye | Knownsec's internet space radar | zoomeye.org |
| Zone | 0.zone asset mapping platform | 0.zone |
Configure API Keys
Before using search engine features, configure the API Key for each engine.
- Go to "Cyberspace Search" → "Search Config"
- Select the engine to configure
- Enter your API Key (obtain from each engine's official site)
- Click "Test Connection" to validate
- Click "Save"
Getting API Keys
- FOFA: Register and get the API Key from your profile page
- Shodan: Register and get the API Key from your account page
- Hunter: Register and get the API credit key from your profile
Configure Query Syntax
Different engines have their own query syntaxes. You can preset common query templates in "Cyberspace Search" → "Search Config" for quick access.
Run a Search
- Go to "Cyberspace Search" → "Search"
- Select one or more search engines
- Enter the query syntax in the search box
- Set a result count limit (to avoid excessive quota consumption)
- Click "Search"
Syntax Examples
text
# Search assets by domain
domain="example.com"
# Search an IP range
ip="192.168.1.0/24"
# Multi-condition query
domain="example.com" && status_code="200"
# Search by tech stack
app="WordPress" && domain="example.com"text
# Search by hostname
hostname:example.com
# Search an IP range
net:192.168.1.0/24
# Search a specific port
port:8080 hostname:example.com
# Search by organization
org:"Example Corp"text
# Search by domain
site:example.com
# Search by IP
ip:192.168.1.1
# Search by service
service:http hostname:example.comtext
# Search by domain suffix
domain.suffix="example.com"
# Search by IP
ip="192.168.1.1"
# Search by page title
web.title="Example"text
# Search by domain
domain: "example.com"
# Search by IP / CIDR
ip: "192.168.1.0/24"
# Search by port & service
port: 8080 AND service: "http"text
# Search by site/domain
site="example.com"
# Search by company name
company="Example Corp"
# Search by web page title
title="Admin Dashboard"Import Search Results
After searching, import results into TestNet's asset library:
- Check the records to import in the result list
- Supports select-all on the current page
- Supports cross-page selection
- Click "Import Assets"
- Select:
- Target Project: The project the assets will belong to
- Asset Type: IP, Web, etc.
- Click "Confirm Import"
Import results show:
- ✅ Created: successfully created assets
- ⏭️ Skipped: already-existing duplicate assets
- ❌ Failed: assets that failed validation
Important Notes
Quota Consumption
- Each search consumes the corresponding engine's API quota
- Set a reasonable result count limit to avoid unnecessary quota usage
- Check remaining quota for each engine regularly
Compliance Notice
Ensure you only query and import asset information for authorized targets. Unauthorized scanning may violate laws and regulations.