GithubHelp home page GithubHelp logo

xajnx / proxyhunter Goto Github PK

View Code? Open in Web Editor NEW
35.0 2.0 13.0 123 KB

ProxyHunter v1 - Searches IP ranges for SOCKS and SQUID proxy servers

Home Page: https://github.com/xajnx/proxyhunter.git

License: GNU General Public License v3.0

Python 100.00%
proxy-list python3 proxy-checker proxychains

proxyhunter's Introduction

ProxyHunter v1
[email protected]
https://github.com/xajnx/proxyhunter

Due to the website that was used to parse proxy servers for the proxyupdate script. it was necessary to re-write a more reliable script to obtain available servers.

ProxyHunter v1 is a CLI python3 script that uses the ip_ranges_US.txt list of US ip-ranges to search out Squid proxy servers. To use IP ranges for other countries visit: http://www.ipaddresslocation.org/ip_ranges/get_ranges.php and select your country and select CIDR format from the drop-down menus and then download to your proxyhunter directory.

Because this script does the searching instead of relying on other data it will take some time to search out open servers. It finds servers by pulling 2500 random ip-ranges from the list and searches until it locates 25 open proxy servers. There is also an option to spoof your MAC address if your network adapter allows for that, and requires root access and an external script.

FEATURES

  • scans most popular proxy ports(more can be added)
  • retrieves proxies from random ip ranges from country of choice (default:US)
  • writes results to file, easy to cut and paste into proxychains.conf
  • can scan single ip (eg:192.168.2.1) or ip range (eg: 192.168.2.0/24)

FUTURE

  • implement arguments to change vars such as socket timeout and single ip or ip range.
  • options to increase or decrease number of found proxies before exit
  • attempts to connect to test sites to see if proxy is valid
  • MORE!

REQUIREMENTS:
if you don't have any of these libraries installed, type: pip3 install library or sudo -H pip3 install library

sys
socket
colorama
netaddr
time
random
os
pause
MACSpoof
(MACSpoof how-to can be found here: https://github.com/feross/SpoofMAC)

USAGE: python3 proxyhunter.py or to use the MACSpoof feature: sudo python3 proxyhunter.py

Result:

skywalker@endor:~/scripts/python/proxyhunter$ python3 proxyhunter.py
-=--=--=--=--=-
Proxy Hunter v1
-=--=--=--=--=-

Would you like to spoof your MAC address?(y/n):n\

Initializing scanner..
Please wait this may take some time.
104.236.27.0/24: 256 available IPs
Checking host: 104.236.27.2
104.236.27.2:80 is OPEN
no proxy
Checking host: 104.236.27.6
104.236.27.6:80 is OPEN
Service: Socks
Saving.. 104.236.27.6:81 is OPEN
no proxy
104.236.27.6:3128 is OPEN
Service: Socks
Saving.. 104.236.27.6:8080 is OPEN
Service: Squid
Saving.. Checking host: 104.236.27.7
104.236.27.7:80 is OPEN
....

proxyhunter's People

Contributors

xajnx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

proxyhunter's Issues

error

Traceback (most recent call last):
File "proxyhunter.py", line 7, in
from netaddr import IPNetwork
ModuleNotFoundError: No module named 'netaddr'

im done this.

pip install netaddr
pip install tabulate==0.8.0

where im doing mistakes.

time.clock() error

Please update time.clock to time.pref_counter() as time.clock() has been depreciated from python 3.3 forward
reason it was depreciated was due to its lack of cross compatibly.

source of solution: https://stackoverflow.com/questions/58569361/attributeerror-module-time-has-no-attribute-clock-in-python-3-8

short version

change line 20 start = time.clock()

to this

start = time.time()

or this

start = time.perf_counter()

Didn't save the results

I've installed all requirements, change the file path in proxyhunter.py and try to run but it didn't save any results to proxy.lst.
Are there more things i must set or change?

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.