diff --git a/Payload_Type/tetanus/agent_code/src/utils/windows.rs b/Payload_Type/tetanus/agent_code/src/utils/windows.rs index 5c38eaa..2377696 100644 --- a/Payload_Type/tetanus/agent_code/src/utils/windows.rs +++ b/Payload_Type/tetanus/agent_code/src/utils/windows.rs @@ -171,7 +171,7 @@ pub mod whoami { // Get the integrity level from the token let integrity_level_sid: &u32 = unsafe { - let til: &TOKEN_MANDATORY_LABEL = unsafe { &*buffer.as_ptr().cast() }; + let til: &TOKEN_MANDATORY_LABEL = &*buffer.as_ptr().cast(); let p_count = GetSidSubAuthorityCount(til.Label.Sid); if p_count.is_null() { return None;