Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Malwareman007 authored Jun 19, 2023
1 parent 503de9a commit d37c482
Show file tree
Hide file tree
Showing 15 changed files with 1,570 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

36 changes: 36 additions & 0 deletions core/colors.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
__author__ = 'Malwareman007'
__version__ = '1.0'
__github__ = 'https://github.com/Malwareman007/TechViper'
__email__ = 'Malwareman007@protonmail.com'
__blog__ = 'https://techviper.webwatcher.tech'

import sys
import os
import platform
colors = True # Output should be colored
machine = sys.platform # Detecting the os of current system
checkplatform = platform.platform() # Get current version of OS
if machine.lower().startswith(('os', 'win', 'darwin', 'ios')):
colors = False # Colors shouldn't be displayed in mac & windows
if checkplatform.startswith("Windows-10") and int(platform.version().split(".")[2]) >= 10586:
colors = True
os.system('') # Enables the ANSI
if not colors:
end = red = white = green = yellow = run = bad = good = bold = info = que = ''
else:
white = '\033[97m'
green = '\033[92m'
red = '\033[91m'
yellow = '\033[93m'
end = '\033[0m'
back = '\033[7;91m'
bold = '\033[1m'
blue = '\033[94m'
info = '\033[93m[!]\033[0m'
que = '\033[94m[?]\033[0m'
bad = '\033[91m[-]\033[0m'
good = '\033[92m[+]\033[0m'
run = '\033[97m[~]\033[0m'
grey = '\033[7;90m'
cyan='\u001B[36m'
gray = '\033[90m'
7 changes: 7 additions & 0 deletions core/config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#-------------------------
# TechViper Config File .. |
#-------------------------
# HTTPS Cert
vert = True
# Allow Redirects
redir=False
3 changes: 3 additions & 0 deletions core/encoder.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import urllib.parse
def urlencoder(payload):
return urllib.parse.quote(payload,safe='')
16 changes: 16 additions & 0 deletions core/logger.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import logging
import requests,urllib3
from core.colors import *
logging.basicConfig(
format=f'{bold}[{cyan}%(asctime)s{end}{bold}]{gray}[{end}{bold}{green}%(levelname)s{gray}]{end} %(message)s',datefmt='%H:%M:%S')
logger = logging.getLogger()
logger.setLevel(logging.DEBUG)
logging.getLogger("requests").setLevel(logging.WARNING)
logging.getLogger("urllib3").setLevel(logging.WARNING)
"""
logger.info('SQLI not found')
logger.debug('This a Debug Message')
logger.warning('Im Sorry i can hack this system')
logger.error('HTTP ERROR')
logger.critical('Internet Down')
"""
4 changes: 4 additions & 0 deletions core/reporter.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env python

def make_report(vuln):
pass
73 changes: 73 additions & 0 deletions core/requester.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
__author__ = 'Malwareman007'
__version__ = '1.0'
__github__ = 'https://github.com/Malwareman007/TechViper'
__email__ = 'Malwareman007@protonmail.com'
__blog__ = 'https://techviper.webwatcher.tech'

from datetime import datetime
from .colors import *
from .config import *
from .logger import logger
from .scanner import uagent
from time import sleep
import requests,urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
def thetime():
now = datetime.now()
return f'{bold}{blue}[{end}{bold}{now.hour}:{now.minute}:{now.second}{blue}{bold}]{end}'
def red(w):
if w == 'ag':
return True
else:
return False
def con(url,redir,cookie=None,timeo=None,vert=None,proxy=None,slp=0,cagent=None):
try:
if slp != 0:
logger.debug(f'Sleeping {slp} sec')
sleep(slp)
logger.info(f'Check The URL')
r = requests.get(url,allow_redirects=redir,timeout=timeo,cookies=cookie,verify=vert,proxies=proxy,headers={'User-agent':uagent(cagent=cagent)})
if r.status_code == 200:
logger.info(f'http response : {r.status_code}')
elif r.status_code == 302 or r.status_code == 301:
logger.info(f"http response : {r.status_code} That's mean Redirect to another page/website")
elif r.status_code == 999:
logger.info('KingWaf Firwill Has been detected')
sleep(1)
else:
logger.info(f'http response : {r.status_code}')
except requests.exceptions.ConnectionError:
logger.error(f"host '{blue}{url}{end}' does not exist ..!")
exit()
except requests.exceptions.ReadTimeout:
logger.error(f"\n{bad} Timeout Error ")
exit()
except requests.exceptions.ProxyError:
logger.error(f"{bad} Proxy Connection Error")
exit()
except requests.exceptions.InvalidURL:
logger.error(f"{bad} Invalid URL")
exit()
except requests.exceptions.InvalidSchema:
logger.error(f"{bad} Invalid Schame")
exit()
except requests.exceptions.MissingSchema:
logger.error(f"{bad} Missing Schema")
exit()
def con_f(url,redir,cookie=None,timeo=None,vert=None,proxy=None,cagent=None,slp=0):
try:
sleep(slp)
r = requests.get(url,allow_redirects=redir,timeout=timeo,verify=vert,cookies=cookie,proxies=proxy,headers={'User-agent':uagent(cagent=cagent)})
return 'ok'
except requests.exceptions.ReadTimeout:
return 'no','\ntimeout error ..'
except requests.exceptions.ConnectionError:
return 'no','Connection Error ..'
except requests.exceptions.ProxyError:
return 'no','Proxy Connection Error'
except requests.exceptions.InvalidURL:
return 'no','Invalid URL'
except requests.exceptions.InvalidSchema:
return 'no','Invalid Schema'
except requests.exceptions.MissingSchema:
return 'no','Missing Schema'
Loading

0 comments on commit d37c482

Please sign in to comment.