Страница 1 из 1

Анонимное получение списка шар в WinXP SP2 из самбы.

Добавлено: 20 май 2005, 22:22
Llama
Имеет Samba 3.0.14a из debian sarge.
Имеем хрюшу с разрешенным гостем и шарами.
Пробуем смотреть:

Код: Выделить всё

julia:~$ smbclient -L sonya  -d3
lp_load: refreshing parameters
Initialising global parameters
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
added interface ip=192.168.168.94 bcast=255.255.255.255 nmask=0.0.0.0
Client started (version 3.0.14a-Debian).
resolve_lmhosts: Attempting lmhosts lookup for name sonya<0x20>
resolve_wins: Attempting wins lookup for name sonya<0x20>
resolve_wins: WINS server resolution selected and no WINS servers listed.
resolve_hosts: Attempting host lookup for name sonya<0x20>
Connecting to 192.168.168.96 at port 445
Password:
Doing spnego session setup (blob length=16)
server didn't supply a full spnego negprot
Got challenge flags:
Got NTLMSSP neg_flags=0x628a0215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60080215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60080215
SPNEGO login failed: NT_STATUS_LOGON_TYPE_NOT_GRANTED
Anonymous login successful
Domain=[NARN] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
dos_clean_name []

        Sharename       Type      Comment
        ---------       ----      -------
Error returning browse list: NT_STATUS_ACCESS_DENIED
resolve_lmhosts: Attempting lmhosts lookup for name sonya<0x20>
resolve_wins: Attempting wins lookup for name sonya<0x20>
resolve_wins: WINS server resolution selected and no WINS servers listed.
resolve_hosts: Attempting host lookup for name sonya<0x20>
Connecting to 192.168.168.96 at port 139
Doing spnego session setup (blob length=16)
server didn't supply a full spnego negprot
Got challenge flags:
Got NTLMSSP neg_flags=0x628a0215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60080215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60080215
SPNEGO login failed: NT_STATUS_LOGON_TYPE_NOT_GRANTED
Anonymous login successful
Domain=[NARN] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
dos_clean_name []

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------
Врианты с -N, -Ugues, -Uguest%, -U% кончились аналогично. Т.е. линуксовуму анонимису не отдается список шар.
Видел много воплей. Чем лечить - не знаю. Предлогают пользователя создать на венде... А не хочется. Как вернуть null-session?

Добавлено: 09 июн 2005, 00:32
Andrej Ramaszeuski
для пачатку пагуляйся с nbtscan
пасьля - smbclient -N -L ip
увага! ip, не netbiosname!