示例#1
0
def LoadHillApp():
    f = Figlet(font='big')
    print(f.renderText('Hill'))
    Task = input(
        DisplayMessage.Banner(
            "Please choose an option from the following list\n E - encrypt\n D - Decrypt\n B - back to Main Menu\n"
        ))
    if Task in ["E", "D", "e", "d", "B", "b"]:
        if Task in ["E", "e"]:
            Message = input(
                DisplayMessage.Banner(
                    "Please Enter the string to be Encrypted"))
            os.system("clear")
            print(
                DisplayMessage.Banner(
                    f"The encrypted string is {EncryptHill(Message,KeyMatrix)}"
                ))
            LoadHillApp()
        elif Task in ["B", "b"]:
            os.system("clear")
            LoadMain()
        else:
            Message = input(
                DisplayMessage.Banner("Enter the string to be Decrypted"))
            os.system("clear")
            print(
                DisplayMessage.Banner(
                    f"The decrypted string is {DecryptHill(Message,KeyMatrix)}"
                ))
            LoadHillApp()
    else:
        os.system("clear")
        InvalidInput()
        LoadHillApp()
示例#2
0
def main():
    if os.geteuid() != 0:
        sys.exit(Back.RED + color.G + "\n[!] Please run as root" + Back.RESET)
    print(color.HEADER + "")
    banner_text = "\t\tThis Project is working Arp spoof and dns spoof \n\n \t\t\tAuther : dev-frog \n"
    print(terminal_banner.Banner(banner_text))

    sleep(0.1)
    while True:
        print(color.GREEN + "\n\n\t 1. for Scan the network")
        sleep(0.1)
        print(color.YELLOW + "\t 2. for arp spoof ")
        sleep(0.1)
        print(color.RED + "\t 3. for Exit the Program")
        sleep(0.2)
        choices = int(input(color.M + "Enter you Choices:"))

        if choices == 1:
            sleep(0.1)
            network_ip = input(
                color.BLUE + "\nEnter the Network address (example: 192.168.0.1/24) :")
            Print(Scan(network_ip))
        elif choices == 2:
            Spoof()
            # if len(targetIp_list) < 1:
            # 	print( Style.NORMAL + '' + color.RED + "\n\t[ Places make a scan your Network First,Choices 1 option first ] \n\n")
            # else:
            # 	Spoof()
        elif choices == 3:
            exit()
示例#3
0
        def paramater():
            parsed = urlparse.urlparse(args.url)
            querys = parsed.query.split("&")
            temp = parsed.query.split("&")
            count = url.count("=")
    

            for inj in payloads:
                
                for qx in range(count):
                    payloa =  "=" + inj
                    beta = re.sub(r'[=][^&]*', payloa, querys[qx])
                    querys[qx] = beta
                    if qx > 0:
                        regres = re.sub(r'[=][^&]*', payloa, querys[qx])
                        querys[qx-1] = temp[qx-1]
                    #print querys
                    #unParam = "&".join([ "{}{}".format(query, inj) for query in querys])
                    twParam = "&".join(querys)
                    parsed = parsed._replace(query=twParam)
                    
                    
                response = requests.get(urlparse.urlunparse(parsed))

                if inj in response.text: #grep pendiente por mejorar
                    
                    bba = "\n" + (Fore.GREEN + "La pagina web("+ str(response.status_code) +") es vulnerable en el parametro: "+ Fore.BLUE + twParam +Style.RESET_ALL) + "\n"
                    bann = terminal_banner.Banner(bba)
                    print bann
                elif inj not in response:
                        print (Fore.RED + "El siquiente parametro no es vulnerable :"+twParam + Style.RESET_ALL)
                       
                else:
                    print (Fore.RED + "Parametro(s) no alcanzables" +Style.RESET_ALL)
示例#4
0
def print_banner(description, color, attributes=None):
    """Display a bannerized print."""
    print()
    cprint(terminal_banner.Banner(description),
           color,
           "on_grey",
           attrs=attributes)
