PORT STATE SERVICE 22/tcp open ssh 135/tcp open msrpc 139/tcp open netbios-ssn 445/tcp open microsoft-ds 49664/tcp open unknown 49665/tcp open unknown 49666/tcp open unknown 49668/tcp open unknown 49670/tcp open unknown
┌──(kali㉿offsec)-[~/Desktop] └─$ sudo nmap -p22,135,139,445 -sV -sC --min-rate 1000010.10.10.134 Starting Nmap 7.94SVN ( https://nmap.org ) at 2024-03-15 21:49 CST Nmap scan report for10.10.10.134 Host is up (0.29s latency).
PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH for_Windows_7.9 (protocol 2.0) | ssh-hostkey: | 20483a:56:ae:75:3c:78:0e:c8:56:4d:cb:1c:22:bf:45:8a (RSA) | 256 cc:2e:56:ab:19:97:d5:bb:03:fb:82:cd:63:da:68:01 (ECDSA) |_ 25693:5f:5d:aa:ca:9f:53:e7:f2:82:e6:64:a8:a3:a0:18 (ED25519) 135/tcp open msrpc Microsoft Windows RPC 139/tcp open netbios-ssn Microsoft Windows netbios-ssn 445/tcp open microsoft-ds Windows Server 2016 Standard 14393 microsoft-ds Service Info: OSs: Windows, Windows Server 2008 R2 - 2012; CPE: cpe:/o:microsoft:windows
Host script results: | smb-security-mode: | account_used: guest | authentication_level: user | challenge_response: supported |_ message_signing: disabled (dangerous, but default) |_clock-skew: mean: -19m58s, deviation: 34m36s, median: 0s | smb2-security-mode: | 3:1:1: |_ Message signing enabled but not required | smb-os-discovery: | OS: Windows Server 2016 Standard 14393 (Windows Server 2016 Standard 6.3) | Computer name: Bastion | NetBIOS computer name: BASTION\x00 | Workgroup: WORKGROUP\x00 |_ System time: 2024-03-15T14:49:20+01:00 | smb2-time: | date: 2024-03-15T13:49:21 |_ start_date: 2024-03-15T13:33:55
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 28.20 seconds
Sharename Type Comment --------- ---- ------- ADMIN$ Disk Remote Admin Backups Disk C$ Disk Default share IPC$ IPC Remote IPC Reconnecting with SMB1 for workgroup listing. do_connect: Connection to 10.10.10.134 failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND) Unable to connect with SMB1 -- no workgroup available
┌──(kali㉿offsec)-[~/Desktop] └─$ smbclient \\\\10.10.10.134\\Backups -N Try "help" to get a list of possible commands. smb: \> ls . D 0 Tue Apr 1618:02:112019 .. D 0 Tue Apr 1618:02:112019 note.txt AR 116 Tue Apr 1618:10:092019 SDT65CB.tmp A 0 Fri Feb 2220:43:082019 WindowsImageBackup Dn 0 Fri Feb 2220:44:022019
5638911 blocks of size 4096.1177045 blocks available smb: \> get note.txt getting file \note.txt of size 116 as note.txt (0.1 KiloBytes/sec) (average 0.1 KiloBytes/sec) smb: \> get SDT65CB.tmp getting file \SDT65CB.tmp of size 0 as SDT65CB.tmp (0.0 KiloBytes/sec) (average 0.1 KiloBytes/sec) smb: \> cd WindowsImageBackup\ smb: \WindowsImageBackup\> ls . Dn 0 Fri Feb 2220:44:022019 .. Dn 0 Fri Feb 2220:44:022019 L4mpje-PC Dn 0 Fri Feb 2220:45:322019
5638911 blocks of size 4096.1177045 blocks available smb: \WindowsImageBackup\> cd L4mpje-PC\ smb: \WindowsImageBackup\L4mpje-PC\> ls . Dn 0 Fri Feb 2220:45:322019 .. Dn 0 Fri Feb 2220:45:322019 Backup 2019-02-22124351 Dn 0 Fri Feb 2220:45:322019 Catalog Dn 0 Fri Feb 2220:45:322019 MediaId An 16 Fri Feb 2220:44:022019 SPPMetadataCache Dn 0 Fri Feb 2220:45:322019
5638911 blocks of size 4096.1177045 blocks available smb: \WindowsImageBackup\L4mpje-PC\> cd Catalog\ smb: \WindowsImageBackup\L4mpje-PC\Catalog\> ls . Dn 0 Fri Feb 2220:45:322019 .. Dn 0 Fri Feb 2220:45:322019 BackupGlobalCatalog An 5698 Fri Feb 2220:44:022019 GlobalCatalog An 7440 Fri Feb 2220:45:322019
5638911 blocks of size 4096.1177045 blocks available smb: \WindowsImageBackup\L4mpje-PC\Catalog\> get BackupGlobalCatalog getting file \WindowsImageBackup\L4mpje-PC\Catalog\BackupGlobalCatalog of size 5698 as BackupGlobalCatalog(4.2 KiloBytes/sec)(average 1.6 KiloBytes/sec) smb: \WindowsImageBackup\L4mpje-PC\Catalog\> get GlobalCatalog getting file \WindowsImageBackup\L4mpje-PC\Catalog\GlobalCatalog of size 7440 as GlobalCatalog(3.0 KiloBytes/sec)(average 2.2 KiloBytes/sec) smb: \WindowsImageBackup\L4mpje-PC\Catalog\> cd ../ smb: \WindowsImageBackup\L4mpje-PC\> cd Backup 2019-02-22 124351\ cd \WindowsImageBackup\L4mpje-PC\Backup\: NT_STATUS_OBJECT_NAME_NOT_FOUND smb: \WindowsImageBackup\L4mpje-PC\> cd MediaId cd \WindowsImageBackup\L4mpje-PC\MediaId\: NT_STATUS_NOT_A_DIRECTORY smb: \WindowsImageBackup\L4mpje-PC\> get MediaId getting file \WindowsImageBackup\L4mpje-PC\MediaId of size 16 as MediaId(0.0 KiloBytes/sec)(average 1.8 KiloBytes/sec) smb: \WindowsImageBackup\L4mpje-PC\> cd SPPMetadataCache\ smb: \WindowsImageBackup\L4mpje-PC\SPPMetadataCache\> ls . Dn 0 Fri Feb 22 20:45:32 2019 .. Dn 0 Fri Feb 22 20:45:32 2019 {cd113385-65ff-4ea2-8ced-5630f6feca8f} An 57848 Fri Feb 2220:45:322019
5638911 blocks of size 4096.1176991 blocks available smb: \WindowsImageBackup\L4mpje-PC\SPPMetadataCache\> cd {cd113385-65ff-4ea2-8ced-5630f6feca8f} cd \WindowsImageBackup\L4mpje-PC\SPPMetadataCache\{cd113385-65ff-4ea2-8ced-5630f6feca8f}\: NT_STATUS_NOT_A_DIRECTORY smb: \WindowsImageBackup\L4mpje-PC\SPPMetadataCache\> ls . Dn 0 Fri Feb 2220:45:322019 .. Dn 0 Fri Feb 2220:45:322019 {cd113385-65ff-4ea2-8ced-5630f6feca8f} An 57848 Fri Feb 2220:45:322019
5638911 blocks of size 4096.1176991 blocks available smb: \WindowsImageBackup\L4mpje-PC\SPPMetadataCache\> get {cd113385-65ff-4ea2-8ced-5630f6feca8f} getting file \WindowsImageBackup\L4mpje-PC\SPPMetadataCache\{cd113385-65ff-4ea2-8ced-5630f6feca8f} of size 57848 as {cd113385-65ff-4ea2-8ced-5630f6feca8f} (21.3 KiloBytes/sec) (average 7.1 KiloBytes/sec) smb: \WindowsImageBackup\L4mpje-PC\SPPMetadataCache\> cd ./../ smb: \WindowsImageBackup\L4mpje-PC\SPPMetadataCache\> ls . Dn 0 Fri Feb 2220:45:322019 .. Dn 0 Fri Feb 2220:45:322019 {cd113385-65ff-4ea2-8ced-5630f6feca8f} An 57848 Fri Feb 2220:45:322019
5638911 blocks of size 4096.1176991 blocks available smb: \WindowsImageBackup\L4mpje-PC\SPPMetadataCache\> cd ../../ smb: \WindowsImageBackup\> ls . Dn 0 Fri Feb 2220:44:022019 .. Dn 0 Fri Feb 2220:44:022019 L4mpje-PC Dn 0 Fri Feb 2220:45:322019
5638911 blocks of size 4096.1176991 blocks available smb: \WindowsImageBackup\> cd ../ smb: \> ls . D 0 Tue Apr 1618:02:112019 .. D 0 Tue Apr 1618:02:112019 note.txt AR 116 Tue Apr 1618:10:092019 SDT65CB.tmp A 0 Fri Feb 2220:43:082019 WindowsImageBackup Dn 0 Fri Feb 2220:44:022019
5638911 blocks of size 4096.1176991 blocks available smb: \>
5、经过一阵翻找,在 note.txt 文件里发现了一些提示内容
1 2 3 4 5 6 7 8
┌──(kali㉿offsec)-[~/Desktop] └─$ cat note.txt
Sysadmins: please don't transfer the entire backup file locally, the VPN to the subsidiary office is too slow. 系统管理员:请不要在本地传输整个备份文件,VPN到附属办公室的速度太慢。 L4mpje-PC
┌──(kali㉿offsec)-[~/Desktop] └─$ ssh L4mpje@10.10.10.134 The authenticity of host '10.10.10.134 (10.10.10.134)' can't be established. ED25519 key fingerprint is SHA256:2ZbIDKRPlngECX1WSMqnucdOWthIaPG7wQ6mBReac7M. This key is not known by any other names. Are you sure you want to continueconnecting(yes/no/[fingerprint])? yes Warning: Permanently added '10.10.10.134' (ED25519) to the list of known hosts. L4mpje@10.10.10.134's password:
Microsoft Windows [Version 10.0.14393] (c) 2016 Microsoft Corporation. All rights reserved.
l4mpje@BASTION C:\Users\L4mpje>ls 'ls' is not recognized as an internal or external command, operable program or batch file.
l4mpje@BASTION C:\Users\L4mpje>dir Volume in drive C has no label. Volume Serial Number is 1B7D-E692