No description
Find a file
CATALPA 38331e13f2
First commit
First commit
2023-07-04 16:40:51 +08:00
ori First commit 2023-07-04 16:40:51 +08:00
automatic_repack.py First commit 2023-07-04 16:40:51 +08:00
LICENSE Initial commit 2023-07-04 16:39:34 +08:00
README.md First commit 2023-07-04 16:40:51 +08:00

FortiGate automatic repack script

version: v0.2

使用说明

在执行脚本前,需要在 ori 目录下放置几个文件

  1. busybox
  2. rev_shell后门程序如果不提前放置在执行脚本时会提示是否自动生成
  3. rootfs.gz从虚拟磁盘提取到的原始 rootfs.gz 文件

此外还需要将 busybox 程序复制到 /bin 目录下, 确保文件 /bin/busybox 存在。

之后执行命令,按照提示操作。

python3 automatic_repack.py

注意

patch init 需要手动完成,可以直接对 do_halt 函数打补丁,欢迎您帮助完善代码。

仅在 7.2.x vm 版本测试过。

将最终生成的 rootfs.gz 覆盖到原始位置,启动时需要调试内核修改启动参数,请参考文章。

相关文章

https://wzt.ac.cn/2023/03/02/fortios_padding/