Content
```markdown
<p align="center">
<a href="https://github.com/wgpsec/ENScan_GO">
<img src="README/logo.png" alt="Logo" width="80" height="80">
</a>
<h3 align="center">ENScan Go</h3>
<p align="center">
Aiming at HW/SRC, solving various information collection challenges faced by domestic enterprises in HW/SRC scenarios
<br />
<br />
<a href="https://github.com/wgpsec/ENScan_GO/stargazers"><img alt="GitHub stars" src="https://img.shields.io/github/stars/wgpsec/ENScan_GO"/></a>
<a href="https://github.com/wgpsec/ENScan_GO/releases"><img alt="GitHub releases" src="https://img.shields.io/github/release/wgpsec/ENScan_GO"/></a>
<a href="https://github.com/wgpsec/ENScan_GO/blob/main/LICENSE"><img alt="License" src="https://img.shields.io/badge/License-Apache%202.0-blue.svg"/></a>
<a href="https://github.com/wgpsec/ENScan_GO/releases"><img alt="Downloads" src="https://img.shields.io/github/downloads/wgpsec/ENScan_GO/total?color=brightgreen"/></a>
<a href="https://goreportcard.com/report/github.com/wgpsec/ENScan_GO"><img alt="Go Report Card" src="https://goreportcard.com/badge/github.com/wgpsec/ENScan_GO"/></a>
<a href="https://twitter.com/wgpsec"><img alt="Twitter" src="https://img.shields.io/twitter/follow/wgpsec?label=Followers&style=social" /></a>
<br>
<br>
<a href="https://github.com/wgpsec/ENScan_GO/discussions"><strong>Explore More Tricks »</strong></a>
<br/>
<br />
<a href="https://github.com/wgpsec/ENScan_GO?tab=readme-ov-file#%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97">🧐 How to Use</a>
·
<a href="https://github.com/wgpsec/ENScan_GO/releases">⬇️ Download Program</a>
·
<a href="https://github.com/wgpsec/ENScan_GO/issues">❔ Report Bugs</a>
·
<a href="https://github.com/wgpsec/ENScan_GO/discussions">🍭 Submit Requests</a>
</p>
## 🤷♂️ Disclaimer
The technologies, ideas, and tools mentioned in this document are for educational and communication purposes related to security only. No one is allowed to use them for illegal purposes or for profit; otherwise, the consequences will be borne by the user.
All data used is public. **No cracking or bypassing protective measures is provided**, and using the program may lead to ⌈account anomalies⌋.
**If this program affects or infringes upon your legal rights, please contact us** admin#wgpsec.org (#replace with @).
## ⚒️ Feature List

- Supports the following data sources:
- AiQicha
- Tianyancha
- KuaiCha
- QiChaCha (not provided)
- XiaoLanBen (not provided)
- Data plugins:
- Aladdin (data feedback is outdated and temporarily offline)
- Coolapk Market
- Qimai Data
- Record Information Query API
- Queryable information:
- ICP Record
- APP
- Weibo
- WeChat Official Account
- Holding Company
- Supplier
- Mini Program
- Public Recruitment Information
- External Investment Information
- ...
- Practical features:
- Supports merged export
- Regex filtering for companies
- Supports deep queries to collect multi-layer subsidiaries
- Supports API mode for tool linkage
## User Guide
### First Use
Go to [RELEASE](https://github.com/wgpsec/ENScan_GO/releases) to download the compiled files for use.
The first time you use it, you need to generate a configuration file and configure the Cookie using the -v command.
```
./enscan -v
```
### Quick Use
*If you encounter access issues, you can try using Burp or a proxy.*
**Default company information** (website record, Weibo, WeChat Official Account, app)
```
./enscan -n Xiaomi
```
**Batch Query** (text separated by lines, optional PID mode)
```
./enscan -f f.txt
```
**Companies with 100% external investment**
```
./enscan -n Xiaomi -invest 100
```
**Combined Filtering**
Companies greater than 51%, branch institutions, only ICP record information
```
./enscan -n Xiaomi -field icp -invest 51 --branch
```
Collect subsidiaries (deep parameter, needs to be used with invest) greater than 51% companies, branch institutions, only ICP record information
```
./enscan -n Xiaomi -field icp -invest 51 --branch --deep 2
```
**Using Different Channels**
Use Tianyancha data source (or set to all to combine multiple data sources)
```
./enscan -n Xiaomi -type tyc
```
Use multiple data sources together (currently does not support multiple channels + filtering)
```
./enscan -n Xiaomi -type aqc,tyc
```
Use plugin channels
```
./enscan -n Xiaomi -type aqc,miit
```
**Please set request delays to prevent impact**
```
./enscan -n Xiaomi -delay 3
```
### Using MCP
Start the MCP server, which will listen on http://localhost:8080
```
./enscan --mcp
```
Using Cherry Studio configuration as an example

After completing the configuration, start the MCP service

After configuration, you can write prompts according to your needs. Feel free to [share useful prompts here](https://github.com/wgpsec/ENScan_GO/discussions/163).
### Cookie Configuration
**AQC**
If security verification appears, please use a browser to obtain the cookie to pass the verification and continue. The default query is aiqicha.baidu.com.
Do not directly use `document.cookie` for Cookie information, as it may fail to copy completely due to the http-only option.

**TYC tycid**
After configuring the COOKIE, configure the tycid.

**TYC auth_token**
After configuring the COOKIE, configure the auth_token.

Other cookies can be referenced for acquisition.
### Option Explanation
#### **field Get Fields**
Use the parameter `field` to specify the information to be queried, and multiple parameters can be specified for quick collection.
```
-n Xiaomi -field icp,app
```
Supports the following parameters:
- `icp` Website record information
- `weibo` Weibo
- `wechat` WeChat Official Account
- `app` Application information
- `job` Recruitment information
- `wx_app` WeChat Mini Program
- `copyright` Software copyright
- `supplier` Supplier information (determined by bidding documents)
- Others (updated according to plugin status)
#### **type Get Fields**
Use the parameter `type` to specify the required API data source.
```
-n Xiaomi -type tyc
```
**Query Data Sources**
- `aqc` AiQicha
- `tyc` Tianyancha
- `kc` KuaiCha
- `all` All queries
**Plugins**
- `aldzs` Aladdin (only for Mini Programs)
- `coolapk` Coolapk Market (only for APP)
- `qimai` Qimai Data (only for APP)
- `miit` HG-ha's ICP_Query (ICP record, APP, Mini Program, Quick Application) **Not maintained by the Wolf Group, team members please use the internal version.**
#### Complete Parameters
*Documentation may not be updated in time; please refer to program prompts for accuracy.*
| Parameter | Example | Description |
| --------------- | --------------- | ------------------------------------------------------------ |
| -n | Xiaomi | Keyword |
| -i | 29453261288626 | Company PID (automatically identifies type) |
| -f | file.txt | Batch query, text separated by lines (optional PID mode) |
| -type | aqc | API type |
| -o | | Result output folder location (optional) |
| -is-merge | | Merge export |
| -invest | | Investment ratio |
| -field | icp | Get field information |
| -deep | 1 | Recursively search n layers of companies, needs to be used with invest |
| -hold | | Whether to query holding companies (may require VIP account)|
| -supplier | | Whether to query supplier information |
| -branch | | Query branch institution (subsidiary) information |
| -is-branch | | Deep query for branch institution information (large quantity)|
| -api | | Whether in API mode |
| -debug | | Whether to display debug detailed information |
| -is-show | | Whether to display information output |
| -is-group | | Query keyword as a group |
| -is-pid | | Whether the batch query file is company PID |
| -delay | | Delay for each request (S) -1 for random delay 1-5S |
| -branch-filter | | Provide a regex, branch institutions and subsidiaries matching this regex will be skipped |
| -proxy | | Set proxy |
| -timeout | | Default timeout for each request is 1 (minute) |
| -no-merge | | Batch query [cancel] merge export |
| -v | | Version information |
### API Mode
**API Call Effect**
You can use https://enscan.wgpsec.org/api/info to experience it (offline due to abuse).
🥹 The plat platform has stopped maintenance, please do not ask~




#### API Description
Information retrieval will be displayed in real-time and can be linked with other tools via API. Please note **do not expose it to the public network**.
**Retrieve Information**
```
GET /api/info?search=Xiaomi&invest=100&branch=true
```
| Parameter | Parameter | Description |
| --------- | ------------------- | ---------------------------- |
| name | Text | Complete company name (one of two) |
| type | Text, consistent with command parameters | Data source |
| field | Text, consistent with command parameters | Filter specified information |
| depth | Number | How many layers of companies to crawl, e.g., 2 for subsidiaries |
| invest | Number | Filter investment ratio |
| holds | true | Filter holding companies |
| supplier | true | Filter supplier information |
| branch | true | Filter branch information |
| output | true | Export Excel table for download if true |
#### Startup Deployment
**Golang Version Dependency**
```
go >= 1.22.1
```
**API Mode**
Starting API mode will listen on port 31000 and start the API service, allowing data to be read via the API service.
```
./enscan --api
```
## Communication & Feedback
Follow the WeChat official account `WgpSec Wolf Team` and reply `Join Group` to communicate together~

[](https://starchart.cc/wgpsec/ENScan_GO)
## 404 Star Link Program
<img src="https://github.com/knownsec/404StarLink/raw/master/Images/logo.png" width="30%">
ENScanGo has now joined the [404 Star Link Program](https://github.com/knownsec/404StarLink).
## JetBrains OS Licenses
``ENScanGo`` has been developed with the `GoLand` IDE under the **free JetBrains Open Source license(s)** granted by JetBrains s.r.o., hence I would like to express my thanks here.
<a href="https://www.jetbrains.com/?from=wgpsec" target="_blank"><img src="https://raw.githubusercontent.com/wgpsec/.github/master/jetbrains/jetbrains-variant-4.png" width="256" align="middle"/></a>
```