Projects STRLCPY nanorobeus Commits a446c32c
🤬
  • Remove unused token query. Update README.

  • Loading...
  • wavvs committed 2 years ago
    a446c32c
    1 parent 0095a15b
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■
    README.md
    skipped 3 lines
    4 4  ## Supported agents
    5 5  * [Sliver](https://github.com/BishopFox/sliver)
    6 6  * [Brute Ratel](https://bruteratel.com)
     7 +* Any other agent supporting Cobalt Strike BOFs (not tested)
    7 8   
    8 9  ## Commands
    9 10   
    skipped 108 lines
  • ■ ■ ■ ■ ■ ■
    source/common.c
    skipped 138 lines
    139 139   status = ADVAPI32$LsaNtStatusToWinError(status);
    140 140   }
    141 141   } else {
    142  - hToken = GetCurrentToken(TOKEN_ADJUST_PRIVILEGES);
    143  - if (hToken != NULL) {
    144  - if (ElevateToSystem()) {
    145  - status = SECUR32$LsaRegisterLogonProcess(&lsaString, &hLsaLocal, &mode);
    146  - if (!NT_SUCCESS(status)) {
    147  - status = ADVAPI32$LsaNtStatusToWinError(status);
    148  - }
    149  - ADVAPI32$RevertToSelf();
    150  - } else {
    151  - status = KERNEL32$GetLastError();
     142 + if (ElevateToSystem()) {
     143 + status = SECUR32$LsaRegisterLogonProcess(&lsaString, &hLsaLocal, &mode);
     144 + if (!NT_SUCCESS(status)) {
     145 + status = ADVAPI32$LsaNtStatusToWinError(status);
    152 146   }
    153  - KERNEL32$CloseHandle(hToken);
     147 + ADVAPI32$RevertToSelf();
    154 148   } else {
    155 149   status = KERNEL32$GetLastError();
    156 150   }
    skipped 114 lines
Please wait...
Page is in error, reload to recover