ldapconsole
vements, bug fixes, better help message
ldapconsole 脚本允许您对 Windows 域执行自定义 LDAP 请求。
--xlsx
导出为 XLSX 格式对于python-ldap
:
sudo apt-get install libsasl2-dev python3-dev libldap2-dev libssl-dev
进而:
python3 -m pip install -r requirements.txt
./ldapconsole.py -u ' user1 ' -p ' Admin123! ' -d ' LAB.local ' --dc-ip 192.168.2.1
./ldapconsole.py -d LAB.local -u Administrator -p ' Admin123! ' --dc-ip 10.0.0.101 -q ' (&(objectCategory=Computer)(|(operatingSystem=Windows 2000*)(operatingSystem=Windows Vista*)(operatingSystem=Windows XP*)(operatingSystem=Windows 7*)(operatingSystem=Windows 8*)(operatingSystem=Windows Server 200*)(operatingSystem=Windows Server 2012*))) ' -a ' operatingSystem ' -a ' operatingSystemVersion ' -x ComputersWithObsoleteOSes.xlsx
欢迎请求请求。如果您想添加其他功能,请随时提出问题。