File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,29 @@ tail -20 /usr/share/wireshark/init.lua 2>/dev/null || echo "init.lua not at expe
1515echo " --- root/superuser refs in init.lua ---"
1616grep -n -E ' running_superuser|disable_lua|superuser' /usr/share/wireshark/init.lua 2> /dev/null || echo " no matches"
1717
18+ echo " --- minimal lua script test ---"
19+ cat > /tmp/probe.lua << 'EOF '
20+ local f = io.open("/tmp/probe-touched.log", "w")
21+ if f then f:write("trivial script ran\n"); f:close() end
22+ io.stderr:write("[probe] trivial script ran (stderr)\n")
23+ print("[probe] trivial script ran (print)")
24+ EOF
25+ rm -f /tmp/probe-touched.log
26+ tshark -r " omi-data-packets/Asx/Ntp.Itch.v1.05/AddOrderMessage.pcap" -X " lua_script:/tmp/probe.lua" -T json > /dev/null 2> /tmp/probe.stderr || true
27+ echo " trivial script stderr:"
28+ cat /tmp/probe.stderr
29+ if [ -f /tmp/probe-touched.log ]; then
30+ echo " TRIVIAL PROBE RAN — Lua scripting works in this container"
31+ cat /tmp/probe-touched.log
32+ else
33+ echo " TRIVIAL PROBE DID NOT RUN — Lua scripts are completely disabled in this tshark"
34+ fi
35+
36+ echo " --- tshark log-level debug for Lua ---"
37+ tshark -r " omi-data-packets/Asx/Ntp.Itch.v1.05/AddOrderMessage.pcap" --log-level=debug --log-domain=Lua -X " lua_script:/tmp/probe.lua" -T json > /dev/null 2> /tmp/probe-debug.stderr || true
38+ echo " lua-debug stderr (first 50 lines):"
39+ head -n 50 /tmp/probe-debug.stderr || true
40+
1841rm -f /tmp/asx-itch-load.log
1942
2043tshark \
You can’t perform that action at this time.
0 commit comments