Skip to content

DumbMachine/Tor-Requests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Tor-Requests

⭕NOTE: If poeple actually require and use this, then I would love to make this into a Python Library and continue development.

Easy to use Python Script to obtain new IP address for any purpose you like, maybe web srcaping.

Installation:

Linux:

  • First make sure you ahve Tor installed on the system.
$ sudo apt update
$ sudo apt install Tor
  • After the installation of Tor follow the below steps:
    • Restart the Service: bash $ sudo /etc/init.d/tor restart
    • Generate Password for the Serivice: (replace with phrase of your choice)
       $ tor --hash-password <enter your password here>
    
       OUTPUT:
       ----------------------------------------------
       16:437b930db84b8079c2dd804a71936b5f
    Make note of the hash generated here. It will be required later on. -To enable the listening of Tor we edit the config file for Tro client.
    $ gedit ./etc/tor/torrc  #Default location of the torrc file.
    Uncomment the lines that are similar to:
    SOCKSPort 9050
    HashedControlPassword <your hashed passsword obtained earlier here>
    CookieAuthentication 1
    
    Paste the Hash generated in the last step wtih .
    • Save and restart the service.
    $ sudo /etc/init.d/tor restart 

Windows:

  • You guys have it easy. Make sure you have Tor browser install on your system. If not visit this site.
  • Thats it. You have nothing else to do.

DEMO:

#Instantiate the Object
something = Trequests()

#Normal Public IP
something.checkIP()

something.launchTor()

#Obtaining new IP for your Hacker Self
something.set_new_ip()

something.checkIP()

TODO:

  • Windows Support.
  • Linux Support. {Partial Support available, few changes to be added}
  • Wrape the Requests Package.
  • Add support for using User-defined Proxies.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages