WordPress静态代码分析工具
2020-01-09 11:26:57 Author: mp.weixin.qq.com(查看原文) 阅读量:64 收藏


安装
只需克隆存储库,安装需求并运行脚本即可

$ git clone https://github.com/webarx-security/wpbullet wpbullet
$ cd wpbullet
$ pip install -r requirements.txt
$ python wpbullet.py

用法
可用选项:

--path (required) System path or download URL 
Examples:
--path="/path/to/plugin"
--path="https://wordpress.org/plugins/example-plugin"
--path="https://downloads.wordpress.org/plugin/example-plugin.1.5.zip"

--enabled (optional) Check only for given modules, ex. --enabled="SQLInjection,CrossSiteScripting"
--disabled (optional) Don't check for given modules, ex. --disabled="SQLInjection,CrossSiteScripting"
--cleanup (optional) Automatically remove content of .temp folder after scanning remotely downloaded plugin

$ python wpbullet.py --path="/var/www/wp-content/plugins/plugin-name"

创建模块

创建模块是灵活的,允许覆盖BaseClass每个模块的方法以及创建自己的方法
Modules目录中的每个模块都是从中实现属性和方法core.modules.BaseClass,因此每个模块的必需参数是BaseClass
创建后,需要导入模块modules/__init__.py。模块和类名必须一致才能加载模块。
如果您要打开拉取请求以添加新模块,请同时为您的模块提供单元测试。

文章来源:

https://www.agesec.com/2233.html

推荐文章++++

*Sparrow-WiFi:Linux平台下的图形化WiFi及蓝牙分析工具

*PEpper 一款对软件进行静态分析工具

*iOSForensic 一款iOS上取证分析工具


文章来源: http://mp.weixin.qq.com/s?__biz=MzAxMjE3ODU3MQ==&mid=2650459319&idx=4&sn=95204d9e05640ba629f696ca79c1b548&chksm=83bba953b4cc204520f49141cf1e134d62c1a224a0d391c1d9c5731a4e12f3f8256c65f486cd#rd
如有侵权请联系:admin#unsafe.sh