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

add pocsuite console feature #73

Closed nixawk closed 8 years ago

nixawk commented 8 years ago

Try to add a powerful and interactive console,

$ ./pcs-console.py ./modules

                              ,--. ,--.
 ,---. ,---. ,---.,---.,--.,--`--,-'  '-.,---.  {2.0.4.1-782b2aa}
| .-. | .-. | .--(  .-'|  ||  ,--'-.  .-| .-. :
| '-' ' '-' \ `--.-'  `'  ''  |  | |  | \   --.
|  |-' `---' `---`----' `----'`--' `--'  `----'
`--'                                            http://pocsuite.org

Pocsuite> help

Core Commands Menu (help <command> for details)
===============================================
attack          conduncting attack
back            Move back from the current context
banner          Display an awesome framework banner
help            Show help menu
load            load specific poc file(s).
set             Set key equal to value
show            Show available options / modules
verify          conducting verification

Pocsuite> show pocs
{1: './modules/apache_struts_s2_033.py',
 2: './modules/dlink_command_php_exec_noauth.py'}
Pocsuite> load 2
[*] load poc file(s) success!
Pocsuite> set url http://www.baidu.com/
Pocsuite> attack
[07:18:53] [*] setting the HTTP timeout
[07:18:53] [*] checking dlink_command_php_exec_noauth
[07:18:53] [!] missing ['appPowerLink'] in dlink_command_php_exec_noauth
[07:18:53] [*] poc:'dlink_command_php_exec_noauth' target:'http://www.baidu.com/'
[07:18:54] [-] poc-78176 'Multiple Vulnerabilities in D-Link DIR-600 and DIR-300' failed.
+-----------------------+-------------------------------+--------+-----------+------------------+----------+
|       target-url      |            poc-name           | poc-id | component |     version      |  status  |
+-----------------------+-------------------------------+--------+-----------+------------------+----------+
| http://www.baidu.com/ | dlink_command_php_exec_noauth | 78176  |   D-Link  | DIR-300, DIR-600 | Error: n |
+-----------------------+-------------------------------+--------+-----------+------------------+----------+
success : 0 / 1
ziflar commented 8 years ago

hello ;how to add poc modules

nixawk commented 8 years ago

@ziflar pocadd is a choice. When you need help, please enter help pocadd in the console.