此代码来自 "Drupal 7.0 < 7.31 - 'Drupalgeddon' SQL Injection (Add Admin User)",已转换为 Python 3,以适配 Academy 中模块 "Attacking Commoon Applications" 和部分 "Attacking Drupal" 的练习。
原始代码使用 Python 2 编写,但已将其转换为兼容 Python 3。此 README 结构复制自此处。
要运行此代码,您的系统需要安装 Python 3。
运行代码只需在终端或命令提示符中使用 Python 3 执行脚本即可。例如:
$ wget https://github.com/joaomorenorf/CVE-2014-3704/raw/refs/heads/master/CVE-2014-3704.py
$ python3 CVE-2014-3704.py
如果您发现代码存在任何问题或有改进建议,请随时提交 issue 或发起 pull request。