示例#5
0
def LoadMain():
    f = Figlet(font='slant')
    print(f.renderText('Ciphers'))
    Menu = "Please choose a Cipher Type from the following list:\n 1.Playfair Cipher\n 2.Hill Cipher\n 3.Feistel Cipher\n 4.Exit\n"
    print(DisplayMessage.Banner(Menu))
    try:
        val = int(input("You chose:\n"))
        if val in [1, 2, 3, 4]:
            if val == 1:
                os.system("clear")
                LoadPlayfairApp()
            elif val == 2:
                os.system("clear")
                LoadHillApp()
            elif val == 3:
                os.system("clear")
                LoadFeistelApp()
            else:
                os.system("clear")
                exit(0)
        else:
            raise ValueError
    except ValueError:
        os.system("clear")
        InvalidInput()
        LoadMain()
示例#6
0
def banner():
    print(
        "\033[1;34;48m* LINUX BASED TOOL V1.0 \033[1;32;48mDeveloped By @Vaibhav Pareek\033[1;31;48m"
    )
    ascii_banner = pyfiglet.figlet_format("Vulconn !")
    print(ascii_banner)
    print("\033[1;32;48m")
    banner_text = "\n[+] It is a linux based tool,work as a Site Connnectivity Checker. \n[+] It always notifies you when website is ALIVE\n[+] Database utility is included so you can have collection of all the records even if you forgot."
    my_banner = terminal_banner.Banner(banner_text)
    print(my_banner)
示例#7
0
def LoadFeistelApp():
    f = Figlet(font='big')
    print(f.renderText('Feistel'))
    Task = input(
        DisplayMessage.Banner(
            "Please choose an option from the following list\n E - encrypt\n D - Decrypt\n B - back to Main Menu\n"
        ))
    if Task in ["E", "D", "e", "d", "B", "b"]:
        if Task in ["E", "e"]:
            Message = input(
                DisplayMessage.Banner(
                    "Please Enter the string to be Encrypted\n"))
            Result, KEY1, KEY2 = EncyrptFeistel(Message)
            # It is better to use binary because string might encode to new line char or some other encoding
            os.system("clear")
            print(
                DisplayMessage.Banner(
                    f"The encrypted string in binary form is {Result}\nThe first Key is {KEY1}\nThe second key is {KEY2}\n"
                ))
            LoadFeistelApp()
        elif Task in ["B", "b"]:
            os.system("clear")
            LoadMain()
        else:
            DecimalMessage = input(
                DisplayMessage.Banner(
                    "Please Enter the binary code to be Decrypted\n"))
            KEY1 = input(
                DisplayMessage.Banner("Please enter the first binary key\n"))
            KEY2 = input(
                DisplayMessage.Banner("Please enter the second binary key\n"))
            Result = DecryptFeistel(DecimalMessage, KEY1, KEY2)
            os.system("clear")
            Final = ConvertToString(Result)
            if Final[-1] == "-":
                Final = Final[:-1]
            print(DisplayMessage.Banner(f"The decrypted string is {Final}\n"))
            LoadFeistelApp()
    else:
        os.system("clear")
        InvalidInput()
        LoadFeistelApp()
示例#8
0
def banner_logo():
    ascii_banner = pyfiglet.figlet_format("PREDATOR!!", font="slant")
    print(ascii_banner)
    banner_text = "HAPPY HACKING.\n\n  		The PREDATOR.\n 		CODED BY:K=K-LAX.\n  		EMAIL:[email protected].\n 		youtube:alphakong"
    my_banner = terminal_banner.Banner(banner_text)
    print(my_banner)
示例#9
0
def InvalidInput():
    print(DisplayMessage.Banner("Invalid input, please try again\n"))
示例#10
0
def banner():
    print(colors['HEADER'] + "")
    banner_text = "\t\tThis Project is working DNS spoof \n\n \t\t\tAuther : name \n"
    print(terminal_banner.Banner(banner_text))
