Skip to content

Commit e914061

Browse files
committed
Gsub out funny character when storing to database
1 parent 3167103 commit e914061

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/post/windows/gather/enum_ad_computers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def run
9292
report[:name] = dns
9393
hostnames << dns
9494
when 'operatingSystem'
95-
report[:os_name] = field
95+
report[:os_name] = field.gsub("\xAE",'')
9696
when 'distinguishedName'
9797
if field =~ /Domain Controllers/i
9898
# TODO: Find another way to mark a host as being a domain controller

0 commit comments

Comments
 (0)