Skip to content

Instantly share code, notes, and snippets.

@nongiach
Last active November 28, 2019 12:09
Show Gist options
  • Save nongiach/d5686664364a55e6bc06a57940050aaf to your computer and use it in GitHub Desktop.
Save nongiach/d5686664364a55e6bc06a57940050aaf to your computer and use it in GitHub Desktop.
# Author: @chaignc
# DON't FORGET TO CHANGE THE PASSWORD !!
# Add the following line into your ~/.bashrc
alias smbcreate='docker run -it -p 139:139 -p 445:445 -v $PWD/smb:/mount \
dperson/samba -p \
-u "user;badpass" \
-s "mount;/mount;yes;no;no;user"'
# This alias allows you to instantly share your current directory using smb
# Your futur favorite pentest alias
# user: user
# password: badpass <= Change it!
# hit this github stars button :D
# https://gist.github.com/nongiach/d5686664364a55e6bc06a57940050aaf/
# for more details: # https://hub.docker.com/r/dperson/samba/
# prerequest: install Docker: https://medium.com/@airman604/installing-docker-in-kali-linux-2017-1-fbaa4d1447fe
# systemctl start docker
# troubleshooting: Don't try to share a virtualbox shared folder :D (filesystem issue)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment