From 111f5b1ae6a4d9a9197db152689b5c66089d78fb Mon Sep 17 00:00:00 2001 From: ramirak Date: Mon, 15 May 2023 22:43:04 +0300 Subject: [PATCH] Added button to retrieve active rules --- main_frame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main_frame.py b/main_frame.py index 8920c3f..3d63be8 100644 --- a/main_frame.py +++ b/main_frame.py @@ -20,9 +20,9 @@ def set_main_buttons(root, text, LEFT_FRAME, RIGHT_FRAME): buttons = [ Button(LEFT_FRAME,text="Security dashboard", **button_args, command=lambda: update_window_text(text, sec_status)), + Button(LEFT_FRAME,text="My rulebase", **button_args, command=lambda: update_window_text(text, 'sudo iptables -nL')), Button(LEFT_FRAME,text="Active connections", **button_args, command = lambda : update_window_text(text, 'netstat -tun')), Button(LEFT_FRAME,text="Processes", **button_args, command =lambda: update_window_text(text, "ps -eM | awk '{up=toupper($5);a[up]}END{for(i in a) print i}'")), - Button(LEFT_FRAME,text="Patch system", **button_args), Button(LEFT_FRAME,text="Exit", **button_args, command=lambda:root.destroy()), Button(RIGHT_FRAME,text="Apply policy", **button_args, command=lambda:apply_current_policy()), Button(RIGHT_FRAME,text="Edit policies", **button_args, command=lambda:edit_policies()),