Git Product home page Git Product logo

pocsuite3's Introduction

pocsuite3

Python 3.x License Twitter

Legal Disclaimer

Usage of pocsuite3 for attacking targets without prior mutual consent is illegal. pocsuite3 is for security testing purposes only

法律免责声明

未经事先双方同意,使用 pocsuite3 攻击目标是非法的。 pocsuite3 仅用于安全测试目的

Overview

pocsuite3 is an open-sourced remote vulnerability testing and proof-of-concept development framework developed by the Knownsec 404 Team. It comes with a powerful proof-of-concept engine, many nice features for the ultimate penetration testers and security researchers.

Features

  • PoC scripts can running with verify, attack, shell mode in different way
  • Plugin ecosystem
  • Dynamic loading PoC script from anywhere (local file, redis, database, Seebug ...)
  • Load multi-target from anywhere (CIDR, local file, redis, database, Zoomeye, Shodan ...)
  • Results can be easily exported
  • Dynamic patch and hook requests
  • Both command line tool and python package import to use
  • IPv6 support
  • Global HTTP/HTTPS/SOCKS proxy support
  • Simple spider API for PoC script to use
  • YAML PoC support, compatible with nuclei
  • Integrate with Seebug (for load PoC from Seebug website)
  • Integrate with ZoomEye, Shodan, etc. (for load target use Dork)
  • Integrate with Ceye, Interactsh (for verify blind DNS and HTTP request)
  • Friendly debug PoC scripts with IDEs
  • More ...

Screenshots

pocsuite3 console mode

asciicast

pocsuite3 shell mode

asciicast

pocsuite3 load PoC from Seebug

asciicast

pocsuite3 load multi-target from ZoomEye

asciicast

pocsuite3 load multi-target from Shodan

asciicast

pocsuite3 load nuclei template

build a docker vulnerability environment

require Docker

write dockerfile in poc

class DemoPOC(POCBase):
    vulID = ''  # ssvid
    version = '1.0'
    author = ['']
    vulDate = '2029-5-8'
    createDate = '2019-5-8'
    updateDate = '2019-5-8'
    references = ['']
    name = 'Struts2 045 RCE CVE-2017'
    appPowerLink = ''
    appName = 'struts2'
    appVersion = ''
    vulType = ''
    desc = '''S2-045:影响版本Struts 2.3.20-2.3.28(除了2.3.20.3和2.3.24.3)'''
    samples = []
    category = POC_CATEGORY.EXPLOITS.WEBAPP
    dockerfile = '''FROM isxiangyang/struts2-all-vul-pocsuite:latest'''

only run vulnerable environments

pocsuite -r pocs/Apache_Struts2/20170129_WEB_Apache_Struts2_045_RCE_CVE-2017-5638.py  --docker-start  --docker-port 127.0.0.1:8080:8080 --docker-env A=test --docker-port 8899:7890

,------.                        ,--. ,--.       ,----.   {2.0.6-cc19ae5}
|  .--. ',---. ,---.,---.,--.,--`--,-'  '-.,---.'.-.  |
|  '--' | .-. | .--(  .-'|  ||  ,--'-.  .-| .-. : .' <
|  | --'' '-' \ `--.-'  `'  ''  |  | |  | \   --/'-'  |
`--'     `---' `---`----' `----'`--' `--'  `----`----'   https://pocsuite.org
[*] starting at 15:34:12

[15:34:12] [INFO] loading PoC script 'pocs/Apache_Struts2/20170129_WEB_Apache_Struts2_045_RCE_CVE-2017-5638.py'
[15:34:12] [INFO] Image struts2_045_rce_cve-2017:pocsuite exists
[15:34:12] [INFO] Run container fa5b3b7bb2ea successful!
[15:34:12] [INFO] pocsusite got a total of 0 tasks
[15:34:12] [INFO] Scan completed,ready to print

run vulnerable environments and run poc

 pocsuite -r pocs/Apache_Struts2/20170129_WEB_Apache_Struts2_045_RCE_CVE-2017-5638.py -u http://127.0.0.1:8080/S2-032-showcase/fileupload/doUpload.action --docker-start  --docker-port 127.0.0.1:8080:8080 

,------.                        ,--. ,--.       ,----.   {2.0.6-cc19ae5}
|  .--. ',---. ,---.,---.,--.,--`--,-'  '-.,---.'.-.  |
|  '--' | .-. | .--(  .-'|  ||  ,--'-.  .-| .-. : .' <
|  | --'' '-' \ `--.-'  `'  ''  |  | |  | \   --/'-'  |
`--'     `---' `---`----' `----'`--' `--'  `----`----'   https://pocsuite.org
[*] starting at 15:38:46

[15:38:46] [INFO] loading PoC script 'pocs/Apache_Struts2/20170129_WEB_Apache_Struts2_045_RCE_CVE-2017-5638.py'
[15:38:46] [INFO] Image struts2_045_rce_cve-2017:pocsuite exists
[15:38:47] [INFO] Run container 1a6eae1e8953 successful!
[15:38:47] [INFO] pocsusite got a total of 1 tasks
[15:38:47] [INFO] running poc:'Struts2 045 RCE CVE-2017' target 'http://127.0.0.1:8080/S2-032-showcase/fileupload/doUpload.action'
[15:39:17] [+] URL : http://127.0.0.1:8080/S2-032-showcase/fileupload/doUpload.action
[15:39:17] [+] Headers : {'Server': 'Apache-Coyote/1.1', 'nyvkx': '788544', 'Set-Cookie': 'JSESSIONID=0A9892431B32A541B51D4721FA0D2728; Path=/S2-032-showcase/; HttpOnly', 'Content-Type': 'text/html;charset=ISO-8859-1', 'Transfer-Encoding': 'chunked', 'Date': 'Mon, 25 Dec 2023 07:39:17 GMT'}
[15:39:17] [INFO] Scan completed,ready to print

+------------------------------------------------------------------+--------------------------+--------+-----------+---------+---------+
| target-url                                                       |         poc-name         | poc-id | component | version |  status |
+------------------------------------------------------------------+--------------------------+--------+-----------+---------+---------+
| http://127.0.0.1:8080/S2-032-showcase/fileupload/doUpload.action | Struts2 045 RCE CVE-2017 |        |  struts2  |         | success |
+------------------------------------------------------------------+--------------------------+--------+-----------+---------+---------+
success : 1 / 1

Introduction to vulnerability environment construction

Docker Environment:
  Docker Environment options

  --docker-start        Run the docker for PoC
  --docker-port DOCKER_PORT
                        Publish a container's port(s) to the host
  --docker-volume DOCKER_VOLUME
                        Bind mount a volume
  --docker-env DOCKER_ENV
                        Set environment variables
  --docker-only         Only run docker environment
  • --docker-start Start environment parameters. If specified, docker images will be obtained from poc.
  • --docker-port publish a container's port(s) to the host, like: --docker-port [host port]:[container port],you can specify multiple
  • --docker-volume bind mount a volume,like --docker-volume /host/path/:/container/path,you can specify multiple
  • --docker-env set environment variables --docker-env VARIBLES=value,you can specify multiple
  • --docker-only only start the docker environment

The usage is roughly the same as docker’s command line parameters.

Requirements

  • Python 3.8+
  • Works on Linux, Windows, Mac OSX, BSD, etc.

Installation

Paste at a terminal prompt:

Python pip

pip3 install pocsuite3

# use other pypi mirror
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple pocsuite3

MacOS

brew update
brew info pocsuite3
brew install pocsuite3
sudo apt update
sudo apt install pocsuite3

Docker

docker run -it pocsuite3/pocsuite3

ArchLinux

yay pocsuite3

Or click here to download the latest source zip package and extract

wget https://github.com/knownsec/pocsuite3/archive/master.zip
unzip master.zip
cd pocsuite3-master
pip3 install -r requirements.txt
python3 setup.py install

The latest version of this software is available at: https://pocsuite.org

Documentation

Documentation is available at: https://pocsuite.org

Usage

cli mode

	# basic usage, use -v to set the log level
	pocsuite -u http://example.com -r example.py -v 2

	# run poc with shell mode
	pocsuite -u http://example.com -r example.py -v 2 --shell

	# search for the target of redis service from ZoomEye and perform batch detection of vulnerabilities. The threads is set to 20
	pocsuite -r redis.py --dork service:redis --threads 20

	# load all poc in the poc directory and save the result as html
	pocsuite -u http://example.com --plugins poc_from_pocs,html_report

	# load the target from the file, and use the poc under the poc directory to scan
	pocsuite -f batch.txt --plugins poc_from_pocs,html_report

	# load CIDR target
	pocsuite -u 10.0.0.0/24 -r example.py

	# the custom parameters `command` is implemented in ecshop poc, which can be set from command line options
	pocsuite -u http://example.com -r ecshop_rce.py --attack --command "whoami"

console mode
    poc-console

How to Contribute

  1. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.
  2. Fork the repository on GitHub to start making your changes.
  3. Write a test which shows that the bug was fixed or that the feature works as expected.
  4. Send a pull request or bug to the maintainer until it gets merged or fixed. Make sure to add yourself to Contributors.

Links

pocsuite3's People

Contributors

0x2e avatar 13ph03nix avatar bebop-ed avatar becivells avatar boy-hack avatar branchvincent avatar cclauss avatar chen2aaron avatar cn-kali-team avatar ekszz avatar explorer1092 avatar gsfish avatar isxiangyang avatar mku16 avatar mrmetatron avatar pokejeff avatar riramar avatar ro0tk1t avatar ruishawn avatar rungobier avatar slzdude avatar tckj7 avatar wh0am1i avatar xixixiba avatar xuchaoa avatar xxcdd avatar zrquan avatar zzmarquis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pocsuite3's Issues

确定ssl选项的代码是否有点太草率了,我感觉在命令行指定是否为ssl更合理

    def build_url(self):
        if self.target and not conf.console_mode:
            pr = urlparse(parse_target_url(self.target))
            rport = pr.port if pr.port else 0
            rhost = pr.hostname
            ssl = False
            if pr.scheme == 'https': # ssl只是一种数据传输通道,不只是为http设计的
                ssl = True
            self.setg_option("rport", rport)
            self.setg_option("rhost", rhost)
            self.setg_option("ssl", ssl)
        return parse_target_url(self.target)

windows下启动console.py报错

C:\Users\aldin\Desktop\secmdb\pocsuite3-master\pocsuite3-master\pocsuite3>python3 console.py Traceback (most recent call last): File "console.py", line 10, in <module> import pocsuite3 File "C:\Program Files\Python36\lib\site-packages\pocsuite3\__init__.py", line 10, in <module> from .lib.core.common import set_paths File "C:\Program Files\Python36\lib\site-packages\pocsuite3\lib\core\common.py", line 22, in <module> from pocsuite3.lib.core.convert import stdout_encode File "C:\Program Files\Python36\lib\site-packages\pocsuite3\lib\core\convert.py", line 3, in <module> from pocsuite3.lib.core.settings import IS_WIN File "C:\Program Files\Python36\lib\site-packages\pocsuite3\lib\core\settings.py", line 10, in <module> REVISION = get_revision_number() File "C:\Program Files\Python36\lib\site-packages\pocsuite3\lib\core\revision.py", line 54, in get_revision_number match = re.search(r"(?i)[0-9a-f]{32}", stdout or "") File "C:\Program Files\Python36\lib\re.py", line 182, in search return _compile(pattern, flags).search(string) TypeError: cannot use a string pattern on a bytes-like object

解决办法:pocsuite3\lib\core\revision.py line55

stdout.decode('utf-8')

custom connect back ip

when running pocsuite3 on vps it show only one interface can you add an option to add a custom connect back ip rather then preselected interfaces on host machine
thanks

[i] pocsusite is running in shell mode, you need to set connect back host:
----- Local IP Address -----
0 10.0.0.4
Choose>:

一个容易忽略的坑

In [7]: proxies = 'test'
In [8]: proxies = proxies or conf.proxies if 'proxies' in conf else {}
In [9]: proxies
Out[9]: {}

if 的优先级比 or 高,所以先执行了 if 表达式的内容

在USE 加载POC的时候报路径错误

[19:13:45] [ERROR] [Errno 2] No such file or directory: 'usr/local/lib/python3/7/dist-packages/pocsuite3/pocs/test.py'

加载本身demo的POC 也是提示错误,在对应的路径下有poc,请问如何处理?

update错误

pocsuite --update

                          ,--. ,--.

,---. ,---. ,---.,---.,--.,----,-' '-.,---. {1.2.0-nongit-20190318} | .-. | .-. | .--( .-'| || ,--'-. .-| .-. : | '-' ' '-' \ --.-' ' '' | | | | \ --. | |-' ---' -------' ----'--' --' ----'
`--' http://pocsuite.org

[*] starting at 14:42:02

Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/pocsuite3/cli.py", line 54, in main
init()
File "/usr/local/lib/python3.7/dist-packages/pocsuite3/lib/core/option.py", line 577, in init
_set_pocs_modules()
File "/usr/local/lib/python3.7/dist-packages/pocsuite3/lib/core/option.py", line 328, in _set_pocs_modules
if not load_poc_sucess:
UnboundLocalError: local variable 'load_poc_sucess' referenced before assignment

[*] shutting down at 14:42:02

KeyError: 'registered_pocs'

register_poc(DemoPOC)

Traceback (most recent call last): File "D:\python3.7\lib\site-packages\pocsuite3\lib\core\datatype.py", line 18, in __getattr__ return self[name] KeyError: 'registered_pocs'

如何开启debug模式?

如果poc脚本出现语法错误,cli.py 会提示漏洞状态为“failed”,并不会把异常抛出来。
这样导致写脚本的时候非常不方便。
请问如何才能开启调试模式?

FileNotFoundError

Pocsuite3 > list
Traceback (most recent call last):
File "console.py", line 28, in
main()
File "console.py", line 24, in main
poc.start()
File "/usr/local/lib/python3.7/dist-packages/pocsuite3-1.2.0-py3.7.egg/pocsuite3/lib/core/interpreter.py", line 77, in start
command_handler(args)
File "/usr/local/lib/python3.7/dist-packages/pocsuite3-1.2.0-py3.7.egg/pocsuite3/lib/core/interpreter.py", line 414, in command_list
with open(found, encoding='utf-8') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/dist-packages/pocsuite3-1.2.0-py3.7.egg/pocsuite3/usr/local/lib/python3/7/dist-packages/pocsuite3-1/2/0-py3/7/egg/pocsuite3/pocs/thinkphp_rce2.py'

console模式各种错误

Pocsuite3 > show all
Traceback (most recent call last):
File "console.py", line 28, in
main()
File "console.py", line 24, in main
poc.start()
File "/usr/local/lib/python3.7/dist-packages/pocsuite3-1.2.0-py3.7.egg/pocsuite3/lib/core/interpreter.py", line 77, in start
command_handler(args)
File "/usr/local/lib/python3.7/dist-packages/pocsuite3-1.2.0-py3.7.egg/pocsuite3/lib/core/interpreter.py", line 231, in command_show
getattr(self, func)(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/pocsuite3-1.2.0-py3.7.egg/pocsuite3/lib/core/interpreter.py", line 425, in _show_all
self.command_list(args, kwargs)
File "/usr/local/lib/python3.7/dist-packages/pocsuite3-1.2.0-py3.7.egg/pocsuite3/lib/core/interpreter.py", line 414, in command_list
with open(found, encoding='utf-8') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/dist-packages/pocsuite3-1.2.0-py3.7.egg/pocsuite3/usr/local/lib/python3/7/dist-packages/pocsuite3-1/2/0-py3/7/egg/pocsuite3/pocs/thinkphp_rce2.py'
➜ pocsuite3 python3 console.py

                          ,--. ,--.

,---. ,---. ,---.,---.,--.,----,-' '-.,---. {1.2.0-nongit-20190318} | .-. | .-. | .--( .-'| || ,--'-. .-| .-. : | '-' ' '-' \ --.-' ' '' | | | | \ --. | |-' ---' -------' ----'--' --' ----'
`--' http://pocsuite.org

[15:58:32] [INFO] Load Pocs :12
Pocsuite3 > list all
Traceback (most recent call last):
File "console.py", line 28, in
main()
File "console.py", line 24, in main
poc.start()
File "/usr/local/lib/python3.7/dist-packages/pocsuite3-1.2.0-py3.7.egg/pocsuite3/lib/core/interpreter.py", line 77, in start
command_handler(args)
File "/usr/local/lib/python3.7/dist-packages/pocsuite3-1.2.0-py3.7.egg/pocsuite3/lib/core/interpreter.py", line 414, in command_list
with open(found, encoding='utf-8') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/dist-packages/pocsuite3-1.2.0-py3.7.egg/pocsuite3/usr/local/lib/python3/7/dist-packages/pocsuite3-1/2/0-py3/7/egg/pocsuite3/pocs/thinkphp_rce2.py'
➜ pocsuite3 python3 console.py

                          ,--. ,--.

,---. ,---. ,---.,---.,--.,----,-' '-.,---. {1.2.0-nongit-20190318} | .-. | .-. | .--( .-'| || ,--'-. .-| .-. : | '-' ' '-' \ --.-' ' '' | | | | \ --. | |-' ---' -------' ----'--' --' ----'
`--' http://pocsuite.org

[15:58:48] [INFO] Load Pocs :12
Pocsuite3 > list
Traceback (most recent call last):
File "console.py", line 28, in
main()
File "console.py", line 24, in main
poc.start()
File "/usr/local/lib/python3.7/dist-packages/pocsuite3-1.2.0-py3.7.egg/pocsuite3/lib/core/interpreter.py", line 77, in start
command_handler(args)
File "/usr/local/lib/python3.7/dist-packages/pocsuite3-1.2.0-py3.7.egg/pocsuite3/lib/core/interpreter.py", line 414, in command_list
with open(found, encoding='utf-8') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/dist-packages/pocsuite3-1.2.0-py3.7.egg/pocsuite3/usr/local/lib/python3/7/dist-packages/pocsuite3-1/2/0-py3/7/egg/pocsuite3/pocs/thinkphp_rce2.py'

shell模式只能自动载入网卡的ip

root@instance-template-1:~# pocsuite -r ecshop_rce.py -u 139.199.96.158:443 --threads 5 --shell

,------. ,--. ,--. ,----. {1.3.6-nongit-20190425}
| .--. ',---. ,---.,---.,--.,----,-' '-.,---.'.-. | | '--' | .-. | .--( .-'| || ,--'-. .-| .-. : .' < | | --'' '-' \ --.-' ' '' | | | | \ --/'-' | --' ---' -------' ----'--' --' --------' http://pocsuite.org
[*] starting at 08:25:02

[08:25:02] [INFO] loading PoC script '/usr/local/lib/python3.6/dist-packages/pocsuite3/pocs/ecshop_rce.py'
[i] pocsusite is running in shell mode, you need to set connect back host:
----- Local IP Address -----
0 10.140.0.2
Choose>: ...

很多云服务器网卡地址只有内网地址,但实际有外网ip,建议可手动输入ip和port

加载模块错误

☺☻Pocsuite3☺☻ > search think
+-------+--------------------+
| Index | Path |
+-------+--------------------+
| 0 | pocs\thinkphp_rce |
| 1 | pocs\thinkphp_rce2 |
+-------+--------------------+
☺☻Pocsuite3☺☻ > use 0
[12:54:49] [ERROR] load module failed! 'pocs\thinkphp_rce.py'
[12:54:49] [ERROR] No module named 'requests_toolbelt'

Shodan加载的坑

\pocsuite3\plugins\target_from_shodan.py
`class TargetFromShodan(PluginBase):
category = PLUGIN_TYPE.TARGETS

def init_shodan_api(self):
    self.shodan = Shodan()
    if self.shodan.get_resource_info():
        info_msg = "shodan credits limit {0}".format(self.shodan.credits)
        logger.info(info_msg)

def init(self):
    self.init_shodan_api()

`
其中init(self)应更正为 __init__(self)
不知道

api 模式下如何更改 默认配置

比如 pocs/ftp_burst.py

使用配置
config = { 'url': 'https://www.baidu.com/', 'poc': os.path.join(paths.POCSUITE_ROOT_PATH, "../tests/ftp_burst.py"), 'verbose': 0 }

如何更改默认端口21 到其他端口?

AttributeError: registered_pocs

报错信息
Traceback (most recent call last):
File "D:\Users\PC\Miniconda3\envs\py37\lib\site-packages\pocsuite3\lib\core\datatype.py", line 18, in getattr
return self[name]
KeyError: 'registered_pocs'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:/Users/PC/PycharmProjects/test/main.py", line 60, in
register_poc(verify_poc)
File "D:\Users\PC\Miniconda3\envs\py37\lib\site-packages\pocsuite3\lib\core\register.py", line 103, in register_poc
if module in kb.registered_pocs:
File "D:\Users\PC\Miniconda3\envs\py37\lib\site-packages\pocsuite3\lib\core\datatype.py", line 20, in getattr
raise AttributeError(name)
AttributeError: registered_pocs

Process finished with exit code 1

python版本为3,7,pocsuite版本是1.3.6
C:\Users\PC>activate py37

(py37) C:\Users\PC>python
Python 3.7.1 (default, Oct 28 2018, 08:39:03) [MSC v.1912 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.

exit()

(py37) C:\Users\PC>pocsuite --version

,------. ,--. ,--. ,----. {1.3.6-nongit-20190425}
| .--. ',---. ,---.,---.,--.,----,-' '-.,---.'.-. | | '--' | .-. | .--( .-'| || ,--'-. .-| .-. : .' < | | --'' '-' \ --.-' ' '' | | | | \ --/'-' | --' ---' -------' ----'--' --' --------' http://pocsuite.org

[*] shutting down at 16:23:18

(py37) C:\Users\PC>

error

执行pocsuite --version的时候,出现error提示

thinkphp_rce.py 参数加载顺序偶尔不对 导致脚本无效

有时候var参数到最前面了 导致探测漏报

POST /index.php?s=index/%5Cthink%5Capp/invokefunction HTTP/1.1
Host: x.x.x.x
Accept-Encoding: gzip, deflate
Accept: /
Connection: keep-alive
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.81 Safari/537.36
Content-Length: 70
Content-Type: application/x-www-form-urlencoded

vars%5B1%5D%5B%5D=-1&vars%5B0%5D=phpinfo&function=call_user_func_array

Credentials Dont Work

[16:23:43] [INFO] loading PoC script from seebug website using search keyword 'redis'
Telnet404 email account:[email protected]
Telnet404 password:
[16:24:48] [ERROR] HTTPSConnectionPool(host='api.zoomeye.org', port=443): Read timed out. (read timeout=30)
[16:24:48] [ERROR] The username or password is incorrect. Please enter the correct username and password.
[16:24:48] [ERROR] [PLUGIN] ZoomEye login faild
[16:24:48] [INFO] [PLUGIN] try fetch targets from zoomeye with dork: port:6379

AttributeError: 'Shodan' object has no attribute 'token'

[13:55:15] [INFO] loading PoC script '/usr/local/lib/python3.5/dist-packages/pocsuite3/pocs/libssh_auth_bypass.py'
[13:55:15] [INFO] PoC script "libssh CVE-2018-10933 身份验证绕过漏洞" requires "paramiko" to be installed
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/pocsuite3/cli.py", line 53, in main
init()
File "/usr/local/lib/python3.5/dist-packages/pocsuite3/lib/core/option.py", line 646, in init
_init_targets_plugins()
File "/usr/local/lib/python3.5/dist-packages/pocsuite3/lib/core/option.py", line 613, in _init_targets_plugins
plugin.init()
File "/usr/local/lib/python3.5/dist-packages/pocsuite3/plugins/target_from_shodan.py", line 21, in init
self.init_shodan_api()
File "/usr/local/lib/python3.5/dist-packages/pocsuite3/plugins/target_from_shodan.py", line 16, in init_shodan_api
if self.shodan.get_resource_info():
File "/usr/local/lib/python3.5/dist-packages/pocsuite3/modules/shodan/init.py", line 63, in get_resource_info
if self.check_token():
File "/usr/local/lib/python3.5/dist-packages/pocsuite3/modules/shodan/init.py", line 38, in check_token
if self.token_is_available():
File "/usr/local/lib/python3.5/dist-packages/pocsuite3/modules/shodan/init.py", line 28, in token_is_available
if self.token:
AttributeError: 'Shodan' object has no attribute 'token'

I don't know how to solve this problem

log to output

how to log output into log file?
i have a list of url more then 1000 url
i want to output valid vulnerable links to a file so i can check them later

thinkphp_rce.py 参数加载顺序偶尔不对 导致脚本无效

有时候var参数到最前面了 导致探测漏报 这是我从url.txt扫描一堆网站遇到的。单独扫描没有出现这个

POST /index.php?s=index/%5Cthink%5Capp/invokefunction HTTP/1.1
Host: x.x.x.x
Accept-Encoding: gzip, deflate
Accept: /
Connection: keep-alive
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.81 Safari/537.36
Content-Length: 70
Content-Type: application/x-www-form-urlencoded

vars%5B1%5D%5B%5D=-1&vars%5B0%5D=phpinfo&function=call_user_func_array

自带的poc之中pocs/drupalgeddon2 有问题

Pocsuite3 > list

+-------+----------------------------------------------+-------------------------------------------------------------------- ------+
| Index | Path | Name |
+-------+----------------------------------------------+-------------------------------------------------------------------- ------+
| 0 | pocs/thinkphp_rce | ThinkPHP 5.x (v5.0.23及v5.1.31以下版本) 远程命令执行漏洞利用(GetSh ell) |
| 1 | pocs/ecshop_rce | Ecshop 2.x/3.x Remote Code Execution |
| 2 | pocs/drupalgeddon2 | Drupal core Remote Code Execution |
| 3 | pocs/libssh_auth_bypass | libssh CVE-2018-10933 身份验证绕过漏洞

此处使用了Vulhub - Docker-Compose file for vulnerability environment
https://vulhub.org/#/environments/drupal/CVE-2018-7600/搭建的漏洞环境。使用vulhub文档中给出的poc测试复现成功,使用pocsuite3如下图:

Pocsuite3 (pocs/drupalgeddon2) > run
[10:37:58] [INFO] pocsusite got a total of 1 tasks
[10:37:58] [INFO] running poc:'Drupal core Remote Code Execution' target 'http://10.9.8.24:8080/'

+------------------------+-----------------------------------+--------+-----------+---------+--------+
| target-url | poc-name | poc-id | component | version | status |
+------------------------+-----------------------------------+--------+-----------+---------+--------+
| http://10.9.8.24:8080/ | Drupal core Remote Code Execution | 97207 | Drupal | | failed |
+------------------------+-----------------------------------+--------+-----------+---------+--------+
success : 0 / 1

AttributeError: 'XXX' object has no attribute 'mode' when use 'Output' method

Class DomePOC(POCBase):

    def _verify(self):
         ----verify----
         output = Output(self)
        # 验证代码
        if result:output.success(result)
        else:output.fail('target is not vulnerable')
        return result 

一旦加了使用Output函数就报错“xx object has no attribute mode”
错误代码:
File "C:\.py", line 113, in _verify2 output = Output(self) File "D:\Program Files (x86)\python\lib\site-packages\pocsuite3\lib\core\poc.py", line 247, in __init__ self.mode = poc.mode AttributeError: 'DomePOC' object has no attribute 'mode' [Finished in 14.9s]

Python.exe stop work appcrash with multithreading

错误应用程序名称: python.exe,版本: 3.7.3150.1013,时间戳: 0x5cababbb 错误模块名称: python37.dll,版本: 3.7.3150.1013,时间戳: 0x5cabab78 异常代码: 0xc0000005 错误偏移量: 0x0018281a 错误进程 ID: 0x1624 错误应用程序启动时间: 0x01d507fef2991ace 错误应用程序路径: d:\program files (x86)\python37\python.exe 错误模块路径: d:\program files (x86)\python37\python37.dll 报告 ID: 378d56d6-e186-4f59-8eea-007e34f45918 错误程序包全名: 错误程序包相对应用程序 ID:

'str' object has no attribute 'require'

需要交互输入命令,按照

单独使用OptString方法完全不起作用

于是定义方法并调用:

` def _options(self):
OptString('Y',require=True, description='XXX')

self._options()
`

会报错
'str' object has no attribute 'require'

难道不支持交互输入?

PoC from Seebug

Hi,
when i try to load a poc from seebug it give me this message:

➜ pocsuite3 git:(master) ✗ pocsuite -r ssvid-89339 --dork service:redis --max-page 1 --threads 10

,------. ,--. ,--. ,----. {1.2.5-nongit-20190323}
| .--. ',---. ,---.,---.,--.,----,-' '-.,---.'.-. | | '--' | .-. | .--( .-'| || ,--'-. .-| .-. : .' < | | --'' '-' \ --.-' ' '' | | | | \ --/'-' | --' ---' -------' ----'--' --' --------' http://pocsuite.org
[*] starting at 15:41:32

[15:41:33] [INFO] loading Poc script 'https://www.seebug.org/vuldb/ssvid-89339'
[15:41:33] [ERROR] no PoC script was loaded!
[15:41:33] [ERROR] no target(s) was added!
[15:41:33] [INFO] pocsusite got a total of 0 tasks
[15:41:33] [INFO] staring 10 threads

[*] shutting down at 15:41:33

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.