ip-grabber/README.md
array-in-a-matrix cd7cb28280 added https
2022-05-08 15:33:16 -04:00

634 B

IP Grabber

Logs the client IPv4 address and redirects them to a target website using Node.js.

The grabber will redirect the client to the first commandline argument (a link or IP) if it exists. Otherwise, it will use the default link defined in the code. 2 Node.js servers will be hosted on port 3030 (HTTP) and port 3031 (HTTPS) by default. If you plan on using HTTPS, you can generate a certificate using these commands:

openssl genrsa -out key.pem
openssl req -new -key key.pem -out csr.pem
openssl x509 -req -days 9999 -in csr.pem -signkey key.pem -out cert.pem
mkdir cert && mv cert.pem key.pem cert && rm csr.pem