Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.14-alpine
Impacket version 0.13.1
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

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages