Added comment about the UTF-8 encoding. This is an issue which is documented at https://github.com/rails/rails/issues/1965; namely that SQLite seems to treat ASCII text as a blob meaning that the text searches break. Encoding to UTF-8 seems to fix this.

bug/bundler_fix
Stuart Morgan 2015-12-20 02:35:19 +00:00
parent 2301658611
commit c11c0ca7e0
1 changed files with 2 additions and 0 deletions

View File

@ -96,6 +96,8 @@ class Metasploit3 < Msf::Post
# Add the group to the database # Add the group to the database
# groupType parameter interpretation: https://msdn.microsoft.com/en-us/library/windows/desktop/ms675935(v=vs.85).aspx # groupType parameter interpretation: https://msdn.microsoft.com/en-us/library/windows/desktop/ms675935(v=vs.85).aspx
# Note that the conversions to UTF-8 are necessary because of the way SQLite detects column type affinity
# Turns out that the 'fix' is documented in https://github.com/rails/rails/issues/1965
sql_param_group = { g_rid: group_rid, sql_param_group = { g_rid: group_rid,
g_distinguishedName: individual_group[0][:value].encode('UTF-8'), g_distinguishedName: individual_group[0][:value].encode('UTF-8'),
g_sAMAccountType: sat_int, g_sAMAccountType: sat_int,