ip-grabber/README.md

14 lines
634 B
Markdown
Raw Permalink Normal View History

2022-02-04 10:43:30 -05:00
# IP Grabber
2022-05-08 15:33:16 -04:00
2022-02-04 10:40:58 -05:00
Logs the client IPv4 address and redirects them to a target website using Node.js.
2022-02-04 10:43:30 -05:00
2022-05-08 15:33:16 -04:00
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:
```sh
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
```