Tag: shared

Debian

Recursively download a directory using smbclient

smbclient — ftp-like client to access SMB/CIFS resources on servers. Download folder smbclient ‘\\server\share’ -U usernamesmbclient ‘\\server\share’ -U username mask "" recurse ON prompt OFF cd ‘/path/to/remote/directory’ lcd ‘/path/to/download/’ mget *mask "" recurse ON prompt OFF cd ‘/path/to/remote/directory’ lcd ‘/path/to/download/’ mget * Options Usage: smbclient service -R, –name-resolve=NAME-RESOLVE-ORDER Use these name resolution services only -M, …

Brute-force, Cracking, Network, Wireless

WPA PSK attack

WPA PSK attack with aircrack-ng suite. Place your wireless card into Monitor Mode airmon-ng start wlan0airmon-ng start wlan0 Detect all available wireless AP’s and clients airodump-ng mon0airodump-ng mon0 Setting adapter channel iwconfig mon0 channel <channel_number>iwconfig mon0 channel <channel_number> Capturing the four-way handshake airodump-ng –channel <channel_number> –bssid <bssid> –write capture mon0airodump-ng –channel <channel_number> –bssid <bssid> –write …

Enumeration, Microsoft Windows

Disable NetBIOS NULL Sessions

Use Registry Editor to view the following registry key, and then add the following value to this key, or modify it if the value already exists: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\LSAHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\LSA Value: RestrictAnonymous Value Type: REG_DWORD Value Data: 0x2 (Hex) 0 None. Rely on default permissions 1 Do not allow enumeration of SAM accounts and names 2 No access …

Linux, Ubuntu

Ubuntu – List remote host shared folders

Usage: smbclient -U <username> -L <hostname>smbclient -U <username> -L <hostname> smbclient -U <username> -L <ip address>smbclient -U <username> -L <ip address> Example: smbclient -U test -L 192.168.10.5smbclient -U test -L 192.168.10.5 Results: Enter test’s password: Domain=[TESTING] OS=[Windows 7] Server=[Windows 7] Sharename Type Comment ——— —- ——- ADMIN$ Disk Remote Admin C$ Disk Default share E …