Commit graph

1,165 commits

Author SHA1 Message Date
Nicolas Vandamme
bd1fbe36da migrate to Qt ui files 2026-03-09 11:58:24 +01:00
Nicolas Vandamme
346d6bc16f add multi sub handling with UI 2026-03-09 11:11:04 +01:00
Luke Hines
7d27a61668 Add remember pause state as a preference 2026-03-07 14:50:18 +00:00
Luke Hines
0336898ed1 persist firewall pause state across GUI restarts 2026-03-07 14:15:36 +00:00
Nicolas Vandamme
6062ebebf4 align with opensnitch API's config handling 2026-03-07 11:56:34 +01:00
Nicolas Vandamme
124cd49224 Fix list_subscriptions runtime reload and HTTP stream lifecycle issues 2026-03-04 13:22:09 +01:00
nvdx
d98535b643
Merge branch 'evilsocket:master' into list_subscriptions 2026-03-04 12:13:46 +01:00
Nicolas Vandamme
6710e368b9 list subs init 2026-03-04 12:11:12 +01:00
Gustavo Iñiguez Goia
ddb5647401
ui,events: minor syntax changes 2026-03-02 01:02:21 +01:00
Gustavo Iñiguez Goia
dfc7be679c
Merge pull request #1555 from kh3ldoun/security-fix-sql-injection-remove-11178734955396376977
Modified the Database.remove() method to accept an optional args parameter to support parameterized queries.
2026-03-02 00:48:26 +01:00
Gustavo Iñiguez Goia
245af09edc
ui,events: disable header context menu on system fw view
The system firewall view has 2 hidden columns: one that is always
hidden, and another one that is dynamically displayed, based on the
filter selected (System fw menu -> node -> fw table -> fw chain).

The table header context menu was not working properly, so the code to
make it work has been added, but the functionality has been disabled
until we handle properly the visibility of the up/down buttons column.

See: #1548.
2026-03-02 00:30:54 +01:00
google-labs-jules[bot]
938b7f6dca Fix SQL injection vulnerability in db.remove method
Modified the Database.remove method to accept an optional `args` parameter to support parameterized queries. Replaced string formatting of user inputs with parameterized variables in `dialogs/events/dialog.py` and `dialogs/events/views.py` to prevent SQL injection vulnerabilities.

Co-authored-by: kh3ldoun <21332335+kh3ldoun@users.noreply.github.com>
2026-03-01 20:13:11 +00:00
Gustavo Iñiguez Goia
0195efe27e
ui,events: allow to sort systm fw rules
Closes: #1548
2026-03-01 20:58:47 +01:00
Gustavo Iñiguez Goia
83562f4fd2
ui,events: fixed error starting/stopping interception
Closes: #1550
2026-02-25 23:32:11 +01:00
Gustavo Iñiguez Goia
38931690bc
ui,events: added initial support for infinite scrolling
Up until now, we were only able to list events with a fixed limit, or
with not limit at all, but there was no support for continuous scrolling.

Now when the scrollbar reaches the bottom of the viewport, the view
will fetch the next batch of events, constrained by the limit option.

feature request: #1440
2026-02-25 20:52:20 +01:00
Gustavo Iñiguez Goia
406ec424bf
ui,events: fixed deleting alerts 2026-02-22 10:51:37 +01:00
Gustavo Iñiguez Goia
7c702cc327
ui,events: added scrollbar for the alerts view
We were reusing the rules scrollbar, but it was causing issues.
2026-02-22 00:57:19 +01:00
Gustavo Iñiguez Goia
3c90cf5e35
ui,events: handle vertical scrolling, delegate the rest to qt
issue: #1531
2026-02-18 13:05:30 +01:00
Gustavo Iñiguez Goia
043232cbe6
ui,events: allow to scroll horizontally with shift pressed
Closes: #1541
2026-02-18 12:28:03 +01:00
Gustavo Iñiguez Goia
7e72fe1804 ui,events: allow to use the mouse to scroll horizontally
issue: #1541
2026-02-18 00:40:04 +01:00
munix9
19de019b15
ui, actions: don't throw an exception if the directory already exists 2026-02-16 07:03:59 +01:00
Gustavo Iñiguez Goia
bc70673bf0
ui,events: allow to focus search widget via CTRL+F or /
Closes: #1539
2026-02-16 00:25:02 +01:00
Gustavo Iñiguez Goia
762fa9a8da
ui,ruleseditor: use forever instead of always
for consistency. "forever" is used for the pop-ups in several places,
the pop-ups and the Preferences dialog.

Internally the daemon uses "always".

Closes: #1532
2026-02-15 19:52:49 +01:00
Gustavo Iñiguez Goia
2b8c84faf7
ui: use Quit instead of Close
Closes: #1542
2026-02-15 18:54:42 +01:00
Gustavo Iñiguez Goia
5ae69db901
ui,events: allow rows selection via right-click
otherwise the context menu might not select the row to apply actions on
it.
2026-02-15 11:09:58 +01:00
Gustavo Iñiguez Goia
44a5cd42c8
ui,events: allow to reorder columns
Now it's possible to reorder columns by dragging the header of the
column.

Closes: #1535
2026-02-15 11:06:44 +01:00
Yaroslav Chvanov
662a8e0f9b
fix(ui): null-check screen in PromptDialog
Fixes crash when pressing 'accept' with keyboard when mouse cursor is
not on top of the popup.

