cleanup
This commit is contained in:
parent
d3b457a796
commit
84a3616b03
|
@ -4,24 +4,32 @@ Start your enumeration with [enum4linux](https://github.com/CiscoCXSecurity/enum
|
||||||
|
|
||||||
## SMBClient
|
## SMBClient
|
||||||
|
|
||||||
* Use `smbclient` to list the share
|
* Use `smbclient` to list the share through an anonymous NULL session
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
smbclient -L //$TARGET_IP/
|
smbclient -L //$TARGET_IP/ -N
|
||||||
```
|
|
||||||
* The protocol might be dated, try
|
|
||||||
```sh
|
|
||||||
smbclient -L //$TARGET_IP/ --option='client min protocol=NT1'
|
|
||||||
```
|
```
|
||||||
|
|
||||||
# smbmap
|
* The protocol might be dated, try
|
||||||
|
|
||||||
|
```sh
|
||||||
|
smbclient -N -L //$TARGET_IP/ --option='client min protocol=NT1'
|
||||||
|
```
|
||||||
|
|
||||||
|
## smbmap
|
||||||
|
|
||||||
* [Repo](https://github.com/ShawnDEvans/smbmap.git)
|
* [Repo](https://github.com/ShawnDEvans/smbmap.git)
|
||||||
* `python3 -m pip install -r requirements.txt`
|
* `python3 -m pip install -r requirements.txt`
|
||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
|
|
||||||
* `-x` execute command on server
|
* `-x` execute command on server
|
||||||
* `-s` enumerate share
|
* `-s` enumerate share
|
||||||
|
|
||||||
|
```sh
|
||||||
|
smbmap -H 10.10.10.10
|
||||||
|
```
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
smbmap -u "admin" -p "password" -H "10.10.10.10" -x 'ipconfig'
|
smbmap -u "admin" -p "password" -H "10.10.10.10" -x 'ipconfig'
|
||||||
```
|
```
|
||||||
|
@ -51,7 +59,7 @@ psexec.py example.com/domain.user@example.com
|
||||||
## Download Directories
|
## Download Directories
|
||||||
|
|
||||||
Single files can be downloaded by any client like smbclient via `get`.
|
Single files can be downloaded by any client like smbclient via `get`.
|
||||||
Directories can be downloaded via
|
Directories can be downloaded via
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
smbget -R smb://$TARGET_IP/directory
|
smbget -R smb://$TARGET_IP/directory
|
||||||
|
|
Loading…
Reference in New Issue