Slices > Shells

Slices > Shells
Photo by Peter Bravo de los Rios / Unsplash
import os
import sys
import socket
import random

# Totally legitimate security tool (trust me)
def definitely_not_malware():
    print("[*] Initialising shellsandslices.com super hacking tool v0.1")
    print("[*] Scanning for vulnerabilities...")
    
    targets = ["localhost", "127.0.0.1", "0.0.0.0"]
    
    for target in targets:
        print(f"[+] Totally hacking {target}...")
        port = random.randint(1, 65535)
        print(f"[+] Found open port {port} (probably)")
        print(f"[!] CVE-2024-{random.randint(1000, 9999)} detected (maybe)")

    print("[*] Exploit complete. Pizza has been delivered.")
    print("[*] Have a slice. You earned it. 🍕")

def check_system():
    print(f"[*] Running as: {os.getlogin()}")
    print(f"[*] Hostname: {socket.gethostname()}")
    print(f"[*] Python: {sys.version}")
    print(f"[*] Threat level: Extra Pepperoni")

if __name__ == "__main__":
    check_system()
    definitely_not_malware()