Skip to content

itsbcit/container-changepasswd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

changepasswd

A minimal Docker image for changing Active Directory passwords using impacket's changepasswd.py.

Why

  • No Windows machine or AD-joined host required
  • Works from macOS or Linux
  • Stripped down to changepasswd.py only — no other impacket tools included
  • Runs as non-root

Usage

docker run -it --rm bcit/changepasswd username@domain

Example:

docker run -it --rm bcit/changepasswd jsmith@ad.example.com

You will be prompted for the current and new password interactively.

Targeting a specific DC

docker run -it --rm bcit/changepasswd domain/username@dc-ip

Example:

docker run -it --rm bcit/changepasswd ad.example.com/jsmith@10.0.0.1

Shell function

Add to your .bashrc or .zshrc for convenience:

ad_passwd() {
  if [[ -z "$1" ]]; then
    echo "Usage: ad_passwd USERNAME@DOMAIN"
    return 1
  fi
  docker run -it --rm bcit/changepasswd "${1}"
}

Then just run:

ad_passwd jsmith@ad.example.com

Building

This image uses a Rakefile to generate the Dockerfile from Dockerfile.erb and metadata.yaml before building.

rake

Image details

Base image python:3.12-alpine
Impacket version 0.13.0
Runs as non-root (appuser, uid 1000)
Included tools changepasswd.py only

About

A minimal Docker image for changing Active Directory passwords using impacket's changepasswd.py.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Generated from itsbcit/docker-template