4 packets received by filter, 0 packets dropped by kernel Ending arp-scan 1.10.0: 256 hosts scanned in 1.971 seconds (129.88 hosts/sec). 4 responded ❯ export ip=192.168.60.152 ❯ rustscan -a $ip .----. .-. .-. .----..---. .----. .---. .--. .-. .-. | {} }| { } |{ {__ {_ _}{ {__ / ___} / {} \ | `| | | .-. \| {_} |.-._} } | | .-._} }\ }/ /\ \| |\ | `-' `-'`-----'`----' `-' `----' `---' `-' `-'`-' `-' The Modern Day Port Scanner. ________________________________________ : http://discord.skerritt.blog : : https://github.com/RustScan/RustScan : -------------------------------------- Port scanning: Because every port has a story to tell. [~] The config file is expected to be at "/home/Pepster/.rustscan.toml" [!] File limit is lower than default batch size. Consider upping with --ulimit. May cause harm to sensitive servers [!] Your file limit is very small, which negatively impacts RustScan's speed. Use the Docker image, or up the Ulimit with '--ulimit 5000'. Open 192.168.60.152:22 Open 192.168.60.152:80 [~] Starting Script(s) [~] Starting Nmap 7.94SVN ( https://nmap.org ) at 2025-01-15 10:55 CST Initiating ARP Ping Scan at 10:55 Scanning 192.168.60.152 [1 port] Completed ARP Ping Scan at 10:55, 0.08s elapsed (1 total hosts) Initiating Parallel DNS resolution of 1 host. at 10:55 Completed Parallel DNS resolution of 1 host. at 10:55, 0.02s elapsed DNS resolution of 1 IPs took 0.02s. Mode: Async [#: 3, OK: 0, NX: 1, DR: 0, SF: 0, TR: 1, CN: 0] Initiating SYN Stealth Scan at 10:55 Scanning 192.168.60.152 [2 ports] Discovered open port 22/tcp on 192.168.60.152 Discovered open port 80/tcp on 192.168.60.152 Completed SYN Stealth Scan at 10:55, 0.07s elapsed (2 total ports) Nmap scan report for 192.168.60.152 Host is up, received arp-response (0.00056s latency). Scanned at 2025-01-15 10:55:18 CST for 0s
PORT STATE SERVICE REASON 22/tcp open ssh syn-ack ttl 64 80/tcp open http syn-ack ttl 64 MAC Address: 08:00:27:91:ED:24 (Oracle VirtualBox virtual NIC)
Read data files from: /usr/share/nmap Nmap done: 1 IP address (1 host up) scanned in 0.37 seconds Raw packets sent: 3 (116B) | Rcvd: 3 (116B)
// Filtro para bloquear comandos simples $pattern_blacklist = '/\b(whoami|ls|pwd|cat|sh|bash)\b/i'; if (preg_match($pattern_blacklist, $dish)) { die('<p style="color: red;">Error: Pide comida no intentes hackearme. Los callos estan muy ricos.</p>'); }
// Permitir solo caracteres y estructuras de comandos más complejas $allowed_pattern = '/^[a-zA-Z0-9\s\$\(\)\-\_\.\|]*$/'; if (!preg_match($allowed_pattern, $dish)) { die('<p style="color: red;">Error: Pide comida no intentes hackearme. Los callos estan muy ricos.</p>'); }