Python Forum
Hello all, here is a proxysocks5 tester
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hello all, here is a proxysocks5 tester
#1
If some are you are into hacking(WhiteHat) here is a free proxy tester. Just type the address and port and it will tell you if it is up.

Have fun, I am slowly learning python.


import socket   
import sys

print("proxy Tester by Blue Dog")
print('When you enter the proxy address make sure that you put it in ""')
print('Port does not have to have "" around it, it is not a string')
 
try:
    #create socket (TCP)
    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
except socket.error, msg:
    print 'Failed to create socket. Error code: ' + str(msg[0]) + ' , Error message : ' + msg[1]
    sys.exit();
 
print 'Socket Created'
addr = input("Type in your proxy address like this '104.145.75.97'  ")
port_num = input("Type in the port of your proxy ")
 
host = addr
port = port_num 
 
try:
    remote_ip = socket.gethostbyname( host )
 
except socket.gaierror:
    #could not resolve site is down or not their
    print 'Hostname could not be resolved. Exiting'
    sys.exit()
     
print 'Ip address of ' + host + ' is ' + remote_ip
 
#Connect to remote server
s.connect((remote_ip , port))
 
print 'Socket Connected to ' + host + ' on ip ' + remote_ip
Thanks all of you for your help

bluedog
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020