-
Notifications
You must be signed in to change notification settings - Fork 749
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add -hc/--helpCN,fix single_target mode
- Loading branch information
Showing
10 changed files
with
208 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,45 +51,45 @@ | |
|
||
### 参数中文说明 | ||
``` | ||
usage: | ||
python POC-T.py [-T|-C] [-m NAME] [-f|-i|-n VALUE] [options] | ||
python POC-T.py [-T|-C] [-m NAME] [TARGET] [options] | ||
python POC-T.py [-h|-v|--show|--update] | ||
example: | ||
python POC-T.py -m jboss-poc http://www.cdxy.me | ||
python POC-T.py -T -m test -f ./dic/1-100.txt | ||
python POC-T.py -C -m test -i 1-100 | ||
python POC-T.py -C -m spider -n 10.0.0.0/24 | ||
powered by cdxy <mail:[email protected]> | ||
engine: | ||
-T 多线程模式 | ||
-C 协程(单线程异步)模式 | ||
-t NUM 设置并发数量(线程数量),默认为10 | ||
module: | ||
-m NAME 指定加载的PoC或模块名称 | ||
target mode: | ||
TARGET 加载单个目标 | ||
-f FILE 从文件加载目标列表(常用于扫描或批量漏洞验证) | ||
-i START-END 给定起始数字和结束数字,自动生成payload(常用于有数字规则的遍历,爬虫等) | ||
-n IP/MASK 从IP和子网掩码加载目标,如:10.0.0.0/28 (用于扫描网段) | ||
optimization: | ||
-o FILE 输出文件路径,默认保存在./output/目录下 | ||
--single 当验证到一个结果时退出(常用于密码爆破) | ||
--nF 取消文件输出 | ||
--nS 取消屏幕输出 | ||
--show 显示./module/文件夹下所有可用的模块名称 | ||
--browser 程序结束后,将运行结果在浏览器/记事本中打开 | ||
--debug 开启debug模式,输出一些细节 | ||
--update 自动从github更新程序 | ||
-h, --help 打印此页帮助 | ||
-v, --version 打印版本号 | ||
本文档为程序中文使用说明,您也可以使用 -h 查看英文版使用说明 | ||
powered by cdxy <mail:[email protected]> | ||
使用方法: | ||
python POC-T.py [-T|-C] [-m NAME] [-s|-f|-i|-n VALUE] [options] | ||
python POC-T.py [-h|-v|--show|--update] | ||
示例: | ||
python POC-T.py -T -m jboss-poc -s http://www.cdxy.me | ||
python POC-T.py -T -m test -f ./dic/1-100.txt | ||
python POC-T.py -C -m test -i 1-100 | ||
python POC-T.py -C -m spider -n 10.0.0.0/24 | ||
引擎(必需项): | ||
-T 多线程模式 | ||
-C 协程(单线程异步)模式 | ||
-t NUM 设置并发数量(线程数量),默认为10 | ||
模块(必需项): | ||
-m NAME 指定加载的POC或模块名称(结尾不需加.py) | ||
目标(必需项): | ||
-s TARGET 验证单个目标 (e.g. www.wooyun.org) | ||
-f FILE 从文件加载目标列表(常用于扫描或批量漏洞验证) (e.g. ./data/wooyun_domain) | ||
-i START-END 给定起始数字和结束数字,自动生成payload(常用于有数字规则的遍历,爬虫等) (e.g. 1-100) | ||
-n IP/MASK 从IP和子网掩码加载目标(用于扫描网段) (e.g. 127.0.0.0/24) | ||
可选项: | ||
-o FILE 输出文件路径,默认保存在./output/目录下 | ||
--single 当验证到一个结果时退出(常用于密码爆破) | ||
--nF 取消文件输出 | ||
--nS 取消屏幕输出 | ||
--show 显示所有可用的模块名称(./module/文件夹下) | ||
--browser 程序结束后,将运行结果在浏览器/记事本中打开 | ||
--debug 开启debug模式,运行时将输出一些参数细节 | ||
--update 自动从github更新程序 | ||
-v, --version 版本号 | ||
-h, --help 英文帮助 | ||
-hc, --helpCN 中文帮助 | ||
``` | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,20 +4,15 @@ | |
|
||
import argparse | ||
import sys | ||
|
||
from lib.parse.handler import checkArgs, setArgs | ||
from lib.core.settings import VERSION | ||
|
||
|
||
def parseArgs(): | ||
parser = argparse.ArgumentParser(prog='POC-T', | ||
formatter_class=argparse.RawTextHelpFormatter, | ||
description='powered by cdxy <mail:[email protected]> ', | ||
usage='\n python POC-T.py [-T|-C] [-m NAME] [-f|-i|-n VALUE] [options]' | ||
'\n python POC-T.py [-T|-C] [-m NAME] [TARGET] [options]' | ||
def cmdLineParser(): | ||
parser = argparse.ArgumentParser(description='powered by cdxy <mail:[email protected]> ', | ||
usage='\n python POC-T.py [-T|-C] [-m NAME] [-s|-f|-i|-n VALUE] [options]' | ||
'\n python POC-T.py [-h|-v|--show|--update]' | ||
'\n\nexample:\n' | ||
' python POC-T.py -m jboss-poc http://www.cdxy.me\n' | ||
' python POC-T.py -T -m jboss-poc -s http://www.cdxy.me\n' | ||
' python POC-T.py -T -m test -f ./dic/1-100.txt\n' | ||
' python POC-T.py -C -m test -i 1-100\n' | ||
' python POC-T.py -C -m spider -n 10.0.0.0/24', | ||
|
@@ -40,7 +35,7 @@ def parseArgs(): | |
|
||
target = parser.add_argument_group('target mode') | ||
|
||
target.add_argument('TARGET', type=str, default='', | ||
target.add_argument('-s', metavar='TARGET', type=str, default='', | ||
help="scan a single target (e.g. www.wooyun.org)") | ||
target.add_argument('-f', metavar='FILE', type=str, default='', | ||
help='load targets from TargetFile (e.g. ./data/wooyun_domain)') | ||
|
@@ -62,18 +57,19 @@ def parseArgs(): | |
optimization.add_argument('--show', default=False, action='store_true', | ||
help='show available module/POC names and exit') | ||
optimization.add_argument('--browser', default=False, action='store_true', | ||
help='Open notepad or web browser to view report after task was finished.') | ||
help='Open notepad or web browser to view report after task finished.') | ||
optimization.add_argument('--debug', default=False, action='store_true', | ||
help='show more details while running') | ||
optimization.add_argument('--update', default=False, action='store_true', | ||
help='update POC-T from github') | ||
optimization.add_argument('-h', '--help', action='help', | ||
help='show this help message and exit') | ||
optimization.add_argument('-v', '--version', action='version', version=VERSION, | ||
help="show program's version number and exit") | ||
optimization.add_argument('-h', '--help', action='help', | ||
help='show this help message and exit') | ||
optimization.add_argument('-hc', '--helpCN', default=False, action='store_true', | ||
help='打印中文帮助(show help message in Chinese)') | ||
|
||
if len(sys.argv) == 1: | ||
sys.argv.append('-h') | ||
args = parser.parse_args() | ||
checkArgs(args) | ||
setArgs(args) | ||
return args |
Oops, something went wrong.