Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
F0x01 opened this issue Mar 14, 2016 · 7 comments
Closed

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

F0x01 opened this issue Mar 14, 2016 · 7 comments
Labels

Comments

@F0x01
Copy link

F0x01 commented Mar 14, 2016

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
Copy link
Author

F0x01 commented Mar 15, 2016

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

@Wyc0
Copy link
Contributor

Wyc0 commented Mar 15, 2016

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

@Wyc0 Wyc0 added the bug label Mar 15, 2016
@F0x01
Copy link
Author

F0x01 commented Mar 15, 2016

更新了最新的安装包,问题依旧,测试结果如下:
`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
Copy link
Author

F0x01 commented Mar 15, 2016

确实是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
from .lib.core.option import initOptions
File "C:\Python27\Pocsuite-master\pocsuite\lib\core\option.py", line 37, in
from pocsuite.lib.controller.setpoc import setPoc
File "C:\Python27\Pocsuite-master\pocsuite\lib\controller\setpoc.py", line 61
+ conf.pocname = os.path.split(conf.pocFile)[1]
^
IndentationError: unindent does not match any outer indentation level

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
from .lib.core.option import initOptions
File "C:\Python27\Pocsuite-master\pocsuite\lib\core\option.py", line 37, in
from pocsuite.lib.controller.setpoc import setPoc
File "C:\Python27\Pocsuite-master\pocsuite\lib\controller\setpoc.py", line 61
+ conf.pocname = os.path.split(conf.pocFile)[1]
^
IndentationError: unindent does not match any outer indentation level
`
我使用pocsuite.py测试好了 。
kali 下pocsuite.py 测试通过,没有问题,完美运行。

@F0x01 F0x01 closed this as completed Mar 15, 2016
@F0x01 F0x01 reopened this Mar 15, 2016
@Wyc0
Copy link
Contributor

Wyc0 commented Mar 15, 2016

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

@F0x01
Copy link
Author

F0x01 commented Mar 16, 2016

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

@Wyc0
Copy link
Contributor

Wyc0 commented Mar 16, 2016

ok

@Wyc0 Wyc0 closed this as completed Mar 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants