Last active
July 6, 2018 09:50
-
-
Save FrankSpierings/0ae713626323d65165f1038eeb33df6a to your computer and use it in GitHub Desktop.
windapsearch - notes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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