Skip to content

Commit 71d9f60

Browse files
authored
Add getProxies() and Proxy class
The Proxy class allows for Socks 4 or 5 proxy tunneling within the Python script, working across all modules.
1 parent bcc8fdc commit 71d9f60

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

hacklib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def __init__(self):
293293
# Dynamically import socks.py from the internet
294294
socks = importFromString(self._socksfile, 'socks')
295295

296-
def set_auto(self, proxies, timeout=10):
296+
def connect(self, proxies, timeout=10):
297297
for proxy in proxies:
298298
if proxy[4] == 'Socks4':
299299
self.proxy_type = socks.PROXY_TYPE_SOCKS4
@@ -312,7 +312,7 @@ def set_auto(self, proxies, timeout=10):
312312
except: pass
313313
raise Exception('Couldn\'t connect to any proxies.')
314314

315-
def set_manual(IP, port, proxy_type='Socks5'):
315+
def connect_manual(IP, port, proxy_type='Socks5'):
316316
if proxy_type == 'Socks4':
317317
self.proxy_type = socks.PROXY_TYPE_SOCKS4
318318
else:

0 commit comments

Comments
 (0)