High-performance Go scanning engine for red teams: configurable port scanning, active/passive fingerprinting, info extraction, and nuclei-compatible PoC checks with DSL workflows.
blog posts:
Complete documentation and tutorials are located on the wiki: https://chainreactors.github.io/wiki/gogo/
Fingerprint and poc repository: https://github.com/chainreactors/templates
The complete parameters of the current version are subject to gogo -h. Multi-character long parameters must use double hyphens, such as --ipp, --sp, --ef; single hyphens are only used for single-character short parameters such as -i, -p, -F. The filtering functionality has now been split into historical result filtering --filter, real-time output filtering --output-filter, and --scan-filter for stopping deep scanning early.
Specify a network segment for default scanning, and output on the command line
gogo -i 192.168.1.1/24 -p win,db,top2
Some commonly used port configurations:
-p - equals -p 1-65535-p 1-1000 port range-p common tag: common means commonly used intranet ports-p top2,top3 multiple tags can be selected at the same time. Common external web ports-p all means the union of all preset tags.Multiple configurations are separated by commas, and various combinations can be configured according to the scenario. For example:
gogo -i 1.1.1.1/24 -p 1-1000,common,http,db
View all port configurations
gogo -P port
You can view the ports corresponding to all tags.
当前已有端口配置: (根据端口类型分类)
top1 : 80,443,8080
top2 : 70,80,81,82,83,84,85,86,87,88,89,90,443,1080,2000,2001,3000,3001,1443,4443,4430,5000,5001,5601,6000,6001,6002,6003,7000,7001,7002,7003,9000,9001,9002,9003,8080,8081,8082,8083,8084,8085,8086,8087,8088,8089,8090,8091,8000,8001,8002,8003,8004,8005,8006,8007,8008,8009,8010,8011,8012,8013,8014,8015,8016,8017,8018,8019,8020,8820,6443,8443,9443,8787,7080,8070,7070,7443,9080,9081,9082,9083,5555,6666,7777,7788,9999,6868,8888,8878,8889,7890,5678,6789,9090,9091,9092,9093,9094,9095,9096,9097,9098,9099,9100,9988,9876,8765,8099,8763,8848,8161,8060,8899,800,801,888,10000,10001,10002,10003,10004,10005,10006,10007,10008,10009,10010,1081,1082,10080,10443,18080,18000,18088,18090,19090,19091,50070
top3 : 444,9443,6080,6443,9070,9092,9093,7003,7004,7005,7006,7007,7008,7009,7010,7011,9003,9004,9005,9006,9007,9008,9009,9010,9011,8100,8101,8102,8103,8104,8105,8106,8107,8108,8109,8110,8111,8161,8021,8022,8023,8024,8025,8026,8027,8028,8029,8030,8880,8881,8882,8883,8884,8885,8886,8887,8888,8889,8890,8010,8011,8012,8013,8014,8015,8016,8017,8018,8019,8020,8090,8091,8092,8093,8094,8095,8096,8097,8098,8099,8180,8181,8983,1311,8363,8800,8761,8873,8866,8900,8282,8999,8989,8066,8200,8040,8060,10800,18081
docker : 2375,2376,2377,2378,2379,2380
lotus : 1352
dubbo : 18086,20880,20881,20882
oracle : 1158,1521,11521,210
...
...
...
When the subnet mask of the target range is less than 24, it is recommended to enable smart mode scanning (see doc for the principle). For example, when the subnet mask is 16 (there will be many output results, so it is recommended to enable --af to output to a file, with only logs printed to the command line)
gogo -i 172.16.1.1/12 -m ss --ping -p top2,win,db --af
--af means automatically specifying the filename for the generated file.
-m ss means using supersmart mode for scanning. There are also ss and sc modes suitable for different scenarios.
--ping means determining whether an IP can be pinged before fingerprinting/information gathering, reducing invalid packet sending. It should be noted that being unable to ping does not necessarily mean the target is definitely not alive; please be aware of this when using it.
The commands for heuristic scanning are somewhat complex, but you can use workflow to write complex commands into a configuration file for quick invocation (see doc for details on built-in workflows).
gogo -w 172
The currently built-in workflow uses the all port preset by default, so the above command is equivalent to gogo -i 172.16.0.0/12 -m ss --ping -p all --af. If you need to narrow the port range, you can override it with gogo -w 172 -p top2,win,db.
View all workflows
gogo -P workflow
常用的配置已经被集成到workflow中, 例如使用supersmart mod 扫描10段内网, gogo -w 10即可.
There are also some reserved configurations (that is, other configurations are filled in, but no target is filled in, so the target needs to be manually specified with -i), for example:
gogo -w ss -i 11.0.0.0/8
The preset parameters in the workflow have lower priority than command-line input, so the parameters in the workflow can be overridden via the command line. For example:
gogo -w 10 -i 11.0.0.0/8
A simple task
gogo -i 81.68.175.32/28 -p top2
gogo -i 81.68.175.32/28 -p top2
[*] Current goroutines: 1000, Version Level: 0,Exploit Target: none, PortSpray: false ,2022-07-07 07:07.07
[*] Start task 81.68.175.32/28 ,total ports: 100 , mod: default ,2022-07-07 07:07.07
[*] ports: 80,81,82,83,84,85,86,87,88,89,90,443,1080,2000,2001,3000,3001,4443,4430,5000,5001,5601,6000,6001,6002,6003,7000,7001,7002,7003,9000,9001,9002,9003,8080,8081,8082,8083,8084,8085,8086,8087,8088,8089,8090,8000,8001,8002,8003,8004,8005,8006,8007,8008,8009,8010,8011,8012,8013,8014,8015,8016,8017,8018,8019,8020,6443,8443,9443,8787,7080,8070,7070,7443,9080,9081,9082,9083,5555,6666,7777,9999,6868,8888,8889,9090,9091,8091,8099,8763,8848,8161,8060,8899,800,801,888,10000,10001,10080 ,2022-07-07 07:07.07
[*] Scan task time is about 8 seconds ,2022-07-07 07:07.07
[+] http://81.68.175.33:80 nginx/1.16.0 nginx bd37 [200] HTTP/1.1 200
[+] http://81.68.175.32:80 nginx/1.18.0 (Ubuntu) nginx 8849 [200] Welcome to nginx!
[+] http://81.68.175.34:80 nginx 宝塔||nginx f0fa [200] 没有找到站点
[+] http://81.68.175.34:8888 nginx nginx d41d [403] HTTP/1.1 403
[+] http://81.68.175.34:3001 nginx webpack||nginx 4a9b [200] shop_mall
[+] http://81.68.175.37:80 Microsoft-IIS/10.0 iis10 c80f [200] HTTP/1.1 200 c0f6 [200] 安全入口校验失败
[*] Alive sum: 5, Target sum : 1594 ,2022-07-07 07:07.07
[*] Totally run: 4.0441884s ,2022-07-07 07:07.07
If you want to integrate with other tools, you can specify -q/--quiet to disable log messages and keep only the output results.
For information on input/output and various advanced usages, see the output wiki
If you run gogo -i 81.68.175.1 --af