Skip to content

Commit 7162b0d

Browse files
Update 2025-04-12-BruteRatel5.md
1 parent 246c64b commit 7162b0d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

_posts/2025-04-12-BruteRatel5.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Here is a short description of the next 20 command codes and purpose :
4747
|"\x3a\xe5" | [GetFileTimeStamp](#GetFileTimeStamp) | $filename |
4848
|"\xd3\xb1" | [WbemCreateProcess](#WbemCreateProcess) | $CommandLine |
4949
|"\x3e\xf8" | [listdir2](#listdir2) | $dir_path |
50-
|"\xb9\xe4" | [GetDelegationToken](#GetDelegationToken) | $TargetName |
50+
|"\xb9\xe4" | [GetDelegationToken](#GetDelegationToken) | $TargetNames |
5151
|"\x3a\xb9" | [ping](#ping) | $host |
5252
|"\x9c\xda" | [GetCredentialsFromUiPrompt](#GetCredentialsFromUiPrompt) | $CaptionText |
5353
|"\xe4\xcd" | [GetThreadsInfo](#GetThreadsInfo) | $pid |
@@ -905,10 +905,14 @@ function listdir2($dir_path)
905905
This function could be part of a Kerberos Relay Attack, i'll update accordingly after a more in-depth static analysis
906906

907907
```php
908-
// GetDelegationToken("ldap/MYDC.mylab.local");
909-
function GetDelegationToken($TargetName)
908+
909+
The parameter can be a signle target or a space-separated list of targets
910+
911+
// ex: GetDelegationToken("ldap/MYDC.mylab.local");
912+
// ex: GetDelegationToken("ldap/MYDC1.mylab.local ldap/MYDC2.mylab.local ldap/MYDC3.mylab.local");
913+
function GetDelegationToken($TargetNames)
910914
{
911-
$cmd_id = "\xb9\xe4 $TargetName";
915+
$cmd_id = "\xb9\xe4 $TargetNames";
912916
$cmd_id_b64 = base64_encode($cmd_id);
913917

914918
return $cmd_id_b64;

0 commit comments

Comments
 (0)