【笔记】编译pentestkit浏览器插件

前言

The Penetration Testing Kit (PTK) browser extension is your all-in-one solution for streamlining your daily tasks in the realm of application security. Whether you’re a penetration tester, a member of a Red Team, or an application security practitioner, this extension is designed to enhance your efficiency and provide valuable insights.(Github

下载项目

1
2
git clone https://github.com/DenisPodgurskii/pentestkit.git
cd pentestkit

下载依赖

1
npm install

手动下载部分已缺失的依赖

1
2
wget https://cdn.jsdelivr.net/npm/wappalyzer/wappalyzer.js -O node_modules/wappalyzer/wappalyzer.js
wget https://cdn.jsdelivr.net/npm/datatables.net/js/jquery.dataTables.min.js -O node_modules/datatables.net/js/jquery.dataTables.min.js

编译为已解压的扩展程序

1
npm run build
  • 编译完成后会产生src目录,在Chrome中通过加载已解压的扩展程序导入

编译为打包扩展程序

1
2
npm run build
npm run build_pkg
  • 编译完成后会产生dist目录,在Chrome中通过打包扩展程序导入或Firefox直接导入

完成

参考文献

DenisPodgurskii/pentestkit