1
0
mirror of https://github.com/kepler155c/opus synced 2025-11-17 15:57:11 +00:00

network sniffer

This commit is contained in:
kepler155c@gmail.com
2019-02-23 18:36:17 -05:00
parent 1c859029f1
commit 8ae3b33374
5 changed files with 81 additions and 13 deletions

View File

@@ -128,6 +128,13 @@ local function sendCommand(host, command)
end
end
function page.ports:eventHandler(event)
if event.type == 'grid_select' then
shell.openForegroundTab('sniff ' .. event.selected.port)
end
return UI.SlideOut.eventHandler(self, event)
end
function page.ports.grid:update()
local function findConnection(port)
for _,socket in pairs(_G.transport.sockets) do