Skip to content

lnorbert89/TOR-IP-Changer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TOR IP Changer Script

This script changes IP address through TOR service at random intervals.

Features

  • IP address change at random intervals
  • Configurable time intervals
  • Automatic TOR service restart
  • IP address verification through multiple services
  • Detailed logging
  • Clean shutdown with signal handling

Prerequisites

  • Python 3.6+
  • TOR service installed and configured
  • curl command available
  • Root privileges (recommended)

Installation

  1. Make the script executable:
chmod +x tor_ip_changer.py
  1. Check if TOR service is running:
sudo systemctl status tor
  1. If not running, start it:
sudo systemctl start tor
sudo systemctl enable tor

Usage

Basic usage (default settings)

sudo python3 tor_ip_changer.py

Custom time intervals

# Between 30-120 seconds
sudo python3 tor_ip_changer.py -m 30 -M 120

# Between 1-5 minutes
sudo python3 tor_ip_changer.py --min 60 --max 300

Parameters

  • -m, --min: Minimum waiting time in seconds (default: 60)
  • -M, --max: Maximum waiting time in seconds (default: 300)
  • --version: Show version

Examples

# Fast IP change (30-60 seconds)
sudo python3 tor_ip_changer.py -m 30 -M 60

# Slow IP change (5-15 minutes)
sudo python3 tor_ip_changer.py -m 300 -M 900

# Medium IP change (2-8 minutes)
sudo python3 tor_ip_changer.py -m 120 -M 480

Logging

The script logs all operations to:

  • Console (stdout)
  • tor_ip_changer.log file

Shutdown

The script shuts down cleanly via:

  • Ctrl+C (SIGINT)
  • kill command (SIGTERM)

Security Notes

  • The script runs with root privileges to manage TOR service
  • Too frequent IP changes (under 30 seconds) are not recommended
  • Check local laws before using TOR network

Troubleshooting

TOR service not running

sudo systemctl start tor
sudo systemctl status tor

IP address not changing

  • Check TOR configuration
  • Wait longer for new IP address to be set
  • Check log file

Missing permissions

sudo chmod +x tor_ip_changer.py
sudo python3 tor_ip_changer.py

Developer Information

  • Version: 1.0
  • Language: Python 3
  • License: MIT
  • Supported Systems: Linux (systemd)

Contact

If you experience issues or have suggestions, please create the appropriate issue.

About

This script changes IP address through TOR service at random intervals.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors