Code Monkey home page Code Monkey logo

ipchanger's Introduction

IPChanger

Description

IPChanger uses the TOR Controlport to request a new exit node, and will keep working until it gets one. Essentially, this changes your external IP address each time IPChanger is run. It does this via ControlPort commands, and then uses an external IP lookup site to validate your external IP address. You will then need to use something like proxychains (https://github.com/haad/proxychains) to leverage this new ipaddress. Duh

To make sure this is absolutely clear, this script will change your TOR Ipaddress only. If you do not route your traffic through TOR, your real external IP will be exposed. Use proxychains (see example below) to route your applications through proxychains.

Image ScreenShot

Why use this tool?

  • You want to map out the TOR network (probably a bad idea)
  • You are trying to get around CAPTCHAs (probably a bad idea)
  • 1 word: Girls LOVE TOR HACKERS
  • Because it was acceptable in the 80s (https://www.youtube.com/watch?v=dOV5WXISM24)

Installation

Installation is easy and free:

When you sit back and think about it, IPChanger is pretty needy. It expects a lot of things to be able to run correctly:

  • Requires Linux Operating System because it needs to interact with TOR client via the control port, and mostly because I have not tested Windows or MacOS yet. I have tested this on Debian and Kali, and it works great for me. If you need this to work on something else, I accept bitcoin or pull requests.
  • pip3 install -r requirements.txt
  • Requires TOR installed & working, and configured to allow ControlPort for controller applications. See TOR Configuration below to get this working
  • Doesnt require ProxyChains to work, but requires ProxyChains to work -- if you know what I mean ;)

Usage Instructions

You should try running it standalone before importing into your code, as it will check to make sure everything works as expected & operating environment is sane.

  1. Works fine for standalone use

    $ python3 IPChanger.py 
  2. Or as an import into your existing code

    import IPChanger
    oldip, newip = IPChanger.getNewIP(display=True) # if you want output
    print(f'OldIP: {oldip} | NewIP:{newip}')

TOR Configuration Instructions

  1. Install Linux TOR Client:

    $ sudo apt install tor 
  2. Generate the HashedControlPassword needed to control the Tor proxy:

    $ tor --hash-password ""
  3. Edit the /etc/tor/torrc file and uncomment 'ControlPort', CookieAuthenication, and 'HashedControlPassword'. Replace the example hash with the hash you generated above:

    $ sudo nano /etc/tor/torrc

    The file should look similar to this (hash will be different)

    ## The port on which Tor will listen for local connections from Tor
    ## controller applications, as documented in control-spec.txt.
    ControlPort 9051
    ## If you enable the controlport, be sure to enable one of these
    ## authentication methods, to prevent attackers from accessing it.
    HashedControlPassword 16:238FDE9CC88B6265608CEB18405196EFDB15F7FD1100D0663B0498D223
    CookieAuthentication 1
  4. Restart the Tor client:

    $ sudo service tor restart

Proxychains usage

  1. Lots of instructions & examples on the internet.. So try there. This is just a simple example

    $ curl icanhazip.com
    $ python3 IPChanger.py && proxychains bash 
    $ curl icanhazip.com

ipchanger's People

Contributors

hevnsnt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.