Skip to content

Instantly share code, notes, and snippets.

@FrankSpierings
Last active July 6, 2018 09:50
Show Gist options
  • Save FrankSpierings/0ae713626323d65165f1038eeb33df6a to your computer and use it in GitHub Desktop.
Save FrankSpierings/0ae713626323d65165f1038eeb33df6a to your computer and use it in GitHub Desktop.
windapsearch - notes
# cd /tmp/; git clone https://github.com/ropnop/windapsearch.git
# apt install python-ldap
# Find (nested) Domain Admins
windapsearch.py --dc-ip 10.0.0.1 -u 'user01@lab.test' -p "Password123!" --da
# Find computers and resolve
./windapsearch.py --dc-ip 10.0.0.1 -u 'user01@lab.test' -p "Password123!" -C -r
# Export all data and show in columns on the commandline
OUTDIR=/tmp/out/windap
mkdir -p ${OUTDIR}
./windapsearch.py --dc-ip 10.0.0.1 -u 'user01@lab.test' -p "Password123!" -U -G -C --da -dn -o ${OUTDIR}
column -t ${OUTDIR}/*
# Export all data including attributes
OUTDIR=/tmp/out/windap
mkdir -p ${OUTDIR}
./windapsearch.py --dc-ip 10.0.0.1 -u 'user01@lab.test' -p "Password123!" -U -G -C --da -dn --full -o ${OUTDIR} | tee -a ${OUTDIR}/full.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment