csababarta / ntdsxtract

Active Directory forensic framework
http://www.ntdsxtract.com
GNU General Public License v3.0
315 stars 108 forks source link

Bug fix for newlines #27

Open jskrivseth opened 6 years ago

jskrivseth commented 6 years ago

Newline characters are not stripped from lines of input. This causes the rightmost column to be non-empty. If the rightmost column happens to be the PEK index, the string is not empty (because it contains \n or \r\n) and it throws "[!] Warning! Multiple records with PEK entry!" and replaces the PEK key with newlines. This change simply strips the newlines