-
Notifications
You must be signed in to change notification settings - Fork 21
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
fail to parse json file which contains character \" #6
Comments
我目前的临时方案是用占位符占据特殊字符,转换之后再换回来
|
Kindly use English. Apologies if this sounds rude but I don't know Chinese. |
Sorry, i thought u r chinese.
|
Apologies for replying so late. Thanks. |
Hello, {
"pluginId": "osquery",
"enable": true,
"type": "pluginConfig",
"hash": "6c3a3f6a22161912facd77a75d0e6346",
"config": {
"rules": [{
"content": "{\n \"query\": \"SELECT p.pid, p.name, p.cmdline, p.path FROM processes p JOIN process_open_files pf USING(pid) WHERE pf.path = '/dev/tty' AND p.cmdline LIKE '%sh -i';\",\n \"interval\": 600,\n \"descirption\": \"通过 fifo 管道实现反弹 shell(间接重定向)\"\n}",
"ruleId": "reverse_shell_with_fifo_pipe_tty"
},
{
"content": "{\n \"query\": \"SELECT pid, name, cmdline, path as pipepath FROM (SELECT p.pid, p.name, p.cmdline, pf.path FROM process_open_files pf JOIN processes p USING(pid) WHERE p.name IN ('bash', 'sh')) bf JOIN file USING(path) WHERE type = 'fifo';\",\n \"interval\": 600,\n \"descirption\": \"通过 fifo 管道实现反弹 shell(直接重定向)\"\n}",
"ruleId": "reverse_shell_with_fifo_pipe"
},
{
"content": "{\n \"query\":\"SELECT p.pid, p.name, p.cmdline, p.path FROM processes p JOIN process_open_sockets s ON p.pid = s.pid WHERE p.pid = (SELECT parent FROM processes WHERE name = 'sh') AND s.state = 'ESTABLISHED' AND p.cmdline LIKE 'python -c exec(%';\",\n \"interval\":600,\n \"descirption\":\"通过 socket 实现反弹 shell(Python)\"\n}",
"ruleId": "reverse_shell_with_socket_python"
}
]
}
} Thanks! |
The text was updated successfully, but these errors were encountered: