From 2b4f42e0723c3e282642607894adf71009e65aa9 Mon Sep 17 00:00:00 2001 From: gloomy-ghost Date: Sun, 16 Oct 2016 08:38:05 +0000 Subject: [PATCH] Update sublist3r.py Importing Compatiablity --- sublist3r.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/sublist3r.py b/sublist3r.py index 22d3e95..3759d48 100644 --- a/sublist3r.py +++ b/sublist3r.py @@ -9,8 +9,6 @@ import sys import os import argparse import time -import urlparse -import urllib import hashlib import random import multiprocessing @@ -24,6 +22,16 @@ from subbrute import subbrute import dns.resolver import requests +#Python 2.x and 3.x compatiablity +if sys.version > '3': + from queue import Queue + import urllib.parse as urlparse + import urllib.parse as urllib +else: + from Queue import Queue + import urlparse + import urllib + #In case you cannot install some of the required development packages, there's also an option to disable the SSL warning: try: import requests.packages.urllib3