8000 feat(windows): update windows commands list by franbuehler · Pull Request #3170 · coreruleset/coreruleset · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat(windows): update windows commands list #3170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
241 changes: 0 additions & 241 deletions regex-assembly/932115.ra

This file was deleted.

65 changes: 1 addition & 64 deletions regex-assembly/932370.ra
8000
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@

##!+ i

##! Note: the quoting prefixes are part of the command prefixes, except for ^
##! which, for unknown reasons, is not part of the expression

##! extension/switches suffix
##! cmd.com, cmd.exe, etc.
##!$ (?:\.[\"\^]*\w+)?
Expand All @@ -26,67 +23,7 @@

##! starting tokens prefix
##!> assemble
##! time cmd
##!> cmdline windows
time
##!<
##! ;cmd
;
##! {cmd
\{
##! |cmd
\|
##! ||cmd
\|\|
##! &cmd
&
##! &&cmd
&&
##! \ncmd
\n
##! \rcmd
\r
##! `cmd
`
##!=>

##! match possible white space between prefix expressions
\s*
##!=>

##! commands prefix
##!> assemble
##! (cmd)
\(
##! ,cmd
,
##! @cmd
@
##! 'cmd'
'
##! "cmd"
\"
##! spacing+cmd
\s
##!<
##!=>

*
##!=>

##! paths prefix
##!> assemble
##! /path/cmd
[\w'\"\./]+/
##! C:\Program Files\cmd
[\x5c'\"\^]*\w[\x5c'\"\^]*:.*\x5c
##! \\net\share\dir\cmd
[\^\.\w '\"/\x5c]*\x5c
##!<
##!=>

?[\"\^]*
##!=>
##!> include windows-commands-prefix

##!> cmdline windows

Expand Down
23 changes: 23 additions & 0 deletions regex-assembly/932380.ra
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
##! Please refer to the documentation at
##! https://coreruleset.org/docs/development/regex_assembly/.

##! Word list for rule 932380 (RCE Windows command injection part 2/2)
##!
##!+ i

##! extension/switches suffix
##! cmd.com, cmd.exe, etc.
##!$ (?:\.[\"\^]*\w+)?
##! cmd/h
##!$ \b

##! starting tokens prefix
##!> assemble
##!> include windows-commands-prefix

##!> cmdline windows

##!> include-except windows-commands windows-commands-fps

##!<
##!<
Loading
0