Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashkan Moghaddas authored Jul 5, 2018
1 parent bddb73e commit 99e296e
Show file tree
Hide file tree
Showing 12 changed files with 1,068 additions and 0 deletions.
415 changes: 415 additions & 0 deletions admin.txt

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions modules/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-

from colors import *
from functions import *
from banner import banner as Banner
Binary file added modules/__init__.pyc
Binary file not shown.
21 changes: 21 additions & 0 deletions modules/banner.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-

from colors import *

banner = r + """
██╗ ██╗███████╗██████╗ ██╗ ██╗██╗██╗ ██╗ ███████╗██████╗
██║ ██║██╔════╝██╔══██╗██║ ██╔╝██║██║ ██║ ██╔════╝██╔══██╗
██║ █╗ ██║█████╗ ██████╔╝█████╔╝ ██║██║ ██║ █████╗ ██████╔╝
██║███╗██║██╔══╝ ██╔══██╗██╔═██╗ ██║██║ ██║ ██╔══╝ ██╔══██╗
╚███╔███╔╝███████╗██████╔╝██║ ██╗██║███████╗███████╗███████╗██║ ██║
╚══╝╚══╝ ╚══════╝╚═════╝ ╚═╝ ╚═╝╚═╝╚══════╝╚══════╝╚══════╝╚═╝ ╚═╝
====================================================================
** WebSite : UltraSec.org **
** Channel : @UltraSecurity **
** Developers : Ashkan Moghaddas , Milad Ranjbar **
** Team Members : Abolfaz Hajizadeh , MrQadir **
** **
====================================================================
""" + g
Binary file added modules/banner.pyc
Binary file not shown.
70 changes: 70 additions & 0 deletions modules/colors.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# -*- coding: utf-8 -*-

from colorama import init,Fore,Back,Style
import os


if os.name == "posix":
# colors foreground text:
fc = "\033[0;96m"
fg = "\033[0;92m"
fw = "\033[0;97m"
fr = "\033[0;91m"
fb = "\033[0;94m"
fy = "\033[0;33m"
fm = "\033[0;35m"

# colors background text:
bc = "\033[46m"
bg = "\033[42m"
bw = "\033[47m"
br = "\033[41m"
bb = "\033[44m"
by = "\033[43m"
bm = "\033[45m"

# colors style text:
sd = Style.DIM
sn = Style.NORMAL
sb = Style.BRIGHT

c = fc + sb
g = fg + sb
w = fw + sb
r = fr + sb
b = fb + sb
y = fy + sb
m = fm + sb
else:
init(autoreset=True)
# colors foreground text:
fc = Fore.CYAN
fg = Fore.GREEN
fw = Fore.WHITE
fr = Fore.RED
fb = Fore.BLUE
fy = Fore.YELLOW
fm = Fore.MAGENTA


# colors background text:
bc = Back.CYAN
bg = Back.GREEN
bw = Back.WHITE
br = Back.RED
bb = Back.BLUE
by = Fore.YELLOW
bm = Fore.MAGENTA

# colors style text:
sd = Style.DIM
sn = Style.NORMAL
sb = Style.BRIGHT

c = fc + sb
g = fg + sb
w = fw + sb
r = fr + sb
b = fb + sb
y = fy + sb
m = fm + sb
Binary file added modules/colors.pyc
Binary file not shown.
Binary file added modules/footer.pyc
Binary file not shown.
81 changes: 81 additions & 0 deletions modules/functions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# -*- coding: utf-8 -*-

from modules.colors import *
import requests
import re

_headers = {
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'Accept-Encoding': 'gzip,deflate,sdch',
'Accept-Language': 'en-US,en;q=0.8',
'Connection': 'keep-alive'
}

empty_Website = "\n\t{red}[+] Please Enter A Website :/\n\t\t".format(red=r, cyan=c)

wrong_URL = "\n\t{red}[-] Please Enter a Valid And Correct URL (i.e, google.com)\n\t\t".format(red=r)

str_Index = "\n\t{red}[-] Please Input a Integer (i.e, 1, 2, 3) :\\\n\t\t".format(red=r)

val_Select = "\t{}[-] Please Use The Index Value From The List\n\t\t[+] Not By Your Own :/\n\t\t\t \n".format(r)

def webNotEmpty(website):

if len(website) >= 1:
return "valid"
else:
return "!valid"

def validWebsite(website):

web = webNotEmpty(website)
if web is "valid":
if not (re.match(r"(^(http://|https://)?([a-z0-9][a-z0-9-]*\.)+[a-z0-9][a-z0-9-]*$)", website)):
exit(wrong_URL)
else:
exit(empty_Website)

def cleanURL(website):

web = validWebsite(website)
website = website.replace("http://", "")
website = website.replace("http://www.", "")
website = website.replace("https://", "")
website = website.replace("https://www.", "")
website = website.replace("www.", ""); return(website)

def removeHTTP(website):

website = cleanURL(website); return(website)

def addHTTP(website):

website = cleanURL(website)
website = ("http://" + website); return(website)

def write(var, color, data):
if var == None:
print(color + str(data))
elif var != None:
print("{white}[{cyan}" + var + "{white}] " + color + str(data)).format(
white=w, cyan=c
)

def Request(website, _timeout=None, _encode=None):

try:
if _encode == None:
return requests.get(website, headers=_headers, timeout=_timeout).content
elif _encode == True:
return requests.get(website, headers=_headers, timeout=_timeout).text.encode('utf-8')
except requests.exceptions.MissingSchema:
pass
except requests.exceptions.ContentDecodingError:
pass
except requests.exceptions.ConnectionError:
return fg + sb + "\n[-] Error: Sorry! You Enter A Wrong Website Or Website Is Off"
pass
except Exception as e:
return fc + sb + "[-] Error: " + fg + sb + str(e)
pass
Binary file added modules/functions.pyc
Binary file not shown.
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
colorama
requests
builtwith
Loading

0 comments on commit 99e296e

Please sign in to comment.