Skip to content

Commit 56b0593

Browse files
committed
better function string in shellshock_detect
1 parent 2e69ed2 commit 56b0593

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

userspace/sysdig/chisels/shellshock_detect.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function on_event()
5858

5959
for i, v in ipairs(env_list) do
6060
if string.find(v, "%(%) ?{.+}.+") then
61-
local command = string.sub(string.match(v, "}.+"), 2)
61+
local command = string.match(v, "%(%).+")
6262

6363
print(extend_string(etime, 22) ..
6464
extend_string(pname, 22) ..

0 commit comments

Comments
 (0)