Skip to content

Commit

Permalink
Removed unneeded unsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
MEhrn00 committed Mar 25, 2022
1 parent 91c4c97 commit 9d8214e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Payload_Type/tetanus/agent_code/src/utils/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9d8214e

Please sign in to comment.