GeezerVison is showing github.com — The Bug Expedition v1.8 · checker/cli@3b25846
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .gitignore +10-6Lines changed: 10 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -10,15 +10,19 @@ AVAILABLE.txt | 10 | 10 |
| 11 | 11 | # Get yer own word lists... | 12 | 12 | word_lists/OG-LIST2.txt | | 13 | +word_lists/TEST-LIST | 13 | 14 |
| 14 | 15 | # No, you can't have my proxies... | 15 | | -proxy_lists/proxies.txt | | 16 | +proxy_lists/private_proxies.txt | 16 | 17 | proxy_lists/good_proxies.txt | 17 | 18 | proxy_lists/bad_proxies.txt | 18 | 19 |
| 19 | | -# Feature not ready for release | 20 | | -run_script_mac.command | 21 | | -run_script_mac.sh | 22 | | - | 23 | 20 | # Cache files | 24 | | -lib/__pycache__ | | 21 | +lib/__pycache__ | | 22 | + | | 23 | +# Archives | | 24 | +ogcheckr.tar.gz | | 25 | + | | 26 | +# Other files | | 27 | +setup.py | | 28 | +scripts/* |
Collapse file Copy file name to clipboardExpand all lines: CHANGELOG +14-5Lines changed: 14 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 2 | 2 | CURRENT RELEASE | 3 | 3 | ================================ | 4 | 4 |
| | 5 | +The Bug Expedition | | 6 | +v1.8 (April 1, 2018) | | 7 | + | | 8 | +- Completely re-wrote the broken proxy integration and filtering system | | 9 | +- Added the ability to disable proxy filtering. This was the most requested feature and now it's finally here! | | 10 | +- Added support for SOCKS proxies. No need to do anything special, just put them in your proxy list as any other proxy. | | 11 | +- Added Giphy channel support | | 12 | +- Removed and consolidated some of the files in the libs/ directory | | 13 | + | | 14 | +================================ | | 15 | + LAST RELEASE | | 16 | +================================ | | 17 | + | 5 | 18 | The Glorious Update | 6 | 19 | v1.7 (November 21, 2017) | 7 | 20 |
| 8 | 21 | - Implemented proxy checker and filtering system | 9 | 22 | - Re-implemented Instagram support | 10 | | -- Added Pastebin user support | 11 | | - | 12 | | -================================ | 13 | | - PAST RELEASES | 14 | | -================================ | | 23 | +- Added Pastebin user support |
Collapse file Copy file name to clipboardExpand all lines: OGCheckr.py +5-53Lines changed: 5 additions & 53 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 2 | 2 | # Python Standard Modules | 3 | 3 | import sys | 4 | 4 | import os | 5 | | -import threading | 6 | | -from queue import Queue | 7 | | -import time | 8 | | -from lib.proxy import * | 9 | 5 | from lib.configure import getSite as SITE | 10 | 6 | from lib.configure import enableProxy as PROXY | 11 | | -from lib.configure import numThreads as THREADS | 12 | | -from lib.configure import getProxyList as PROXYLIST | 13 | | -from lib.configure import getBadProxyList as BADPROXYLIST | 14 | | - | 15 | | -print_lock = threading.Lock() | 16 | | -plist = get_proxy_list() | 17 | | -numProxies = len(plist) | 18 | | -q = Queue() | 19 | | - | 20 | | -def requestJob(proxy): | 21 | | - if check_proxy(proxy): | 22 | | - with print_lock: | 23 | | - print("%s is working" % proxy) | 24 | | - | 25 | | -def threader(): | 26 | | - while True: | 27 | | - item = q.get() | 28 | | - requestJob(item) | 29 | | - q.task_done() | | 7 | +from lib.configure import proxyFiltering as PFILTER | | 8 | +from lib.ProxyHelper import ProxyHelper | 30 | 9 |
| 31 | 10 | def main(): | 32 | | - if PROXY and plist is not None: | 33 | | - print("Checking and filtering out bad proxies...") | 34 | | - start = time.time() | 35 | | - | 36 | | - for x in range(THREADS()): | 37 | | - t = threading.Thread(target = threader) | 38 | | - t.daemon = True | 39 | | - t.start() | 40 | | - | 41 | | - for item in plist: | 42 | | - q.put(item) | 43 | | - | 44 | | - q.join() | 45 | | - | 46 | | - f = open('proxy_lists/good_proxies.txt', 'a') | 47 | | - for p in good_proxies: | 48 | | - f.write("%s\n" % str(p)) | 49 | | - f.close() | 50 | | - | 51 | | - f = open('proxy_lists/bad_proxies.txt', 'a') | 52 | | - for p in bad_proxies: | 53 | | - f.write("%s\n" % str(p)) | 54 | | - f.close() | 55 | | - | 56 | | - total = str(time.time()-start) | 57 | | - numBad = len(bad_proxies) | 58 | | - print("\nSearched %s numProxies and filtered out %s bad proxies in %s seconds" % (numProxies ,numBad, total)) | | 11 | + if PROXY() == "True": | | 12 | + if PFILTER() == "True": | | 13 | + ProxyHelper().checkProxies() | 59 | 14 |
| 60 | 15 | if (SITE() == 5) or (SITE() == 6): # Steam | 61 | 16 | import lib.parse | @@ -64,8 +19,5 @@ def main(): | 64 | 19 | else: | 65 | 20 | import lib.get | 66 | 21 |
| 67 | | - os.remove(PROXYLIST()) | 68 | | - os.rename('proxy_lists/good_proxies.txt', PROXYLIST()) | 69 | | - | 70 | 22 | if __name__ == "__main__": | 71 | 23 | main() |
Collapse file Copy file name to clipboardExpand all lines: config.ini +11-7Lines changed: 11 additions & 7 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 14 | 14 | ; | GITHUB | 10 | | 15 | 15 | ; | ABOUT.ME | 11 | | 16 | 16 | ; | YOUTUBE | 12 | | 17 | | -; | PASTEBIN | 13 | | | 17 | +; | PASTEBIN | 13 | | | 18 | +; | GIPHY | 14 | | 18 | 19 | ; _________________________________ | 19 | 20 |
| 20 | 21 | [site] | 21 | 22 | ; Place the number from the table above that corresponds | 22 | 23 | ; with the site you want to check available names for. | 23 | 24 | ; If your target site is not listed, put "1" for CUSTOM (without the quotes). | 24 | | -siteNum = 3 | | 25 | +siteNum = 5 | 25 | 26 | ; Fill in the option below with the profile URL of the service you want to check available names for. | 26 | 27 | ; Use %%word%% as the placeholder for the username to check. | 27 | 28 | ; customSite is only for sites not specifically listed in the chart above, but please be aware | @@ -34,18 +35,21 @@ customSite = http://example.com/%%word%% | 34 | 35 | ; Be sure to include the file extension if it has one | 35 | 36 | output = AVAILABLE.txt | 36 | 37 | ; Place all word lists in the word_lists directory | 37 | | -wordList = EXAMPLE-500.txt | | 38 | +wordList = EXAMPLE-50.txt | 38 | 39 |
| 39 | 40 | [proxy] | 40 | 41 | ; To enable proxy support, put True. To disable, put False | 41 | | -enableProxy = True | | 42 | +enableProxy = False | | 43 | +; To enable proxy filtering (sorting out the bad proxies that no longer work), put True. | | 44 | +; To disable, put False. It has no effect if enableProxy is False | | 45 | +proxyFiltering = True | 42 | 46 | ; If proxy support is enabled, you must specify the path to the proxy list you want to use here | 43 | 47 | ; Place all proxy lists in the proxy_lists directory | 44 | | -; Place one proxy per line in the this format "###.###.###.###:####" | | 48 | +; Place one proxy per line in the this format --> ip:port | 45 | 49 | proxyList = proxies.txt | 46 | 50 |
| 47 | 51 | [multithreading] | 48 | | -; To check your word lists with increased speed, you can now use multi-threading | | 52 | +; To check your word lists with increased speed, you can use multi-threading | 49 | 53 | ; to take full advantage of your device's hardware. | 50 | 54 | ; Enter the number of threads you would like to use below | 51 | | -threadCount = 10 | | 55 | +threadCount = 3 |
Collapse file Copy file name to clipboard +90Lines changed: 90 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +import os | | 2 | +import threading | | 3 | +from queue import Queue | | 4 | +import time | | 5 | +import requests | | 6 | +from lib.configure import getProxyList as PROXYLIST | | 7 | +from lib.configure import numThreads as THREADCOUNT | | 8 | +from lib.configure import config | | 9 | + | | 10 | +class ProxyHelper(): | | 11 | + | | 12 | + def __init__(self): | | 13 | + self.session = requests.Session() | | 14 | + self.proxies = PROXYLIST() | | 15 | + self.numProxies = len(PROXYLIST()) | | 16 | + self.print_lock = threading.Lock() | | 17 | + self.queue = Queue() | | 18 | + self.good = [] | | 19 | + self.bad = [] | | 20 | + | | 21 | + def checkJob(self, proxy): | | 22 | + #sess = self.setProxy(self.session, proxy) | | 23 | + proxyDict = { | | 24 | + 'http:' : proxy, | | 25 | + 'https:' : proxy, | | 26 | + 'socks' : proxy | | 27 | + } | | 28 | + try: | | 29 | + r = self.session.get('https://google.com', timeout=4, proxies=proxyDict) | | 30 | + if r.status_code is 200: | | 31 | + self.good.append(proxy) | | 32 | + with self.print_lock: | | 33 | + print("%s is working..." % proxy) | | 34 | + else: | | 35 | + raise Exception("Bad Proxy!") | | 36 | + except Exception as error: | | 37 | + self.bad.append(proxy) | | 38 | + print(error) | | 39 | + | | 40 | + | | 41 | + def threader(self): | | 42 | + while True: | | 43 | + item = self.queue.get() | | 44 | + self.checkJob(item) | | 45 | + self.queue.task_done() | | 46 | + | | 47 | + def setProxy(self, session, proxy): | | 48 | + if proxy is not None: | | 49 | + session.proxies.update({ | | 50 | + 'http:' : proxy, | | 51 | + 'https:' : proxy, | | 52 | + 'socks' : proxy | | 53 | + }) | | 54 | + return session | | 55 | + | | 56 | + def checkProxies(self): | | 57 | + | | 58 | + print("Checking and filtering out bad proxies...") | | 59 | + start = time.time() | | 60 | + | | 61 | + print("Starting up threads...") | | 62 | + for x in range(THREADCOUNT()): | | 63 | + t = threading.Thread(target = self.threader) | | 64 | + t.daemon = True | | 65 | + t.start() | | 66 | + print("[Thread-%d] has started." % x) | | 67 | + | | 68 | + for item in self.proxies: | | 69 | + self.queue.put(item) | | 70 | + | | 71 | + self.queue.join() | | 72 | + print("Done.") | | 73 | + | | 74 | + gp = open('proxy_lists/good_proxies.txt', 'a') | | 75 | + for p in self.good: | | 76 | + gp.write("%s\n" % str(p)) | | 77 | + gp.close() | | 78 | + | | 79 | + bp = open('proxy_lists/bad_proxies.txt', 'a') | | 80 | + for p in self.bad: | | 81 | + bp.write("%s\n" % str(p)) | | 82 | + bp.close() | | 83 | + | | 84 | + total = str(time.time()-start) | | 85 | + numBad = len(self.bad) | | 86 | + print("\nSearched %s proxies and filtered out %s bad proxies in %s seconds" % (self.numProxies, numBad, total)) | | 87 | + | | 88 | + path = "proxy_lists/%s" % config["proxy"]["proxyList"] | | 89 | + os.remove(path) | | 90 | + os.rename('proxy_lists/good_proxies.txt', path) |
Collapse file Copy file name to clipboardExpand all lines: lib/configure.py +23-10Lines changed: 23 additions & 10 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -32,21 +32,34 @@ def enableProxy(): | 32 | 32 | print("Either True or False must be specified for enableProxy in the config file.") | 33 | 33 | exit() | 34 | 34 | else: | 35 | | - return str(x) | | 35 | + return x | 36 | 36 |
| 37 | | -def getProxyList(): | 38 | | - x = "proxy_lists/" + config['proxy']['proxyList'] | | 37 | +def proxyFiltering(): | | 38 | + x = config['proxy']['proxyFiltering'] | 39 | 39 | if x == "": | 40 | | - print("Place just the filename of the list for proxyList in the config file.\nAll proxy lists go in the proxy_lists directory.") | | 40 | + print("Either True or False must be specified for proxyFiltering in the config file.") | 41 | 41 | exit() | 42 | 42 | else: | 43 | | - return str(x) | | 43 | + return x | 44 | 44 |
| 45 | | -def getGoodProxyList(): | 46 | | - return "proxy_lists/good_proxies.txt" | 47 | | - | 48 | | -def getBadProxyList(): | 49 | | - return "proxy_lists/bad_proxies.txt" | | 45 | +def getProxyList(): | | 46 | + proxies = [] | | 47 | + path = "proxy_lists/" + config['proxy']['proxyList'] | | 48 | + if path is not None: | | 49 | + fx = open(path, 'r') | | 50 | + proxies = fx.read().split('\n') | | 51 | + fx.close() | | 52 | + return proxies | | 53 | + else: | | 54 | + if not enableProxy(): | | 55 | + print("Proxy support is disabled. Please enable it in the config.") | | 56 | + exit() | | 57 | + elif proxies is None: | | 58 | + print("Specified proxy list is empty. Please add some proxies.") | | 59 | + exit() | | 60 | + else: | | 61 | + print("Unkown error.") | | 62 | + exit() | 50 | 63 |
| 51 | 64 | def getWordList(): | 52 | 65 | x = "word_lists/" + config['lists']['wordList'] | |
Collapse file Copy file name to clipboardExpand all lines: lib/generate.py -5Lines changed: 0 additions & 5 deletions Collapse file Copy file name to clipboardExpand all lines: lib/get.py +6-5Lines changed: 6 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 3 | 3 | import threading | 4 | 4 | from queue import Queue | 5 | 5 | import time | 6 | | -from lib.proxy import * | 7 | | -from lib.log import * | | 6 | +from lib.ProxyHelper import ProxyHelper | | 7 | +from lib.log import log_result | 8 | 8 | from lib.replace import replace | 9 | 9 | from lib.configure import enableProxy as PROXY | | 10 | +from lib.configure import getProxyList as PROXYLIST | 10 | 11 | from lib.configure import getSite as SITE | 11 | 12 | from lib.configure import numThreads as THREADS | 12 | 13 | from lib.configure import getWordList as WORD_LIST | @@ -22,10 +23,10 @@ def requestJob(item): | 22 | 23 | word = words[item] | 23 | 24 | link = replace(word) | 24 | 25 | s = requests.Session() | 25 | | - if PROXY(): | 26 | | - plist = get_proxy_list() | | 26 | + if PROXY() == "True": | | 27 | + plist = PROXYLIST() | 27 | 28 | i = random.randrange(0, plist.__len__()) | 28 | | - sess = set_proxy(s, plist[i]) | | 29 | + sess = ProxyHelper().setProxy(s, plist[i]) | 29 | 30 | r = sess.get(link) | 30 | 31 | else: | 31 | 32 | r = s.get(link) | |
Collapse file Copy file name to clipboardExpand all lines: lib/log.py +3-1Lines changed: 3 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | import re | 2 | | -from lib.statuses import * | | 2 | +from lib.statuses import available, taken, manual | 3 | 3 | from lib.configure import getSite as SITE | 4 | 4 | from lib.configure import DOMAIN | 5 | 5 |
| @@ -35,6 +35,8 @@ def log_result(response, word, link, matches=None): | 35 | 35 | taken(word, service) | 36 | 36 | if 'errorMessage' in obj: | 37 | 37 | print(obj['errorMessage']) | | 38 | + else: | | 39 | + available(word, service, None) | 38 | 40 | elif SITE() == 9: # Mixer | 39 | 41 | obj = response.json() | 40 | 42 | if 'statusCode' in obj: | |
Collapse file Copy file name to clipboardExpand all lines: lib/parse.py +7-7Lines changed: 7 additions & 7 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 4 | 4 | import threading | 5 | 5 | from queue import Queue | 6 | 6 | import time | 7 | | -from lib.proxy import * | 8 | | -from lib.log import * | 9 | | -from lib.replace import * | | 7 | +from lib.ProxyHelper import ProxyHelper | | 8 | +from lib.log import log_result | | 9 | +from lib.replace import replace | 10 | 10 | from lib.configure import enableProxy as PROXY | 11 | | -from lib.proxy import * | | 11 | +from lib.configure import getProxyList as PROXYLIST | 12 | 12 | from lib.configure import getSite as SITE | 13 | 13 | from lib.configure import numThreads as THREADS | 14 | 14 | from lib.configure import getWordList as WORD_LIST | @@ -24,10 +24,10 @@ def parseJob(item): | 24 | 24 | word = words[item] | 25 | 25 | link = replace(word) | 26 | 26 | s = requests.Session() | 27 | | - if PROXY: | 28 | | - plist = get_proxy_list() | | 27 | + if PROXY() == "True": | | 28 | + plist = PROXYLIST() | 29 | 29 | i = random.randrange(0, plist.__len__()) | 30 | | - sess = set_proxy(s, plist[i]) | | 30 | + sess = ProxyHelper().setProxy(s, plist[i]) | 31 | 31 | r = sess.get(link) | 32 | 32 | else: | 33 | 33 | r = s.get(link) | |
|