Skip to content

Commit

Permalink
Update commands.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
crsftw committed Mar 15, 2018
1 parent 41f8e74 commit c3c5033
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions ENUMERATION/SMB/commands.txt
Expand Up @@ -3,9 +3,6 @@ enum4linux x.x.x.x
nmap -v -p 139,445 -oG smb.txt 192.168.11.200-254
nbtscan -r 192.168.11.0/24
nmblookup -A target
smbclient //192.168.31.147/kathy -I 192.168.31.147
rpcclient -U "" target // connect as blank user /nobody
smbmap -u "" -p "" -d MYGROUP -H 10.11.1.22

## SMB version
msf auxiliary(scanner/smb/smb_version) > use auxiliary/scanner/smb/smb_version
Expand Down Expand Up @@ -63,14 +60,20 @@ smb-vuln-ms10-061.nse
smb-vuln-regsvc-dos.nse
smbv2-enabled.nse

rpcclient -U "" target // connect as blank user /nobody
smbmap -u "" -p "" -d MYGROUP -H 10.11.1.22

#mount SMB shares in Linux
smbclient -L \\WIN7\ -I 192.168.13.218
smbclient -L \\WIN7\ADMIN$ -I 192.168.13.218
smbclient -L \\WIN7\C$ -I 192.168.13.218
smbclient -L \\WIN7\IPC$ -I 192.168.13.218
smbclient \\192.168.13.236\some-share -o user=root,pass=root,workgroup=BOB
apt-get install cifs-utils
mount -t cifs //10.11.6.31/wwwroot -o username=xxx,password=xxx /tmp/smb/


# mount SMB share to a afolder
# mount SMB share to a folder
mount -t auto --source //192.168.31.147/kathy --target /tmp/smb/ -o username=root,workgroup=WORKGROUP

# mount SMB shares in Windows (via cmd)
Expand Down

0 comments on commit c3c5033

Please sign in to comment.