┌──(kali㉿kali)-[~] └─$ sudo nmap --min-rate 10000 -p- 192.168.56.126 Starting Nmap 7.94 ( https://nmap.org ) at 2023-07-11 02:59 EDT Nmap scan report for 192.168.56.126 Host is up (0.00016s latency). Not shown: 65533 closed tcp ports (reset) PORT STATE SERVICE 22/tcp open ssh 80/tcp open http MAC Address: 08:00:27:A8:C2:95 (Oracle VirtualBox virtual NIC)
Nmap done: 1 IP address (1 host up) scanned in 9.61 seconds
┌──(kali㉿kali)-[~] └─$ sudo nmap -sT -sV -sC -O -p22,80 192.168.56.126 [sudo] password for kali: Starting Nmap 7.94 ( https://nmap.org ) at 2023-07-11 03:03 EDT Nmap scan report for 192.168.56.126 Host is up (0.00077s latency).
PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 7.4p1 Debian 10+deb9u6 (protocol 2.0) | ssh-hostkey: | 2048 d0:02:e9:c7:5d:95:32:ab:10:99:89:84:34:3d:1e:f9 (RSA) | 256 d0:d6:40:35:a7:34:a9:0a:79:34:ee:a9:6a:dd:f4:8f (ECDSA) |_ 256 a8:55:d5:76:93:ed:4f:6f:f1:f7:a1:84:2f:af:bb:e1 (ED25519) 80/tcp open http Apache httpd 2.4.25 ((Debian)) |_http-title: Welcome to DC-7 | D7 | http-robots.txt: 22 disallowed entries (15 shown) | /core/ /profiles/ /README.txt /web.config /admin/ | /comment/reply/ /filter/tips /node/add/ /search/ /user/register/ | /user/password/ /user/login/ /user/logout/ /index.php/admin/ |_/index.php/comment/reply/ |_http-server-header: Apache/2.4.25 (Debian) |_http-generator: Drupal 8 (https://www.drupal.org) MAC Address: 08:00:27:A8:C2:95 (Oracle VirtualBox virtual NIC) Warning: OSScan results may be unreliable because we could not find at least 1 open and 1 closed port Device type: general purpose Running: Linux 3.X|4.X OS CPE: cpe:/o:linux:linux_kernel:3 cpe:/o:linux:linux_kernel:4 OS details: Linux 3.2 - 4.9 Network Distance: 1 hop Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel
OS and Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 15.76 seconds
┌──(kali㉿kali)-[~/Downloads/dc_7] └─$ ssh dc7user@192.168.56.127 The authenticity of host '192.168.56.127 (192.168.56.127)' can't be established. ED25519 key fingerprint is SHA256:BDWqBUcitB8KKGYDyoeZkt2C/aXhZ7gi5xSEtOSB+Rk. This key is not known by any other names. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added '192.168.56.127' (ED25519) to the list of known hosts. dc7user@192.168.56.127's password: Linux dc-7 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u5 (2019-08-11) x86_64
The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. No mail. Last login: Fri Aug 30 03:10:09 2019 from 192.168.0.100 dc7user@dc-7:~$ whoami dc7user dc7user@dc-7:~$ id uid=1000(dc7user) gid=1000(dc7user) groups=1000(dc7user),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),108(netdev) dc7user@dc-7:~$ sudo -l -bash: sudo: command not found dc7user@dc-7:/usr/bin$ uname -a Linux dc-7 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u5 (2019-08-11) x86_64 GNU/Linux
看看家目录下有没有什么有价值的东西
1 2 3 4 5 6 7 8 9 10 11 12
dc7user@dc-7:~$ ls -liah total 40K 262914 drwxr-xr-x 5 dc7user dc7user 4.0K Aug 30 2019 . 262321 drwxr-xr-x 3 root root 4.0K Aug 29 2019 .. 143381 drwxr-xr-x 2 dc7user dc7user 4.0K Aug 30 2019 backups 269898 lrwxrwxrwx 1 dc7user dc7user 9 Aug 29 2019 .bash_history -> /dev/null 268307 -rw-r--r-- 1 dc7user dc7user 220 Aug 29 2019 .bash_logout 268283 -rw-r--r-- 1 dc7user dc7user 3.9K Aug 29 2019 .bashrc 271693 drwxr-xr-x 3 dc7user dc7user 4.0K Aug 29 2019 .drush 143656 drwx------ 3 dc7user dc7user 4.0K Aug 29 2019 .gnupg 272762 -rw------- 1 dc7user dc7user 7.8K Aug 30 2019 mbox 268426 -rw-r--r-- 1 dc7user dc7user 675 Aug 29 2019 .profile
Hope you enjoyed DC-7. Just wanted to send a big thanks out there to all those who have provided feedback, and all those who have taken the time to complete these little challenges.
I'm sending out an especially big thanks to:
@4nqr34z @D4mianWayne @0xmzfr @theart42
If you enjoyed this CTF, send me a tweet via @DCAU7.