mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Changed to for constant string
This commit is contained in:
@@ -98,6 +98,6 @@ class UnSafeExecutable extends string {
|
||||
bindingset[this]
|
||||
UnSafeExecutable() {
|
||||
this.regexpMatch("^(|.*/)([a-z]*sh|javac?|python.*|perl|[Pp]ower[Ss]hell|php|node|deno|bun|ruby|osascript|cmd|Rscript|groovy)(\\.exe)?$") and
|
||||
not this.matches("netsh.exe")
|
||||
not this = "netsh.exe"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user