> Traceback (most recent call last):
>   File "/path/to/opensnitch/dialogs/prompt/dialog.py", line 288, in _check_advanced_toggled
>     self.move_popup()
>     ~~~~~~~~~~~~~~~^^
>   File "/path/to/opensnitch/dialogs/prompt/dialog.py", line 254, in move_popup
>     point = self.screen().virtualSiblingAt(QtGui.QCursor.pos()).availableGeometry()
>             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> AttributeError: 'NoneType' object has no attribute 'availableGeometry'
> Fatal Python error: Aborted
2026-02-14 02:03:47 +03:00
Gustavo Iñiguez Goia
2f1cb18dc2 ui,events: improved select-all behaviour
customize selection after presing CTRL+a.
2026-02-11 00:28:31 +01:00
Gustavo Iñiguez Goia
f1e5ba94fa Bumped version to v1.9.0 2026-02-10 23:05:45 +01:00
Gustavo Iñiguez Goia
74a7a27a2d ui,ruleseditor: removed placeholder text
to avoid confussion.

Closes: #1524
2026-02-10 17:42:19 +01:00
Gustavo Iñiguez Goia
0051fa9086
ui,i18n: updated nb_NO translation 2026-02-07 11:10:32 +01:00
Gustavo Iñiguez Goia
4c16729e4f
ui,pop-ups: improvements
- Be specific about user's preferences and respect all of them
   properly.
 - reset widgets before rendering a new connection.
2026-02-06 23:50:37 +01:00
Gustavo Iñiguez Goia
87be10ccac
ui,pop-ups: improved default target logic
When displaying a new pop-up, we set the default target based on:
 - snap or appimages paths.
 - user's preferences.

In order to respect user's preferences, the process path and cmdline
must be non-empty. If any of these properties is empty, then we
select by default the Destination Port of the connection.

However, in some cases the cmdline is empty while the path is not, but
we end up selecting the destination port as the default target anyway,
which causes confusion and in some cases too much pop-ups.

Now, if the cmdline is empty and the path is not, we'll select the path
of the process as the default target.

see #1521 for more details.
2026-02-06 20:44:10 +01:00
Gustavo Iñiguez Goia
444a4b5447
ui,events: more selections changes
do not discard selected rows with ctrl when dragging the mouse.
2026-02-05 02:15:13 +01:00
Gustavo Iñiguez Goia
3a6f2614d1
ui,views: selected rows copy changes
Dump the rows of the current query, and copy only the rows selected by
the user.
Previously we kept a copy of all selected cells in memory, all the time,
while the rows were selected.
2026-02-05 02:06:33 +01:00
Gustavo Iñiguez Goia
1f401a2b16
ui,events: views improvements
simplified indexes storage for better performance and resources
consumption.
2026-02-05 01:02:58 +01:00
Gustavo Iñiguez Goia
49d2a94dd3
ui,events: view selections improvements
- override selectAll() to handle select-all behaviour.
 - fixed selecting rows while dragging the mouse.
2026-02-04 23:29:24 +01:00
Gustavo Iñiguez Goia
a6a13134fe
ui,events: small improvements
- free copied rows after writing it to the clipboard.
 - when dumping rows from the db, re-use existing query object if the
   query hasn't changed.
 - misc.
2026-02-04 01:17:53 +01:00
Gustavo Iñiguez Goia
ad7041f844
ui,events: views improvements
avoid columns count inside loops
2026-02-03 16:14:34 +01:00
Gustavo Iñiguez Goia
f464bc848a
ui,events: improved rows selection
- Select rows properly when the mouse goes off the viewport while
   selecting.
 - Reuse the internal QSqlQuery object when dumping rows.
 - Allow to select ranges with shift+KeyHome/KeyEnd
 - KeyDown (arrow) scrolls the view by one row, instead of paginate it.
   We already have Space and PageUp/PageDown keys for it.
2026-02-03 14:11:59 +01:00
Gustavo Iñiguez Goia
88f346c095
ui,events: selection improvements
- Be sure to select a valid last row when the mouse leaves the viewport
   while dragging.
 - Deleted var reset to allow scrolling.
2026-02-03 00:06:23 +01:00
Gustavo Iñiguez Goia
495cb706fa
ui,events: improved rows selection handling
- improved rows selection when scrolling while selecting with the
   mouse.
 - right-clicking on a selection doesn't discard it.
2026-02-02 23:34:02 +01:00
Gustavo Iñiguez Goia
cf550ff148
ui: updated rules colors configuration
because the number of columns of the rules view changed.
2026-02-01 11:37:27 +01:00
Gustavo Iñiguez Goia
3a5783db7a
ui: improved selections with shift+click
Persist row selections with shift+click while scrolling.

More info: #1515, #1485
2026-02-01 01:26:32 +01:00
Gustavo Iñiguez Goia
fd0c627c5c
ui,ruleseditor: format range operator properly 2026-01-30 17:19:39 +01:00
Gustavo Iñiguez Goia
26320f73cd ui,ruleseditor: allow to add port ranges
Now you can specify port ranges separated by '-':
 30000-65000

Closes: #960, #1516
2026-01-30 14:39:01 +01:00
Gustavo Iñiguez Goia
e5b15bf42b
ui,events: fixed call 2026-01-29 17:47:17 +01:00
Gustavo Iñiguez Goia
370583357a
ui,events: notifications moved to nodes
- notifications functionality moved to nodes.
- minor syntax errors fixed.
2026-01-29 17:29:27 +01:00
Gustavo Iñiguez Goia
ea8f956460
ui,events: improved columns configuration
Use the configured headers in the table model to show/hide columns,
instead of using the ones defined in the default configuration.

Plugins can add columns to the views, so this way we allow to show/hide
columns configured by the plugins.
2026-01-29 01:27:38 +01:00
Gustavo Iñiguez Goia
f5934010c6
ui,events: add a default completer to the search bar
Otherwise it can crash when loading a saved search.
2026-01-29 01:18:55 +01:00