mirror of
https://github.com/rapid7/metasploit-payloads
synced 2024-12-08 23:33:07 +01:00
Last debug code, force valid result
Sometimes results can be success values but not S_OK, so this change contains code which will force the result to S_OK in those cases so that the caller doesn't get an indication which makes it believe that there is an error.
This commit is contained in:
parent
e0da82d12b
commit
fda91a3f1d
@ -124,6 +124,7 @@ DWORD request_adsi_domain_query(Remote *remote, Packet *packet)
|
||||
{
|
||||
dprintf("[EXTAPI ADSI] Beginning user enumeration");
|
||||
dwResult = domain_query(lpwDomain, lpwFilter, lpwFields, fieldCount, maxResults, pageSize, response);
|
||||
dprintf("[EXTAPI ADSI] Result of processing: %u (0x%x)", dwResult, dwResult);
|
||||
}
|
||||
} while (0);
|
||||
|
||||
|
@ -167,6 +167,13 @@ DWORD domain_query(LPCWSTR lpwDomain, LPWSTR lpwFilter, LPWSTR* lpwQueryCols,
|
||||
++rowsProcessed;
|
||||
}
|
||||
|
||||
dprintf("[ADSI] Processed %u. Final result: %u (0x%x)", rowsProcessed, hResult, hResult);
|
||||
|
||||
if (SUCCEEDED(hResult))
|
||||
{
|
||||
hResult = S_OK;
|
||||
}
|
||||
|
||||
free(entries);
|
||||
free(values);
|
||||
} while (0);
|
||||
|
Loading…
Reference in New Issue
Block a user