示例#11
0
              ╚═╗║═╬╗║  ║───╠╣ ║║║║ ║║║╣ ╠╦╝
              ╚═╝╚═╝╚╩═╝╩   ╚  ╩╝╚╝═╩╝╚═╝╩╚═                          
                        Made with ❤️ 
            For the Community, By the Community   

            ###################################

                  Developed by Jitesh Kumar
            Intagram  - https://instagram.com/jitesh.haxx
            linkedin  - https://linkedin.com/j1t3sh 
                Github - https://github.com/j1t3sh
                                    
       ( DONT COPY THE CODE. CONTRIBUTIONS ARE MOST WELCOME ❤️ )
                                                                                
""")
banner_terminal = terminal_banner.Banner(banner)
print(colored(banner_terminal, 'green') + "\n")

website_list = []  #list of websites
dork = "inurl:" + input(
    colored("Please input the sqli Dork(eg- php?id=, aspx?id=) ---->  ",
            'cyan'))
extension = "site:" + input(
    colored(
        "Please specify the website extension(eg- .in,.com,.pk) [default: none] -----> ",
        'cyan'))  #Add none as extension
total_output = int(
    input(
        colored("Pleases specify the total no. of websites you want) ----> ",
                'cyan')))
page_no = int(
示例#12
0

# Writing the title text
f = Figlet(font='speed')
print(f.renderText('Piece Wise Function Evaluator'))

# Showing menu after each run
wantToQuit = False
while not wantToQuit:
    # Showing description banner
    desc = "This script evaluates the following piece-wise function based on a user-inputted x-value! \n\n" \
           "       (x - 1)^2     if   x < 1\n" \
           "f(x) = 2x + 5        if   1 <= x < 4\n" \
           "       sqrt(x - 3)   if   4 <= x < 100\n\n" \
           "Please type 'r' to run or any other character to quit!"
    descBanner = terminal_banner.Banner(desc)
    print(descBanner)

    # Receiving user-confirmation that they actually want to run the program
    confirmation = input()
    # Analyzing inputted variable
    if confirmation != "r":
        wantToQuit = True
        break

    hasNotAnswered = True
    while hasNotAnswered:
        # Showing x-input description and getting user-input
        xVarDesc = "Please input your x-value for the function! \n\n" \
                   "Note: This value must be within the domain: {x | x < 100}"
        xVarDescBanner = terminal_banner.Banner(xVarDesc)
示例#13
0
    def blue(self, words):
        return colors.blue(words)

    def blue_white(self, words):
        return colors.blue.bgWhite.bold(words)

    def blue_yellow(self, words):
        return colors.blue.bgYellow.bold(words)

    def green_white(self, words):
        return colors.white.bgGreen.bold(words)

    def red_white(self, words):
        return colors.red.bgWhite.bold(words)

    def white_magenta(self, words):
        return colors.white.bgMagenta.bold(words)


color = Color()
print(
    terminal_banner.Banner(f"""
{color.green_white('Hello World!')}
{color.green_white('From Saudi Arabia')}
{color.red_white('Here I print python in color')}
{color.blue_yellow('I use simple_chalk library')}
{color.white_magenta('And I use terminal_banner library')}
{color.blue_white('Try them!')}
"""))
示例#14
0
import random
import pycurl
import smtplib, ssl
from io import BytesIO
import pyfiglet
import terminal_banner
from getpass import getpass
a=pyfiglet.figlet_format("BORING")
b=terminal_banner.Banner(a)
print("\033[1;34;40m ",b)



print("Select one of the options: \n")
list1={"1":"\033[1;33;40m 1.Birthday","2":"2.Good Night","3":"3.Anniversery","4":"4.Good Morning","5":"5.Weather"}
for key,value in list1.items():
    print(value)

print("\nenter one of the hai!!")
users=str(input("\n\033[1;32;40m What is your choice :\n"))
if users==str("birthday") or users=="1" or users==str("Birthday") or users==str("bornday"):
    a=random.choice(list(open('birthday.txt')))
    print(terminal_banner.Banner(a))
    

    #send via email
    print("If You want to send is as email then type 'Y' for yes and 'N' for no" )
    email=input()
    if email=="yes"or email=='y' or email=='Y'or email=='Yes' or email=='YES':

        smtp_server = "smtp.gmail.com"
示例#15
0
        if b['name']==args.token:
            balance = b['balance']
            break

    if balance==0:
        logging.error('No balance found!')
        logging.error('App closed...')
        sys.exit(0)

    
    # total sending
    sendto = tosend.find()

    info_text = "Your have {:,.0f} {},\nand is sending {:,.0f} {}.\nYour BW is {:,.0f},\nAnd it is estimated {:,.0f}BW\nTotal number of voters: {}".format(
        balance,args.token,totalSending,args.token,bw,sendto.count()*198, sendto.count())
    print(terminal_banner.Banner(info_text))
    if totalSending>balance:
        print('Only the first {} will receive.'.format(ceil(balance/args.amount)))
    wd = input("Do you confirm this operation? (Y/n)")
    if wd!= "y":
        logging.error('User did not confirm!')
        logging.error('App closed...')
        sys.exit(0)
    PK=getpass.getpass(prompt='Please enter your private key:')
    # get 
    
    sentto = db['sentto']
    l = sendto.count()

    printProgressBar(0, l, prefix = 'Sending...:', suffix = 'Complete', length = 50)
    i=1
示例#16
0
import scapy.all as scapy
import optparse
import subprocess
import os
from colorama import Fore, Back, Style
cow = 98
import terminal_banner
banner_txt = "Net-Sneeker"
usebanner = terminal_banner.Banner(banner_txt)


def checkRootandInstall(
):  # check if the script is running as root and install scapy and terminal_banner
    rootval = os.getuid()
    if str(rootval) != "0":
        print(Fore.RED + "Please use this script as root, Permission Denied")
    else:
        print(
            "Installing Scapy module via pip3,make sure you have pip3 installed"
        )
        outp = subprocess.check_output(
            ["pip3", "install", "scapy", "terminal_banner"]).decode("utf-8")
        if "already" in outp:
            print(Fore.GREEN + "Scapy seems to have already been installed!!")
        else:
            print(
                Fore.YELLOW +
                "Module should be installed now,if it did not install, please manually install it"
            )

示例#17
0
░▀▀▀▄▄ █▀▀ █░░ ░▀▀▀▄▄ █░░ █▄▄▀ █▄▄█ █░░█ █▀▀ █▄▄▀ 
▒█▄▄▄█ ▀▀▀ ▀▀▀ ▒█▄▄▄█ ▀▀▀ ▀░▀▀ ▀░░▀ █▀▀▀ ▀▀▀ ▀░▀▀

"""
desc = "Reports and articles scraper for bug bounty hunters."
dev_info = """
v1.1
Developed by: Ansh Bhawnani
"""

if (platform.system() == 'Windows'):
    os.system('cls')
if (platform.system() == 'Linux'):
    os.system('clear')

banner = terminal_banner.Banner(banner_text)
print(termcolor.colored(banner.text, 'cyan'), end="")
print(termcolor.colored(desc, 'white', attrs=['bold']), end="")
print(termcolor.colored(dev_info, 'yellow'))


def create_url(query, count='10'):
    global url
    url = "https://medium.com/search/posts?q=" + urllib.parse.quote(
        query) + "&count=" + count


def do_medium():
    global op
    create_url(query, count)
    print("[+] Finding atmost %s articles on medium..." % count)
示例#18
0
def banner():
    ascii_banner = pyfiglet.figlet_format("\tURL MANAGER")
    print(colored((ascii_banner), 'red', 'on_blue'))
    text = "CODED BY:- MANJUNATHAN.C\nYOUTUBE LINK:-https://bit.ly/2CPKEvh"
    my_banner = terminal_banner.Banner(text)
    print(my_banner)