knownsec / Pocsuite

This project has stopped to maintenance, please to https://github.com/knownsec/pocsuite3 project.
http://pocsuite.org
1.83k stars 607 forks source link

无法载入POC ,新手求教 #51

Closed F0x01 closed 8 years ago

F0x01 commented 8 years ago

kali 安装pocsuite 使用pcs-console.py 提示如下: `Pcs.poc> avaliable +-------+----------------------------+---------+ | pocId | avaliablePocName | Folder | +-------+----------------------------+---------+ | 1 | dede_download.php_sqli.php | modules | | 2 | SSV-62274 | modules | | 3 | dede_guestbook_sqli | modules | | 4 | dede_search.php_sqli | modules | | 5 | dede_recommend.php_sqli | modules | +-------+----------------------------+---------+

Pcs.poc> load 1 unable to access item 'isPocString' `

程序版本为最新版 1.2.6 求解答原因~

F0x01 commented 8 years ago

在win和Linux平台测试,均无法直接载入,需要load 1 输入两次, 才会载入成功,但是load成功后无法loaded查看载入的poc, 不过在config中show命令可以看到成功载入,然后无论verify还是attack 都会提示,unable to access item 'requires' 是poc的问题吗?

Wyc0 commented 8 years ago

不是poc的问题 pcs-console之前有bug 修复commit 更新下代码应该好了0.0有问题的话还可以反馈

F0x01 commented 8 years ago

更新了最新的安装包,问题依旧,测试结果如下: `Pcs> config Pcs.config> url Pcs.config.url> www.aipai.com Pcs.config> q Pcs> poc Pcs.poc> avaliable +-------+----------------------------+---------+ | pocId | avaliablePocName | Folder | +-------+----------------------------+---------+ | 1 | dede_download.php_sqli.php | modules | | 2 | SSV-62274 | modules | | 3 | dede_guestbook_sqli | modules | | 4 | dede_search.php_sqli | modules | | 5 | dede_recommend.php_sqli | modules | +-------+----------------------------+---------+

Pcs.poc> load 1 unable to access item 'isPocString' Pcs.poc> load 1 1 Pcs.poc> loaded unable to access item 'requires' Pcs.poc> avaliable +-------+-------------------------+---------+ | pocId | avaliablePocName | Folder | +-------+-------------------------+---------+ | 2 | SSV-62274 | modules | | 3 | dede_guestbook_sqli | modules | | 4 | dede_search.php_sqli | modules | | 5 | dede_recommend.php_sqli | modules | +-------+-------------------------+---------+

Pcs.poc> q Pcs> config Pcs.config> show +---------+----------------------------------------------------------------------+ | config | value | +---------+----------------------------------------------------------------------+ | threads | 1 | | url | www.aipai.com | | pocFile | /root/Pocsuite-master/pocsuite/modules/dede_download.php_sqli.php.py | | timeout | 5 | +---------+----------------------------------------------------------------------+ Pcs.config> q Pcs> verify [13:34:29] [] setting the HTTP timeout unable to access item 'requires' Pcs> attack [13:34:40] [] setting the HTTP timeout unable to access item 'requires' Pcs> ?? ` 是哪里出了问题,pocsuite-master.zip未更新吗,如果直接用pocsuite.py会不会好点。

F0x01 commented 8 years ago

确实是pocsuite-master.zip 未更新,直接手动更新,然后发现更爆炸了 `C:\Python27\Pocsuite-master>python pcs-console.py Traceback (most recent call last): File "pcs-console.py", line 11, in from pocsuite.pocsuite_console import main File "C:\Python27\Pocsuite-master\pocsuite\pocsuite_console.py", line 10, in < module> from pocsuite_cli import modulePath File "C:\Python27\Pocsuite-master\pocsuite\pocsuite_cli.py", line 28, in <modu le> from .lib.core.option import initOptions File "C:\Python27\Pocsuite-master\pocsuite\lib\core\option.py", line 37, in <m odule> from pocsuite.lib.controller.setpoc import setPoc File "C:\Python27\Pocsuite-master\pocsuite\lib\controller\setpoc.py", line 61

C:\Python27\Pocsuite-master>python pocsuite.py --help Traceback (most recent call last): File "pocsuite.py", line 11, in from pocsuite.pocsuite_cli import main File "C:\Python27\Pocsuite-master\pocsuite\pocsuite_cli.py", line 28, in <modu le> from .lib.core.option import initOptions File "C:\Python27\Pocsuite-master\pocsuite\lib\core\option.py", line 37, in <m odule> from pocsuite.lib.controller.setpoc import setPoc File "C:\Python27\Pocsuite-master\pocsuite\lib\controller\setpoc.py", line 61

Wyc0 commented 8 years ago

= = 现在是更新到 dev 分支 还没有合并到 master 分支 我看你更新了之后用的还是 master 分支的代码 切换下就行了

F0x01 commented 8 years ago

dev 分支测试成功,完美运行 赞~\(≧▽≦)/~

Wyc0 commented 8 years ago

ok