mirror of
https://github.com/e-fin/ADWS-BOF
synced 2026-06-23 09:33:17 +00:00
removing unused code
This commit is contained in:
@@ -3141,13 +3141,7 @@ extern "C" {
|
|||||||
pfn_DsGetDcNameA = (PFN_DsGetDcNameA)KERNEL32$GetProcAddress(KERNEL32$LoadLibraryA("Netapi32.dll"), "DsGetDcNameA");
|
pfn_DsGetDcNameA = (PFN_DsGetDcNameA)KERNEL32$GetProcAddress(KERNEL32$LoadLibraryA("Netapi32.dll"), "DsGetDcNameA");
|
||||||
DWORD ret = pfn_DsGetDcNameA(NULL, NULL, NULL, NULL, DS_RETURN_DNS_NAME, &pDCI);
|
DWORD ret = pfn_DsGetDcNameA(NULL, NULL, NULL, NULL, DS_RETURN_DNS_NAME, &pDCI);
|
||||||
if (ret == ERROR_SUCCESS) {
|
if (ret == ERROR_SUCCESS) {
|
||||||
//printf("DC: %s\n", pDCI->DomainControllerName);
|
|
||||||
ip = pDCI->DomainControllerAddress+2;
|
ip = pDCI->DomainControllerAddress+2;
|
||||||
//printf("Address: %s\n", addr);
|
|
||||||
//printf("Address: %s\n", addr + 2);
|
|
||||||
//while (*addr == '\\') addr++;
|
|
||||||
//printf("Address: %s\n", addr);
|
|
||||||
//NetApiBufferFree(pDCI);
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
BeaconPrintf(CALLBACK_OUTPUT, "Cant Find DC IP Address, Specify with --ip");
|
BeaconPrintf(CALLBACK_OUTPUT, "Cant Find DC IP Address, Specify with --ip");
|
||||||
@@ -3176,11 +3170,6 @@ extern "C" {
|
|||||||
|
|
||||||
for (size_t j = 0; j < obj->attr_count; j++) {
|
for (size_t j = 0; j < obj->attr_count; j++) {
|
||||||
AdwsAttr* attr = &obj->attrs[j];
|
AdwsAttr* attr = &obj->attrs[j];
|
||||||
if (adws_strcmp(attr->name, "user") == 0) continue;
|
|
||||||
if (adws_strcmp(attr->name, "computer") == 0) continue;
|
|
||||||
if (adws_strcmp(attr->name, "objectReferenceProperty") == 0) continue;
|
|
||||||
if (adws_strcmp(attr->name, "value") == 0) continue;
|
|
||||||
if (attr->value_count == 0) continue;
|
|
||||||
|
|
||||||
for (size_t k = 0; k < attr->value_count; k++) {
|
for (size_t k = 0; k < attr->value_count; k++) {
|
||||||
const char* val = attr->values[k] ? attr->values[k] : "(null)";
|
const char* val = attr->values[k] ? attr->values[k] : "(null)";
|
||||||
|
|||||||
Reference in New Issue
Block a user