linux-autoruns 2.9.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- linux_autoruns-2.9.1/.github/workflows/publish.yml +49 -0
- linux_autoruns-2.9.1/.gitignore +226 -0
- linux_autoruns-2.9.1/.python-version +1 -0
- linux_autoruns-2.9.1/LICENSE +21 -0
- linux_autoruns-2.9.1/PKG-INFO +85 -0
- linux_autoruns-2.9.1/README.md +60 -0
- linux_autoruns-2.9.1/pyproject.toml +42 -0
- linux_autoruns-2.9.1/release.sh +31 -0
- linux_autoruns-2.9.1/src/linux_autoruns/__init__.py +3 -0
- linux_autoruns-2.9.1/src/linux_autoruns/gui/__init__.py +0 -0
- linux_autoruns-2.9.1/src/linux_autoruns/gui/detail_dialog.py +123 -0
- linux_autoruns-2.9.1/src/linux_autoruns/gui/main_window.py +342 -0
- linux_autoruns-2.9.1/src/linux_autoruns/gui/models.py +117 -0
- linux_autoruns-2.9.1/src/linux_autoruns/gui/theme.py +228 -0
- linux_autoruns-2.9.1/src/linux_autoruns/gui/worker.py +43 -0
- linux_autoruns-2.9.1/src/linux_autoruns/main.py +77 -0
- linux_autoruns-2.9.1/src/linux_autoruns/models.py +41 -0
- linux_autoruns-2.9.1/src/linux_autoruns/scanner.py +110 -0
- linux_autoruns-2.9.1/src/linux_autoruns/scanners/__init__.py +35 -0
- linux_autoruns-2.9.1/src/linux_autoruns/scanners/cron.py +202 -0
- linux_autoruns-2.9.1/src/linux_autoruns/scanners/dbus.py +102 -0
- linux_autoruns-2.9.1/src/linux_autoruns/scanners/desktop_env.py +322 -0
- linux_autoruns-2.9.1/src/linux_autoruns/scanners/display_manager.py +135 -0
- linux_autoruns-2.9.1/src/linux_autoruns/scanners/grub.py +88 -0
- linux_autoruns-2.9.1/src/linux_autoruns/scanners/inetd.py +128 -0
- linux_autoruns-2.9.1/src/linux_autoruns/scanners/init.py +127 -0
- linux_autoruns-2.9.1/src/linux_autoruns/scanners/kernel.py +90 -0
- linux_autoruns-2.9.1/src/linux_autoruns/scanners/network_services.py +139 -0
- linux_autoruns-2.9.1/src/linux_autoruns/scanners/pam.py +66 -0
- linux_autoruns-2.9.1/src/linux_autoruns/scanners/shell.py +95 -0
- linux_autoruns-2.9.1/src/linux_autoruns/scanners/systemd.py +160 -0
- linux_autoruns-2.9.1/src/linux_autoruns/scanners/tmpfiles.py +69 -0
- linux_autoruns-2.9.1/src/linux_autoruns/scanners/udev.py +85 -0
- linux_autoruns-2.9.1/src/linux_autoruns/scanners/x11.py +77 -0
- linux_autoruns-2.9.1/src/linux_autoruns/scanners/xdg.py +96 -0
- linux_autoruns-2.9.1/tests/__init__.py +0 -0
- linux_autoruns-2.9.1/tests/conftest.py +60 -0
- linux_autoruns-2.9.1/tests/test_models.py +54 -0
- linux_autoruns-2.9.1/tests/test_scanner.py +122 -0
- linux_autoruns-2.9.1/tests/test_scanners/__init__.py +0 -0
- linux_autoruns-2.9.1/tests/test_scanners/test_cron.py +51 -0
- linux_autoruns-2.9.1/tests/test_scanners/test_init.py +58 -0
- linux_autoruns-2.9.1/tests/test_scanners/test_systemd.py +79 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
build:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
|
|
18
|
+
- name: Set up Python
|
|
19
|
+
uses: actions/setup-python@v5
|
|
20
|
+
with:
|
|
21
|
+
python-version: "3.14"
|
|
22
|
+
|
|
23
|
+
- name: Install build dependencies
|
|
24
|
+
run: pip install build
|
|
25
|
+
|
|
26
|
+
- name: Build package
|
|
27
|
+
run: python -m build
|
|
28
|
+
|
|
29
|
+
- name: Upload build artifacts
|
|
30
|
+
uses: actions/upload-artifact@v4
|
|
31
|
+
with:
|
|
32
|
+
name: dist
|
|
33
|
+
path: dist/
|
|
34
|
+
|
|
35
|
+
publish:
|
|
36
|
+
needs: build
|
|
37
|
+
runs-on: ubuntu-latest
|
|
38
|
+
environment: pypi
|
|
39
|
+
permissions:
|
|
40
|
+
id-token: write
|
|
41
|
+
steps:
|
|
42
|
+
- name: Download build artifacts
|
|
43
|
+
uses: actions/download-artifact@v4
|
|
44
|
+
with:
|
|
45
|
+
name: dist
|
|
46
|
+
path: dist/
|
|
47
|
+
|
|
48
|
+
- name: Publish to PyPI
|
|
49
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[codz]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py.cover
|
|
50
|
+
*.lcov
|
|
51
|
+
.hypothesis/
|
|
52
|
+
.pytest_cache/
|
|
53
|
+
cover/
|
|
54
|
+
|
|
55
|
+
# Translations
|
|
56
|
+
*.mo
|
|
57
|
+
*.pot
|
|
58
|
+
|
|
59
|
+
# Django stuff:
|
|
60
|
+
*.log
|
|
61
|
+
local_settings.py
|
|
62
|
+
db.sqlite3
|
|
63
|
+
db.sqlite3-journal
|
|
64
|
+
|
|
65
|
+
# Flask stuff:
|
|
66
|
+
instance/
|
|
67
|
+
.webassets-cache
|
|
68
|
+
|
|
69
|
+
# Scrapy stuff:
|
|
70
|
+
.scrapy
|
|
71
|
+
|
|
72
|
+
# Sphinx documentation
|
|
73
|
+
docs/_build/
|
|
74
|
+
|
|
75
|
+
# PyBuilder
|
|
76
|
+
.pybuilder/
|
|
77
|
+
target/
|
|
78
|
+
|
|
79
|
+
# Jupyter Notebook
|
|
80
|
+
.ipynb_checkpoints
|
|
81
|
+
|
|
82
|
+
# IPython
|
|
83
|
+
profile_default/
|
|
84
|
+
ipython_config.py
|
|
85
|
+
|
|
86
|
+
# pyenv
|
|
87
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
88
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
89
|
+
# .python-version
|
|
90
|
+
|
|
91
|
+
# pipenv
|
|
92
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
93
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
94
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
95
|
+
# install all needed dependencies.
|
|
96
|
+
# Pipfile.lock
|
|
97
|
+
|
|
98
|
+
# UV
|
|
99
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
100
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
101
|
+
# commonly ignored for libraries.
|
|
102
|
+
# uv.lock
|
|
103
|
+
|
|
104
|
+
# poetry
|
|
105
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
106
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
107
|
+
# commonly ignored for libraries.
|
|
108
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
109
|
+
# poetry.lock
|
|
110
|
+
# poetry.toml
|
|
111
|
+
|
|
112
|
+
# pdm
|
|
113
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
114
|
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
115
|
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
116
|
+
# pdm.lock
|
|
117
|
+
# pdm.toml
|
|
118
|
+
.pdm-python
|
|
119
|
+
.pdm-build/
|
|
120
|
+
|
|
121
|
+
# pixi
|
|
122
|
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
123
|
+
# pixi.lock
|
|
124
|
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
125
|
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
126
|
+
.pixi/*
|
|
127
|
+
!.pixi/config.toml
|
|
128
|
+
|
|
129
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
130
|
+
__pypackages__/
|
|
131
|
+
|
|
132
|
+
# Celery stuff
|
|
133
|
+
celerybeat-schedule*
|
|
134
|
+
celerybeat.pid
|
|
135
|
+
|
|
136
|
+
# Redis
|
|
137
|
+
*.rdb
|
|
138
|
+
*.aof
|
|
139
|
+
*.pid
|
|
140
|
+
|
|
141
|
+
# RabbitMQ
|
|
142
|
+
mnesia/
|
|
143
|
+
rabbitmq/
|
|
144
|
+
rabbitmq-data/
|
|
145
|
+
|
|
146
|
+
# ActiveMQ
|
|
147
|
+
activemq-data/
|
|
148
|
+
|
|
149
|
+
# SageMath parsed files
|
|
150
|
+
*.sage.py
|
|
151
|
+
|
|
152
|
+
# Environments
|
|
153
|
+
.env
|
|
154
|
+
.envrc
|
|
155
|
+
.venv
|
|
156
|
+
env/
|
|
157
|
+
venv/
|
|
158
|
+
ENV/
|
|
159
|
+
env.bak/
|
|
160
|
+
venv.bak/
|
|
161
|
+
|
|
162
|
+
# Spyder project settings
|
|
163
|
+
.spyderproject
|
|
164
|
+
.spyproject
|
|
165
|
+
|
|
166
|
+
# Rope project settings
|
|
167
|
+
.ropeproject
|
|
168
|
+
|
|
169
|
+
# mkdocs documentation
|
|
170
|
+
/site
|
|
171
|
+
|
|
172
|
+
# mypy
|
|
173
|
+
.mypy_cache/
|
|
174
|
+
.dmypy.json
|
|
175
|
+
dmypy.json
|
|
176
|
+
|
|
177
|
+
# Pyre type checker
|
|
178
|
+
.pyre/
|
|
179
|
+
|
|
180
|
+
# pytype static type analyzer
|
|
181
|
+
.pytype/
|
|
182
|
+
|
|
183
|
+
# Cython debug symbols
|
|
184
|
+
cython_debug/
|
|
185
|
+
|
|
186
|
+
# PyCharm
|
|
187
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
188
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
189
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
190
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
191
|
+
# .idea/
|
|
192
|
+
|
|
193
|
+
# Abstra
|
|
194
|
+
# Abstra is an AI-powered process automation framework.
|
|
195
|
+
# Ignore directories containing user credentials, local state, and settings.
|
|
196
|
+
# Learn more at https://abstra.io/docs
|
|
197
|
+
.abstra/
|
|
198
|
+
|
|
199
|
+
# Visual Studio Code
|
|
200
|
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
|
|
201
|
+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
202
|
+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
|
203
|
+
# you could uncomment the following to ignore the entire vscode folder
|
|
204
|
+
# .vscode/
|
|
205
|
+
# Temporary file for partial code execution
|
|
206
|
+
tempCodeRunnerFile.py
|
|
207
|
+
|
|
208
|
+
# Ruff stuff:
|
|
209
|
+
.ruff_cache/
|
|
210
|
+
|
|
211
|
+
# PyPI configuration file
|
|
212
|
+
.pypirc
|
|
213
|
+
|
|
214
|
+
# Marimo
|
|
215
|
+
marimo/_static/
|
|
216
|
+
marimo/_lsp/
|
|
217
|
+
__marimo__/
|
|
218
|
+
|
|
219
|
+
# Streamlit
|
|
220
|
+
.streamlit/secrets.toml
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
AGENTS.md
|
|
224
|
+
uv.lock
|
|
225
|
+
autoruns_export.json
|
|
226
|
+
autoruns_export.csv
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.14
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Lunixizm0
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: linux-autoruns
|
|
3
|
+
Version: 2.9.1
|
|
4
|
+
Summary: Windows Autoruns equivalent for Linux. Scans all autostart entry points.
|
|
5
|
+
Project-URL: Homepage, https://github.com/Lunixizm0/linux-autoruns
|
|
6
|
+
Project-URL: Repository, https://github.com/Lunixizm0/linux-autoruns
|
|
7
|
+
Project-URL: Issues, https://github.com/Lunixizm0/linux-autoruns/issues
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Keywords: audit,autoruns,autostart,cron,linux,security,systemd
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Environment :: X11 Applications
|
|
13
|
+
Classifier: Intended Audience :: System Administrators
|
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
17
|
+
Classifier: Topic :: Security
|
|
18
|
+
Classifier: Topic :: System :: Systems Administration
|
|
19
|
+
Classifier: Topic :: Utilities
|
|
20
|
+
Requires-Python: >=3.14
|
|
21
|
+
Requires-Dist: pyside6>=6.11.2
|
|
22
|
+
Provides-Extra: test
|
|
23
|
+
Requires-Dist: pytest>=8.0; extra == 'test'
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
|
|
26
|
+
# linux-autoruns
|
|
27
|
+
|
|
28
|
+
Sysinternals Autoruns'un Linux alternatifi. Sisteminizdeki tüm otomatik başlama noktarını tarar ve PySide6 GUI'de listeler.
|
|
29
|
+
|
|
30
|
+
## Özellikler
|
|
31
|
+
|
|
32
|
+
- 16 scanner: XDG Autostart, Systemd, SysVinit, Cron, Shell Profile, X11, Desktop Environment (GNOME, KDE, XFCE, Sway, Hyprland, Cinnamon, MATE, LXQt, COSMIC), Udev, D-Bus, Display Manager, Kernel (sysctl), Network Services (NGINX/Apache/SSH), PAM, tmpfiles.d, inetd/xinetd, GRUB
|
|
33
|
+
- Grafik Arayüzü
|
|
34
|
+
- Kategori bazlı filtreleme ve arama
|
|
35
|
+
- Detay popup (sağ tık Inspect Details)
|
|
36
|
+
- JSON ve CSV export
|
|
37
|
+
- Düzenleme modu (enable/disable toggle)
|
|
38
|
+
- Ayarların hatırlanması (pencere boyutu)
|
|
39
|
+
- Root yetkisi ile otomatik yeniden başlatma (sudo)
|
|
40
|
+
|
|
41
|
+
## Kurulum
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
pip install linux-autoruns
|
|
45
|
+
# veya
|
|
46
|
+
pipx install linux-autoruns
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Çalıştırma
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
linux-autoruns # root değilse sudo dialogu açar
|
|
53
|
+
sudo linux-autoruns # root ile doğrudan başlat
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Geliştirme
|
|
57
|
+
|
|
58
|
+
Geliştirme ortamı için uv kullanılır:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
git clone https://github.com/Lunixizm0/linux-autoruns.git
|
|
62
|
+
cd linux-autoruns
|
|
63
|
+
uv sync # ortamı kur
|
|
64
|
+
uv run linux-autoruns # uygulamayı çalıştır
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Testler
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
uv run pytest tests/ -v
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Paketleme
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
uv run python -m build # sdist + wheel oluşturur
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## Teknoloji
|
|
80
|
+
|
|
81
|
+
- Python 3.14
|
|
82
|
+
- PySide6 6.11+ (Qt6 GUI)
|
|
83
|
+
- hatchling (build backend)
|
|
84
|
+
- uv (geliştirme ortamı)
|
|
85
|
+
- pytest (test framework)
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# linux-autoruns
|
|
2
|
+
|
|
3
|
+
Sysinternals Autoruns'un Linux alternatifi. Sisteminizdeki tüm otomatik başlama noktarını tarar ve PySide6 GUI'de listeler.
|
|
4
|
+
|
|
5
|
+
## Özellikler
|
|
6
|
+
|
|
7
|
+
- 16 scanner: XDG Autostart, Systemd, SysVinit, Cron, Shell Profile, X11, Desktop Environment (GNOME, KDE, XFCE, Sway, Hyprland, Cinnamon, MATE, LXQt, COSMIC), Udev, D-Bus, Display Manager, Kernel (sysctl), Network Services (NGINX/Apache/SSH), PAM, tmpfiles.d, inetd/xinetd, GRUB
|
|
8
|
+
- Grafik Arayüzü
|
|
9
|
+
- Kategori bazlı filtreleme ve arama
|
|
10
|
+
- Detay popup (sağ tık Inspect Details)
|
|
11
|
+
- JSON ve CSV export
|
|
12
|
+
- Düzenleme modu (enable/disable toggle)
|
|
13
|
+
- Ayarların hatırlanması (pencere boyutu)
|
|
14
|
+
- Root yetkisi ile otomatik yeniden başlatma (sudo)
|
|
15
|
+
|
|
16
|
+
## Kurulum
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
pip install linux-autoruns
|
|
20
|
+
# veya
|
|
21
|
+
pipx install linux-autoruns
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Çalıştırma
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
linux-autoruns # root değilse sudo dialogu açar
|
|
28
|
+
sudo linux-autoruns # root ile doğrudan başlat
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Geliştirme
|
|
32
|
+
|
|
33
|
+
Geliştirme ortamı için uv kullanılır:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
git clone https://github.com/Lunixizm0/linux-autoruns.git
|
|
37
|
+
cd linux-autoruns
|
|
38
|
+
uv sync # ortamı kur
|
|
39
|
+
uv run linux-autoruns # uygulamayı çalıştır
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Testler
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
uv run pytest tests/ -v
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Paketleme
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
uv run python -m build # sdist + wheel oluşturur
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Teknoloji
|
|
55
|
+
|
|
56
|
+
- Python 3.14
|
|
57
|
+
- PySide6 6.11+ (Qt6 GUI)
|
|
58
|
+
- hatchling (build backend)
|
|
59
|
+
- uv (geliştirme ortamı)
|
|
60
|
+
- pytest (test framework)
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "linux-autoruns"
|
|
3
|
+
version = "2.9.1"
|
|
4
|
+
description = "Windows Autoruns equivalent for Linux. Scans all autostart entry points."
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.14"
|
|
7
|
+
license = "MIT"
|
|
8
|
+
keywords = ["autostart", "autoruns", "linux", "security", "audit", "systemd", "cron"]
|
|
9
|
+
classifiers = [
|
|
10
|
+
"Development Status :: 4 - Beta",
|
|
11
|
+
"Environment :: X11 Applications",
|
|
12
|
+
"Intended Audience :: System Administrators",
|
|
13
|
+
"License :: OSI Approved :: MIT License",
|
|
14
|
+
"Operating System :: POSIX :: Linux",
|
|
15
|
+
"Programming Language :: Python :: 3.14",
|
|
16
|
+
"Topic :: Security",
|
|
17
|
+
"Topic :: System :: Systems Administration",
|
|
18
|
+
"Topic :: Utilities",
|
|
19
|
+
]
|
|
20
|
+
dependencies = [
|
|
21
|
+
"pyside6>=6.11.2",
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
[project.optional-dependencies]
|
|
25
|
+
test = [
|
|
26
|
+
"pytest>=8.0",
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
[project.urls]
|
|
30
|
+
Homepage = "https://github.com/Lunixizm0/linux-autoruns"
|
|
31
|
+
Repository = "https://github.com/Lunixizm0/linux-autoruns"
|
|
32
|
+
Issues = "https://github.com/Lunixizm0/linux-autoruns/issues"
|
|
33
|
+
|
|
34
|
+
[project.scripts]
|
|
35
|
+
linux-autoruns = "linux_autoruns:main"
|
|
36
|
+
|
|
37
|
+
[tool.pytest.ini_options]
|
|
38
|
+
testpaths = ["tests"]
|
|
39
|
+
|
|
40
|
+
[build-system]
|
|
41
|
+
requires = ["hatchling"]
|
|
42
|
+
build-backend = "hatchling.build"
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -euo pipefail
|
|
3
|
+
|
|
4
|
+
VERSION="${1:?Kullanım: ./release.sh 2.9.0}"
|
|
5
|
+
TAG="v${VERSION}"
|
|
6
|
+
|
|
7
|
+
echo "→ pyproject.toml güncelleniyor..."
|
|
8
|
+
sed -i "s/^version = .*/version = \"${VERSION}\"/" pyproject.toml
|
|
9
|
+
|
|
10
|
+
echo "→ Testler çalıştırılıyor..."
|
|
11
|
+
uv run pytest tests/ -v
|
|
12
|
+
|
|
13
|
+
echo "→ Commit ediliyor..."
|
|
14
|
+
git add pyproject.toml
|
|
15
|
+
git commit -m "release: ${TAG}"
|
|
16
|
+
|
|
17
|
+
echo "→ Tag oluşturuluyor..."
|
|
18
|
+
git tag "${TAG}"
|
|
19
|
+
|
|
20
|
+
echo "→ Push ediliyor..."
|
|
21
|
+
git push origin master "${TAG}"
|
|
22
|
+
|
|
23
|
+
echo "→ GitHub Release oluşturuluyor..."
|
|
24
|
+
gh release create "${TAG}" \
|
|
25
|
+
--title "${TAG}" \
|
|
26
|
+
--generate-notes
|
|
27
|
+
|
|
28
|
+
echo ""
|
|
29
|
+
echo "✓ ${TAG} yayınlandı! GitHub Actions PyPI'ya yüklüyor."
|
|
30
|
+
echo " https://github.com/Lunixizm0/linux-autoruns/actions"
|
|
31
|
+
echo " https://pypi.org/project/linux-autoruns/${VERSION}/"
|
|
File without changes
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from pathlib import Path
|
|
4
|
+
|
|
5
|
+
from PySide6.QtCore import Qt
|
|
6
|
+
from PySide6.QtGui import QFont
|
|
7
|
+
from PySide6.QtWidgets import (QApplication, QDialog, QGroupBox, QLabel,
|
|
8
|
+
QPlainTextEdit, QPushButton, QScrollArea,
|
|
9
|
+
QVBoxLayout, QWidget)
|
|
10
|
+
|
|
11
|
+
from ..models import AutostartEntry
|
|
12
|
+
from .theme import DARK_THEME_QSS
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class DetailDialog(QDialog):
|
|
16
|
+
def __init__(self, entry: AutostartEntry, parent=None):
|
|
17
|
+
super().__init__(parent)
|
|
18
|
+
self.setWindowTitle(f"Entry Detail: {entry.name}")
|
|
19
|
+
self.setMinimumSize(550, 500)
|
|
20
|
+
self.setMaximumSize(700, 900)
|
|
21
|
+
self.setStyleSheet(DARK_THEME_QSS)
|
|
22
|
+
scroll = QScrollArea(self)
|
|
23
|
+
scroll.setWidgetResizable(True)
|
|
24
|
+
container = QWidget()
|
|
25
|
+
layout = QVBoxLayout(container)
|
|
26
|
+
layout.setSpacing(8)
|
|
27
|
+
layout.setContentsMargins(12, 12, 12, 12)
|
|
28
|
+
self._add_section(layout, "Genel Bilgiler", self._general_fields(entry))
|
|
29
|
+
if entry.command:
|
|
30
|
+
self._add_section(layout, "Komut", {"Command": entry.command})
|
|
31
|
+
if entry.exec_args:
|
|
32
|
+
self._add_section(layout, "Argümanlar", {"Args": " ".join(entry.exec_args)})
|
|
33
|
+
if entry.tags:
|
|
34
|
+
self._add_section(layout, "Etiketler", {"Tags": ", ".join(entry.tags)})
|
|
35
|
+
if entry.details:
|
|
36
|
+
detail_items = {}
|
|
37
|
+
for k, v in entry.details.items():
|
|
38
|
+
if isinstance(v, list):
|
|
39
|
+
detail_items[k] = ", ".join(str(i) for i in v)
|
|
40
|
+
else:
|
|
41
|
+
detail_items[k] = str(v)
|
|
42
|
+
self._add_section(layout, "Detaylar", detail_items)
|
|
43
|
+
if entry.file_path:
|
|
44
|
+
content = self._read_raw_content(entry.file_path)
|
|
45
|
+
if content:
|
|
46
|
+
group = QGroupBox("Ham İçerik")
|
|
47
|
+
vbox = QVBoxLayout()
|
|
48
|
+
text_edit = QPlainTextEdit()
|
|
49
|
+
text_edit.setPlainText(content)
|
|
50
|
+
text_edit.setReadOnly(True)
|
|
51
|
+
text_edit.setMaximumHeight(300)
|
|
52
|
+
mono = QFont("monospace")
|
|
53
|
+
mono.setStyleHint(QFont.Monospace)
|
|
54
|
+
text_edit.setFont(mono)
|
|
55
|
+
copy_btn = QPushButton("Kopyala")
|
|
56
|
+
copy_btn.clicked.connect(lambda: QApplication.clipboard().setText(content))
|
|
57
|
+
btn_row = QVBoxLayout()
|
|
58
|
+
btn_row.addWidget(copy_btn)
|
|
59
|
+
btn_row.addStretch()
|
|
60
|
+
hbox = QVBoxLayout()
|
|
61
|
+
hbox.addWidget(text_edit)
|
|
62
|
+
hbox.addLayout(btn_row)
|
|
63
|
+
vbox.addLayout(hbox)
|
|
64
|
+
group.setLayout(vbox)
|
|
65
|
+
layout.addWidget(group)
|
|
66
|
+
layout.addStretch()
|
|
67
|
+
scroll.setWidget(container)
|
|
68
|
+
main_layout = QVBoxLayout(self)
|
|
69
|
+
main_layout.setContentsMargins(0, 0, 0, 0)
|
|
70
|
+
main_layout.addWidget(scroll)
|
|
71
|
+
|
|
72
|
+
def _general_fields(self, entry: AutostartEntry) -> dict:
|
|
73
|
+
fields = {}
|
|
74
|
+
fields["Kategori"] = entry.category
|
|
75
|
+
fields["Dosya"] = entry.file_path
|
|
76
|
+
fields["Ad"] = entry.name
|
|
77
|
+
fields["Durum"] = "+ Aktif" if entry.enabled else "- Pasif"
|
|
78
|
+
if entry.user:
|
|
79
|
+
fields["Kullanıcı"] = entry.user
|
|
80
|
+
fields["Scope"] = entry.scope
|
|
81
|
+
if entry.description:
|
|
82
|
+
fields["Tanım"] = entry.description
|
|
83
|
+
if entry.comment:
|
|
84
|
+
fields["Not"] = entry.comment
|
|
85
|
+
if entry.last_modified:
|
|
86
|
+
fields["Değişim"] = entry.last_modified
|
|
87
|
+
if entry.file_size is not None:
|
|
88
|
+
size = entry.file_size
|
|
89
|
+
if size > 1024:
|
|
90
|
+
fields["Boyut"] = f"{size / 1024:.1f} KB"
|
|
91
|
+
else:
|
|
92
|
+
fields["Boyut"] = f"{size} B"
|
|
93
|
+
if entry.file_permissions:
|
|
94
|
+
fields["İzinler"] = entry.file_permissions
|
|
95
|
+
if entry.owner:
|
|
96
|
+
fields["Sahip"] = entry.owner
|
|
97
|
+
return fields
|
|
98
|
+
|
|
99
|
+
def _add_section(self, layout: QVBoxLayout, title: str, items: dict):
|
|
100
|
+
group = QGroupBox(title)
|
|
101
|
+
vbox = QVBoxLayout()
|
|
102
|
+
for key, value in items.items():
|
|
103
|
+
lbl_key = QLabel(f"{key}:")
|
|
104
|
+
lbl_val = QLabel(str(value))
|
|
105
|
+
lbl_val.setWordWrap(True)
|
|
106
|
+
lbl_val.setTextInteractionFlags(Qt.TextSelectableByMouse)
|
|
107
|
+
btn = QPushButton("Kopyala")
|
|
108
|
+
btn.clicked.connect(lambda checked, v=str(value): QApplication.clipboard().setText(v))
|
|
109
|
+
top_row = QVBoxLayout()
|
|
110
|
+
top_row.addWidget(lbl_key)
|
|
111
|
+
top_row.addWidget(btn)
|
|
112
|
+
h = QVBoxLayout()
|
|
113
|
+
h.addLayout(top_row)
|
|
114
|
+
h.addWidget(lbl_val)
|
|
115
|
+
vbox.addLayout(h)
|
|
116
|
+
group.setLayout(vbox)
|
|
117
|
+
layout.addWidget(group)
|
|
118
|
+
|
|
119
|
+
def _read_raw_content(self, path: str) -> str | None:
|
|
120
|
+
try:
|
|
121
|
+
return Path(path).read_text(encoding="utf-8", errors="replace")
|
|
122
|
+
except (OSError, PermissionError):
|
|
123
|
+
return None
|