Skip to content

Commit

Permalink
Added button to retrieve active rules
Browse files Browse the repository at this point in the history
  • Loading branch information
ramirak committed May 15, 2023
1 parent c0adb52 commit 111f5b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
Expand Down

0 comments on commit 111f5b1

Please sign in to comment.