up
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"permissions": {
|
||||
"allow": [
|
||||
"Bash(curl -s -c /tmp/cookies.txt -L -X POST http://localhost:8099/login -d \"username=admin&password=admin\" -o /dev/null -w \"login final HTTP %{http_code}\\\\n\")",
|
||||
"Bash(curl -s -b /tmp/cookies.txt http://localhost:8099/admin -o /tmp/dash.html -w \"HTTP %{http_code}\\\\n\")",
|
||||
"Read(//tmp/**)",
|
||||
"Bash(sed -n 's/.*\\\\\\(text-3xl font-bold text-gray-900 mt-1\">1\\\\n\\\\\\).*//p' /tmp/dash.html)",
|
||||
"Bash(perl -0777 -ne 'while\\(/dash_posts.*?text-3xl[^>]*>\\(.*?\\)<\\\\/p>/sg\\){print \"POSTS BLOCK: $1\\\\n\"}' /tmp/dash.html)",
|
||||
"Bash(python -c ' *)",
|
||||
"Bash(curl -s -b /tmp/cookies.txt http://localhost:8099/admin -o dash.html)",
|
||||
"Bash(rm -f dash.html)",
|
||||
"Bash(curl -s http://localhost:8099/article/123 -o detail.html -w \"detail HTTP %{http_code}\\\\n\")",
|
||||
"Bash(rm -f detail.html)",
|
||||
"Bash(cp /tmp/cfg_backup.yaml win/etc/blog_go/config.yaml)",
|
||||
"Bash(pkill -f blogtest.exe)",
|
||||
"Bash(pkill -f \"blog_go.exe\")",
|
||||
"Bash(cd c:/Users/wuwen/Documents/project/go_blog && rm -f /tmp/blogtest.exe && git status --short && echo \"--- diff stat ---\" && git diff --stat)"
|
||||
],
|
||||
"additionalDirectories": [
|
||||
"\\tmp"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user