sudo npm run piggyback-loopback sudo npm run piggyback-loopback TARGET_IP= sudo npm run piggyback-loopback TARGET_IP= "OUTPUT_DIR="
(FILTER_FILE too)
How to Use
- ping the destination, record the specific IP address
- change the '/etc/hosts' file mapping hostname to IP address '127.0.0.1'
- change the 'reqOptions.hostname' assigned value in 'piggyback-loopback.js' to the value recorded earlier
- start the piggyback-loopback server
- open a browser in incognito mode, open a second tab, go to a valid URL location at the hostname, accept the certificate (so that this certificate will be considered by the browser in the standard case)
- use the web site in the other (original) browser tab
- stop the server and undo previous edit to '/etc/hosts'
run command: npm run piggyback-loopback TARGET_IP=172.20.210.161 FILTER_FILE=./filter-file-example.js OUTPUT_DIR=./temp1