Commit c1fd13a4 authored by Nong Hoang Tu's avatar Nong Hoang Tu
Browse files

Add develop code structure

parents
Pipeline #4117 canceled with stages
def help_banner(program):
print(f"{program} <target> [--verbose / --silent]")
def program_banner(description, version, orig_name, gitlab_url):
# from vbyscan import cores
print(" ___ ___ ")
print(f" __ _| _ )_ _/ __| __ __ _ _ _ ---[ \033[95m{description}\033[0m ]---")
print(f" \\ V / _ \\ || \\__ \\/ _/ _` | ' \\ ---[ Version: \033[97m{version}\033[0m ]---")
print(" \\_/|___/\\_, |___/\\__\\__,_|_||_| ---[ License: \033[93mGPL-3\033[0m ]---")
print(" |__/ ")
print(f" A fork of \033[97m{orig_name}\033[0m")
print("")
print("-----[ Author: \033[96mNông Hoàng Tú\033[0m ]---[ \033[37mdmknght@parrotsec.org\033[0m ]")
print("-----[ Contributor: \033[96mLý Tuấn Kiệt\033[0m ]---[ \033[37m7heknight\033[0m ]")
print(f"-----[ \033[94m{gitlab_url}\033[0m ]")
print("")
def dummy(*args, **kwargs):
pass
def print_verbose(message):
print(f"[+] {message}")
def print_vulnerable(name, uri=""):
# Bright Magenta
print(f" [\033[96m*\033[0m] \033[95m{name}\033[0m is\033[91m vulnerable\033[0m")
if uri:
# Bright Cyan
print(f" \033[96m{uri}\033[0m")
def print_not_vulnerable(name):
# Bright yellow
print(f" [\033[93m!\033[0m] \033[93m{name}\033[0m is\033[37m not vulnerable\033[0m")
def print_found(message, uri=""):
# Bright white
print(f" [\033[97m*\033[0m] \033[97m{message}\033[0m")
if uri:
# Bright blue
print(f" \033[94m{uri}\033[0m")
def print_not_found(message):
print(f" [\033[91m-\033[0m] {message} not found")
import requests
from vjyscan.cli.prints import *
class VJScan:
def __init__(self, verbose=False):
self.print_vulnerable = print_vulnerable
self.print_found = print_found
if verbose:
self.print_verbose = print_verbose
self.print_not_vulnerable = print_not_vulnerable
self.print_not_found = print_not_found
else:
self.print_verbose = dummy
self.print_not_vulnerable = dummy
self.print_not_found = dummy
self.http_client = requests.Session()
# TODO add proxy, cookie, agent handler
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment