Skip to content

upupming/keep-request

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

keep-request

Keep requesting a web page using different IP addresses.

Install Tor

$ sudo apt install tor

Configure Tor

$ sudo vi /etv/tor/torrc

# In the file, add the following line to change IP per 60s:
  MaxCircuitDirtiness 3

Start Tor

$ tor
$ lsof -i :9050
COMMAND   PID       USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
tor     13225 debian-tor    6u  IPv4 9710958      0t0  TCP localhost:9050 (LISTEN)

$ # If you want to kill tor, just run:
$ killall tor

Run app.js

npm run request -- -u https://github.com -t 3000

Tips

To run Tor and keep-request in background even if you disconnect your server SSH connection, you can run them in a new screen:

$ screen -S tor
$ tor
# Use control+A, then D to detach the screen, then open another screen

$ screen -S keep-proxy
$ npm run request -- -u https://github.com -t 3000
# Use control+A, then D to detach the screen

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published