Skip to content

Commit

Permalink
Merge pull request #49 from SnaffCon/l0ss-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
Sh3r4 authored Jul 29, 2021
2 parents 85af5cd + 42ac7b9 commit 16c0ee7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SnaffCore/Config/DefaultRules/FileContentRules.cs
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ private void BuildFileContentRules()
// PS
"net user ",
"psexec .{0,100} -p ",
"net use .{0,300} /user:",
"-SecureString",
"-AsPlainText",
"\\[Net.NetworkCredential\\]::new\\(",
Expand Down Expand Up @@ -410,7 +411,7 @@ private void BuildFileContentRules()
// creation of scheduled tasks with password
"schtasks.{1,300}(/rp\\s|/p\\s)",
// looking for net use or net user commands since these can contain credentials
"net user? ",
"net user ",
"psexec .{0,100} -p ",
"net use .{0,300} /user:"
}
Expand Down

0 comments on commit 16c0ee7

Please sign in to comment.