mirror of
https://github.com/roadwy/DefenderYara
synced 2026-06-21 14:08:27 +00:00
17 lines
1.1 KiB
Plaintext
17 lines
1.1 KiB
Plaintext
|
|
rule Exploit_Linux_Dirtypipe_c{
|
|
meta:
|
|
description = "Exploit:Linux/Dirtypipe.c,SIGNATURE_TYPE_ELFHSTR_EXT,0c 00 0c 00 07 00 00 "
|
|
|
|
strings :
|
|
$a_00_0 = {65 78 70 6c 6f 69 74 } //5 exploit
|
|
$a_00_1 = {53 6f 72 72 79 2c 20 63 61 6e 6e 6f 74 20 73 74 61 72 74 20 77 72 69 74 69 6e 67 20 61 74 20 61 20 70 61 67 65 20 62 6f 75 6e 64 61 72 79 } //5 Sorry, cannot start writing at a page boundary
|
|
$a_00_2 = {53 6f 72 72 79 2c 20 63 61 6e 6e 6f 74 20 77 72 69 74 65 20 61 63 72 6f 73 73 20 61 20 70 61 67 65 20 62 6f 75 6e 64 61 72 79 } //5 Sorry, cannot write across a page boundary
|
|
$a_00_3 = {44 6f 6e 65 21 20 50 6f 70 70 69 6e 67 20 73 68 65 6c 6c } //1 Done! Popping shell
|
|
$a_00_4 = {28 72 75 6e 20 63 6f 6d 6d 61 6e 64 73 20 6e 6f 77 29 } //1 (run commands now)
|
|
$a_00_5 = {70 72 65 70 61 72 65 5f 70 69 70 65 } //1 prepare_pipe
|
|
$a_00_6 = {73 75 20 2d 20 2d 63 20 22 65 63 68 6f 20 5c 22 52 65 73 74 6f 72 69 6e 67 } //1 su - -c "echo \"Restoring
|
|
condition:
|
|
((#a_00_0 & 1)*5+(#a_00_1 & 1)*5+(#a_00_2 & 1)*5+(#a_00_3 & 1)*1+(#a_00_4 & 1)*1+(#a_00_5 & 1)*1+(#a_00_6 & 1)*1) >=12
|
|
|
|
} |