mirror of
https://github.com/DavidVentura/cam-reverse
synced 2026-08-10 12:58:22 -04:00
30 lines
723 B
Makefile
30 lines
723 B
Makefile
.PHONY: run hook install-wireshark-dissector test build typecheck
|
|
|
|
bundle.js: frida-hooks.js func_replacements.js
|
|
~/node_modules/.bin/frida-compile -o $@ frida-hooks.js
|
|
|
|
venv: requirements.txt
|
|
python3.11 -m venv venv
|
|
./venv/bin/pip install -r requirements.txt
|
|
touch venv
|
|
|
|
typecheck: node_modules
|
|
npm run tsc
|
|
build: node_modules
|
|
npm run build
|
|
|
|
run: build
|
|
node dist/bin.cjs http_server --port=1234
|
|
|
|
hook: bundle.js venv
|
|
./venv/bin/python3 -u loader3.py
|
|
|
|
node_modules:
|
|
npm install
|
|
|
|
test: node_modules
|
|
./node_modules/.bin/mocha --require ts-node/register tests/fn.test.js
|
|
|
|
install-wireshark-dissector:
|
|
mkdir -p ~/.local/lib/wireshark/plugins
|
|
ln -s $(PWD)/dissector.lua ~/.local/lib/wireshark/plugins/dissector.lua
|