

import time 
import os
import sys

def start():
    logo = '''                                     __
                                  _.-~  )
                       _..--~~~~,'   ,-/     _
                    .-'. . . .'   ,-','    ,' )
                  ,'. . . _   ,--~,-'__..-'  ,'
                ,'. . .  (@)' ---~~~~      ,'
               /. . . . '~~             ,-'
              /. . . . .             ,-'
             ; . . . .  - .        ,'
            : . . . .       _     /
           . . . . .          `-.:
          . . . ./  - .          )
         .  . . |  _____..---.._/ ____  _
    ~---~~~~----~~~~            ~~~~~~'''
    print(logo)
    print("\n    <-- dolphins are highly intelligent unlike you -->")
    print("<-- choose a program to use from the dolphin catalogue -->")

def menu():
    print("""
         <-- general -->
          1; site.scan        8; attic
          2; mal.list         9; invita
          3; req.listener    10; krazi
          4; vuln.scanner    11; envis
          5; sitemaps
          6; quick.scan
          7; anti.virus
          """)

def welcome():
    sys.stdout.write("\x1b]2;dolphin\x07")
    os.system("clear")
    time.sleep(5)
    os.system("clear")
    start()
    programs()
    
def programs():
    menu()
    choice = input("choice -> ")
    if choice == "0":
        print("exiting...")
        time.sleep(2)
        exit(0)
    else:
        print(f'loading {choice}...')
    
    time.sleep(2)
    
    if choice == "1":
        os.system('title site.scan')
    elif choice == "2":
        os.system('cls || clear')
        os.system('title mal.list')
    elif choice == "01":
        os.system('cls' if os.name == 'nt' else 'echo -e \\\\033c')
        sys.stdout.write("\x1b]2;dolphin | rabbit\x07")
        start()
        print("\n          <++ grabbing rabbit req log... ++>")
        time.sleep(6)
        print("             <++ creating log file... ++>")
        time.sleep(1)
        os.system("wget https://syerxsowqoonxd.pages.dev/small-rabbit.log.json") 
        print("              <-- showing output -->")
        os.system("konsole --noclose -e 'bash -c \"cat small-rabbit.log.json\"' ")
    else:
        print("invalid input")
        os.system('cls || clear')
        welcome()
        
def main():
    welcome()
    
if __name__ == "__main__":
    main()

