정규틀 f = open("gogo.txt", 'r') while f: line = f.readline().strip() #print(line) if("SamAccountName" in line): print(line.replace("SamAccountName: ",""),end=":") elif("NTHash:" in line): print(line.replace("NTHash: ","")) if line == "": break f.close() 카테고리 없음 2024.08.30
ntds.dit Install-Module -Name DSInternals -Scope CurrentUserSet-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope Process Import-Module DSInternals Get-ADDBAccount -DBPath "C:\ntdsexport\Active Directory\ntds.dit" -SamAccountName TestUser001?변수 써야할듯 $bootKey = Get-BootKey -SystemHiveFilePath "C:\ntdsexport\registry\SYSTEM" Get-ADDBAccount -DBPath "C:\ntdsexport\Active Directory\ntds.dit" -BootKey $boo.. web_security 2024.08.30