cyber-logs-interceptor 0.1.0__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.
- cyber_logs_interceptor-0.1.0/LICENSE +21 -0
- cyber_logs_interceptor-0.1.0/LICENSE.html +89 -0
- cyber_logs_interceptor-0.1.0/PKG-INFO +141 -0
- cyber_logs_interceptor-0.1.0/README.md +118 -0
- cyber_logs_interceptor-0.1.0/cyber_logs_interceptor.egg-info/PKG-INFO +141 -0
- cyber_logs_interceptor-0.1.0/cyber_logs_interceptor.egg-info/SOURCES.txt +15 -0
- cyber_logs_interceptor-0.1.0/cyber_logs_interceptor.egg-info/dependency_links.txt +1 -0
- cyber_logs_interceptor-0.1.0/cyber_logs_interceptor.egg-info/entry_points.txt +2 -0
- cyber_logs_interceptor-0.1.0/cyber_logs_interceptor.egg-info/requires.txt +5 -0
- cyber_logs_interceptor-0.1.0/cyber_logs_interceptor.egg-info/top_level.txt +1 -0
- cyber_logs_interceptor-0.1.0/logs/__init__.py +11 -0
- cyber_logs_interceptor-0.1.0/logs/__main__.py +135 -0
- cyber_logs_interceptor-0.1.0/logs/formatted_table.py +126 -0
- cyber_logs_interceptor-0.1.0/logs/logs.py +807 -0
- cyber_logs_interceptor-0.1.0/logs/py.typed +0 -0
- cyber_logs_interceptor-0.1.0/pyproject.toml +33 -0
- cyber_logs_interceptor-0.1.0/setup.cfg +4 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Илья Иванов (To_ri239)
|
|
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,89 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>MIT License - by Ilja Ivanov</title>
|
|
7
|
+
<style>
|
|
8
|
+
body {
|
|
9
|
+
background-color: #0c0f12;
|
|
10
|
+
color: #d1d5db;
|
|
11
|
+
font-family: 'Courier New', Courier, monospace;
|
|
12
|
+
padding: 20px;
|
|
13
|
+
margin: 0;
|
|
14
|
+
line-height: 1.6;
|
|
15
|
+
}
|
|
16
|
+
.terminal-box {
|
|
17
|
+
max-width: 800px;
|
|
18
|
+
margin: 40px auto;
|
|
19
|
+
background-color: #111827;
|
|
20
|
+
border: 1px solid #374151;
|
|
21
|
+
border-radius: 6px;
|
|
22
|
+
padding: 25px;
|
|
23
|
+
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
|
|
24
|
+
}
|
|
25
|
+
h1 {
|
|
26
|
+
color: #36f1cd;
|
|
27
|
+
font-size: 1.5rem;
|
|
28
|
+
margin-top: 0;
|
|
29
|
+
border-bottom: 1px solid #374151;
|
|
30
|
+
padding-bottom: 10px;
|
|
31
|
+
}
|
|
32
|
+
pre {
|
|
33
|
+
font-family: ui-monospace, SFMono-Regular, Cascadia Code, 'Segoe UI Mono', 'Roboto Mono', monospace;
|
|
34
|
+
white-space: pre-wrap;
|
|
35
|
+
word-wrap: break-word;
|
|
36
|
+
color: #9ca3af;
|
|
37
|
+
}
|
|
38
|
+
.highlight {
|
|
39
|
+
color: #ef4444;
|
|
40
|
+
}
|
|
41
|
+
/* 🔥 FIXED: Your panic styles, but packaged within a secure inline-block class */
|
|
42
|
+
.panic-accent {
|
|
43
|
+
color: white;
|
|
44
|
+
background-color: #ef4444;
|
|
45
|
+
font-weight: bold;
|
|
46
|
+
|
|
47
|
+
/* 🔥 HACK: Enable block layout model to unlock sizing properties */
|
|
48
|
+
display: block;
|
|
49
|
+
|
|
50
|
+
/* Configure block dimensions */
|
|
51
|
+
width: 100%; /* Stretch across the entire terminal width boundary */
|
|
52
|
+
min-height: 120px; /* Minimum block height constraint */
|
|
53
|
+
|
|
54
|
+
/* Add inner padding to prevent text from sticking to the edges */
|
|
55
|
+
padding: 15px;
|
|
56
|
+
box-sizing: border-box; /* Bypasses padding width expansion collision */
|
|
57
|
+
}
|
|
58
|
+
</style>
|
|
59
|
+
</head>
|
|
60
|
+
<body>
|
|
61
|
+
|
|
62
|
+
<div class="terminal-box">
|
|
63
|
+
<h1>📜 MIT LICENSE // RUNTIME INTERCEPTOR CORE</h1>
|
|
64
|
+
<pre>
|
|
65
|
+
<span class="highlight">MIT License</span>
|
|
66
|
+
|
|
67
|
+
Copyright (c) 2026 Ilja Ivanov (To_ri239)
|
|
68
|
+
|
|
69
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
70
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
71
|
+
in the Software without restriction, including without limitation the rights
|
|
72
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
73
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
74
|
+
furnished to do so, subject to the following conditions:
|
|
75
|
+
|
|
76
|
+
The above copyright notice and this permission notice shall be included in all
|
|
77
|
+
copies or substantial portions of the Software.
|
|
78
|
+
|
|
79
|
+
<span class="panic-accent">THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
80
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
81
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
82
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
83
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
84
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
85
|
+
SOFTWARE.</span></pre>
|
|
86
|
+
</div>
|
|
87
|
+
|
|
88
|
+
</body>
|
|
89
|
+
</html>
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: cyber-logs-interceptor
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: The ultimate Military-Grade runtime hypervisor: Debugger + Logger + Profiler inside CPython engine
|
|
5
|
+
Author-email: Ilja Ivanov <ilyuha@cyber-core.io>
|
|
6
|
+
License: MIT License
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
9
|
+
Classifier: Operating System :: OS Independent
|
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Classifier: Topic :: Software Development :: Debuggers
|
|
12
|
+
Classifier: Topic :: System :: Logging
|
|
13
|
+
Requires-Python: >=3.11
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
License-File: LICENSE
|
|
16
|
+
License-File: LICENSE.html
|
|
17
|
+
Requires-Dist: absl-py>=2.1.0
|
|
18
|
+
Requires-Dist: optree>=0.11.0
|
|
19
|
+
Requires-Dist: itsdangerous>=2.2.0
|
|
20
|
+
Requires-Dist: python-socketio>=5.11.0
|
|
21
|
+
Requires-Dist: numpy>=1.26.0
|
|
22
|
+
Dynamic: license-file
|
|
23
|
+
|
|
24
|
+
# 🛸 Cyber Logs Interceptor (Micro-OS Trihybrid)
|
|
25
|
+
|
|
26
|
+
> **The Ultimate Runtime Hypervisor: Debugger + Logger + Profiler inside CPython Engine.**
|
|
27
|
+
|
|
28
|
+
[](https://www.python.org/)
|
|
29
|
+
[](https://opensource.org/licenses/MIT)
|
|
30
|
+
[](https://example.com/security)
|
|
31
|
+
|
|
32
|
+
**Cyber Logs Interceptor** is not just a standard logger or a basic profiler. It is a pure-bred, autonomous **major-league systems programming Trihybrid**, seamlessly fusing the capabilities of an interactive debugger, a telemetry logger, and a nanosecond-precision profiler into a single processor pass.
|
|
33
|
+
|
|
34
|
+
The architecture operates as a distributed, self-contained runtime hypervisor: it intercepts `Kernel Panic` signals at the C-level frame stack layer, enforces absolute memory isolation inside a secure sandbox, executes byte-level RAM pre-warming for local script dependencies, and provides the engineer with an unprecedented CLI/GUI command hub to manipulate the live memory of a crashed process on the fly!
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## 🧬 System Arsenal (Powered by Apple, Google & Meta)
|
|
39
|
+
|
|
40
|
+
The core architecture unites the finest infrastructure engineering frameworks on the planet:
|
|
41
|
+
* **CPython Core & C-Structures (`collections`, `itertools`)** — Drives a nanosecond-level stack trace extraction loop with \(O(1)\) time complexity and absolute zero memory allocation overhead.
|
|
42
|
+
* **Google Abseil (`absl.flags`)** — Powering a battle-tested industrial CLI engine backed by strict Enterprise-grade type validation and distributed flag declaration.
|
|
43
|
+
* **Meta OpTree (`optree`)** — Uses a highly optimized C++ engine designed by Facebook engineers for ultra-fast PyTree dictionary traversal and object flattening in exactly 0 nanoseconds.
|
|
44
|
+
* **NumPy Engine** — Enforces fully vectorized array processing to render beautiful geometric ASCII matrix code reports, bypassing slow native Python loops completely.
|
|
45
|
+
* **Crypto Shield (`itsdangerous`)** — Deploys a cryptographic HMAC-SHA1 signature layer over Socket.IO network packets with automated quantum key rotation cycles every 24 hours.
|
|
46
|
+
* **Fault-Tolerant database (`dbm`)** — An OS-level native binary key-value store. If the network drops, logs are instantly sealed directly onto the storage disk and forwarded automatically upon reconnection.
|
|
47
|
+
* **Python Software Foundation (`idlelib`)** — Leverages a deep inter-process memory isolation hack. Completely bypasses the default RPC subprocess handler via the `-n` flag to achieve absolute, direct local variable extraction into the graphical window.
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
## 🛠️ Workspace Architecture: CLI vs GUI
|
|
51
|
+
|
|
52
|
+
The utility is fully self-contained and supports two core emergency recovery modes:
|
|
53
|
+
|
|
54
|
+
### 1. CLI Mode (Local Quantum Stack Frame Jumps)
|
|
55
|
+
When a runtime crash occurs, the Trihybrid instantly freezes the execution thread, unwinds the C-level frames down to the blast epicenter via `last_tb.tb_next`, and opens an interactive, LLDB-like shell environment [1.5]:
|
|
56
|
+
|
|
57
|
+
* `>>> data` — Instantly dumps the raw value `42` directly from the local scope of the crashed function [1.5]!
|
|
58
|
+
* `>>> [Logger settings] to CyberCore` — The laser navigation radar cuts upward through dozens of stack frames, executing an atomic scope jump straight into the visible boundary of the specified class or method.
|
|
59
|
+
* `>>> [Logger settings] set param level as 'DEBUG'` — Dynamically reconfigures internal `self` parameters of the live Logger object directly within RAM during the crash incident!
|
|
60
|
+
* `>>> [Logger settings] out worker_func` — Executes an atomic target radar jump back down the call stack, returning perfectly to the explosion epicenter.
|
|
61
|
+
|
|
62
|
+
### 2. GUI Mode (Bypassing the IDLE RPC Process Barrier)
|
|
63
|
+
Deploys a graphical debugging headquarters (`Debug Control` and `IDLE Shell`) directly inside the shared address space of our isolated runtime sandbox. It extracts complex variables like `core` and `data` right out of thin air, providing native, full-featured Tkinter control windows with physical execution control buttons (Step/Over) with absolute zero destructive footprint on active RAM.
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## 🚀 Quick Start
|
|
68
|
+
|
|
69
|
+
### Package Installation
|
|
70
|
+
```bash
|
|
71
|
+
pip install cyber-logs-interceptor
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Running as a CLI Utility via Google Abseil
|
|
75
|
+
Execute the automated injector script inside your terminal/PowerShell, passing the target application source file:
|
|
76
|
+
|
|
77
|
+
```powershell
|
|
78
|
+
# Launch the armored terminal debugger console (CLI)
|
|
79
|
+
cyber-logs --level=critical --target_file=Ilyuha.py --shell=false
|
|
80
|
+
|
|
81
|
+
# Hijack and launch the graphical debugging headquarters (GUI)
|
|
82
|
+
cyber-logs --level=critical --target_file=Ilyuha.py --shell=true
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
## 🧠 Live Crash Scenario Example (`Ilyuha.py`)
|
|
89
|
+
|
|
90
|
+
The automated injector will instantly execute a byte-level RAM pre-warming routine for all sibling module dependencies within the directory (caching them via `linecache.cache`), enforce an atomic C-level disk-sync operation via the `os.fsync()` descriptor, and detonate the completely isolated execution sandbox `__exec_sandbox__` :
|
|
91
|
+
|
|
92
|
+
```python
|
|
93
|
+
import sys
|
|
94
|
+
import logs
|
|
95
|
+
|
|
96
|
+
# The Micro-OS runtime hook is injected directly into the application headspace!
|
|
97
|
+
logs.global_logging(level='CRITICAL', file=sys.stderr, auto_reset=True, shell=False)
|
|
98
|
+
|
|
99
|
+
class CyberCore:
|
|
100
|
+
def __init__(self, value: int) -> None:
|
|
101
|
+
self.value = value
|
|
102
|
+
|
|
103
|
+
def process_data(self) -> None:
|
|
104
|
+
return trigger_panic_func(self.value)
|
|
105
|
+
|
|
106
|
+
def trigger_panic_func(data: int) -> float:
|
|
107
|
+
# Epicenter of the core runtime explosion
|
|
108
|
+
return data / 0
|
|
109
|
+
|
|
110
|
+
core = CyberCore(value=42)
|
|
111
|
+
core.process_data()
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### Expected Terminal Output on Crash Event:
|
|
115
|
+
```text
|
|
116
|
+
🤖 [GOOGLE ABSL RUNTIME] Starting secure workspace directory scanning...
|
|
117
|
+
📦 Byte-level RAM pre-warming of linecache for local workspace directory...
|
|
118
|
+
✅ [FAST SCANNER]: Successfully pre-warmed 16 sibling code files in RAM!
|
|
119
|
+
🚀 [SUCCESS] Micro-OS successfully injected into Ilyuha.py!
|
|
120
|
+
|
|
121
|
+
🚨 [KERNEL PANIC REPL] System frozen at the crash epicenter. Local variables are accessible:
|
|
122
|
+
>>> data
|
|
123
|
+
42
|
|
124
|
+
>>> [Logger settings] to CyberCore
|
|
125
|
+
🔼 [SCOPE]: Laser jump up! Current frame: 'process_data'
|
|
126
|
+
>>> self.value
|
|
127
|
+
42
|
|
128
|
+
>>> [Logger settings] set param level as 'DEBUG'
|
|
129
|
+
⚙️ [CONFIG]: Logger parameter 'level' successfully changed to: DEBUG
|
|
130
|
+
>>> exit()
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## 📜 License & Copyright
|
|
136
|
+
|
|
137
|
+
**Copyright (c) 2026 Ilja Ivanov (with Google and Meta Infrastructure).**
|
|
138
|
+
|
|
139
|
+
Licensed under the **MIT License**.
|
|
140
|
+
|
|
141
|
+
*Some rights reserved.* You are fully granted the right to modify, distribute, and implement this Trihybrid hypervisor within any commercial, closed, or open systems, **under the strict condition that the original name of the Lead Architect, Ilja Ivanov, is preserved seamlessly across all copies and derivatives of the source code**!
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
# 🛸 Cyber Logs Interceptor (Micro-OS Trihybrid)
|
|
2
|
+
|
|
3
|
+
> **The Ultimate Runtime Hypervisor: Debugger + Logger + Profiler inside CPython Engine.**
|
|
4
|
+
|
|
5
|
+
[](https://www.python.org/)
|
|
6
|
+
[](https://opensource.org/licenses/MIT)
|
|
7
|
+
[](https://example.com/security)
|
|
8
|
+
|
|
9
|
+
**Cyber Logs Interceptor** is not just a standard logger or a basic profiler. It is a pure-bred, autonomous **major-league systems programming Trihybrid**, seamlessly fusing the capabilities of an interactive debugger, a telemetry logger, and a nanosecond-precision profiler into a single processor pass.
|
|
10
|
+
|
|
11
|
+
The architecture operates as a distributed, self-contained runtime hypervisor: it intercepts `Kernel Panic` signals at the C-level frame stack layer, enforces absolute memory isolation inside a secure sandbox, executes byte-level RAM pre-warming for local script dependencies, and provides the engineer with an unprecedented CLI/GUI command hub to manipulate the live memory of a crashed process on the fly!
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## 🧬 System Arsenal (Powered by Apple, Google & Meta)
|
|
16
|
+
|
|
17
|
+
The core architecture unites the finest infrastructure engineering frameworks on the planet:
|
|
18
|
+
* **CPython Core & C-Structures (`collections`, `itertools`)** — Drives a nanosecond-level stack trace extraction loop with \(O(1)\) time complexity and absolute zero memory allocation overhead.
|
|
19
|
+
* **Google Abseil (`absl.flags`)** — Powering a battle-tested industrial CLI engine backed by strict Enterprise-grade type validation and distributed flag declaration.
|
|
20
|
+
* **Meta OpTree (`optree`)** — Uses a highly optimized C++ engine designed by Facebook engineers for ultra-fast PyTree dictionary traversal and object flattening in exactly 0 nanoseconds.
|
|
21
|
+
* **NumPy Engine** — Enforces fully vectorized array processing to render beautiful geometric ASCII matrix code reports, bypassing slow native Python loops completely.
|
|
22
|
+
* **Crypto Shield (`itsdangerous`)** — Deploys a cryptographic HMAC-SHA1 signature layer over Socket.IO network packets with automated quantum key rotation cycles every 24 hours.
|
|
23
|
+
* **Fault-Tolerant database (`dbm`)** — An OS-level native binary key-value store. If the network drops, logs are instantly sealed directly onto the storage disk and forwarded automatically upon reconnection.
|
|
24
|
+
* **Python Software Foundation (`idlelib`)** — Leverages a deep inter-process memory isolation hack. Completely bypasses the default RPC subprocess handler via the `-n` flag to achieve absolute, direct local variable extraction into the graphical window.
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
## 🛠️ Workspace Architecture: CLI vs GUI
|
|
28
|
+
|
|
29
|
+
The utility is fully self-contained and supports two core emergency recovery modes:
|
|
30
|
+
|
|
31
|
+
### 1. CLI Mode (Local Quantum Stack Frame Jumps)
|
|
32
|
+
When a runtime crash occurs, the Trihybrid instantly freezes the execution thread, unwinds the C-level frames down to the blast epicenter via `last_tb.tb_next`, and opens an interactive, LLDB-like shell environment [1.5]:
|
|
33
|
+
|
|
34
|
+
* `>>> data` — Instantly dumps the raw value `42` directly from the local scope of the crashed function [1.5]!
|
|
35
|
+
* `>>> [Logger settings] to CyberCore` — The laser navigation radar cuts upward through dozens of stack frames, executing an atomic scope jump straight into the visible boundary of the specified class or method.
|
|
36
|
+
* `>>> [Logger settings] set param level as 'DEBUG'` — Dynamically reconfigures internal `self` parameters of the live Logger object directly within RAM during the crash incident!
|
|
37
|
+
* `>>> [Logger settings] out worker_func` — Executes an atomic target radar jump back down the call stack, returning perfectly to the explosion epicenter.
|
|
38
|
+
|
|
39
|
+
### 2. GUI Mode (Bypassing the IDLE RPC Process Barrier)
|
|
40
|
+
Deploys a graphical debugging headquarters (`Debug Control` and `IDLE Shell`) directly inside the shared address space of our isolated runtime sandbox. It extracts complex variables like `core` and `data` right out of thin air, providing native, full-featured Tkinter control windows with physical execution control buttons (Step/Over) with absolute zero destructive footprint on active RAM.
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## 🚀 Quick Start
|
|
45
|
+
|
|
46
|
+
### Package Installation
|
|
47
|
+
```bash
|
|
48
|
+
pip install cyber-logs-interceptor
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Running as a CLI Utility via Google Abseil
|
|
52
|
+
Execute the automated injector script inside your terminal/PowerShell, passing the target application source file:
|
|
53
|
+
|
|
54
|
+
```powershell
|
|
55
|
+
# Launch the armored terminal debugger console (CLI)
|
|
56
|
+
cyber-logs --level=critical --target_file=Ilyuha.py --shell=false
|
|
57
|
+
|
|
58
|
+
# Hijack and launch the graphical debugging headquarters (GUI)
|
|
59
|
+
cyber-logs --level=critical --target_file=Ilyuha.py --shell=true
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
## 🧠 Live Crash Scenario Example (`Ilyuha.py`)
|
|
66
|
+
|
|
67
|
+
The automated injector will instantly execute a byte-level RAM pre-warming routine for all sibling module dependencies within the directory (caching them via `linecache.cache`), enforce an atomic C-level disk-sync operation via the `os.fsync()` descriptor, and detonate the completely isolated execution sandbox `__exec_sandbox__` :
|
|
68
|
+
|
|
69
|
+
```python
|
|
70
|
+
import sys
|
|
71
|
+
import logs
|
|
72
|
+
|
|
73
|
+
# The Micro-OS runtime hook is injected directly into the application headspace!
|
|
74
|
+
logs.global_logging(level='CRITICAL', file=sys.stderr, auto_reset=True, shell=False)
|
|
75
|
+
|
|
76
|
+
class CyberCore:
|
|
77
|
+
def __init__(self, value: int) -> None:
|
|
78
|
+
self.value = value
|
|
79
|
+
|
|
80
|
+
def process_data(self) -> None:
|
|
81
|
+
return trigger_panic_func(self.value)
|
|
82
|
+
|
|
83
|
+
def trigger_panic_func(data: int) -> float:
|
|
84
|
+
# Epicenter of the core runtime explosion
|
|
85
|
+
return data / 0
|
|
86
|
+
|
|
87
|
+
core = CyberCore(value=42)
|
|
88
|
+
core.process_data()
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Expected Terminal Output on Crash Event:
|
|
92
|
+
```text
|
|
93
|
+
🤖 [GOOGLE ABSL RUNTIME] Starting secure workspace directory scanning...
|
|
94
|
+
📦 Byte-level RAM pre-warming of linecache for local workspace directory...
|
|
95
|
+
✅ [FAST SCANNER]: Successfully pre-warmed 16 sibling code files in RAM!
|
|
96
|
+
🚀 [SUCCESS] Micro-OS successfully injected into Ilyuha.py!
|
|
97
|
+
|
|
98
|
+
🚨 [KERNEL PANIC REPL] System frozen at the crash epicenter. Local variables are accessible:
|
|
99
|
+
>>> data
|
|
100
|
+
42
|
|
101
|
+
>>> [Logger settings] to CyberCore
|
|
102
|
+
🔼 [SCOPE]: Laser jump up! Current frame: 'process_data'
|
|
103
|
+
>>> self.value
|
|
104
|
+
42
|
|
105
|
+
>>> [Logger settings] set param level as 'DEBUG'
|
|
106
|
+
⚙️ [CONFIG]: Logger parameter 'level' successfully changed to: DEBUG
|
|
107
|
+
>>> exit()
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
## 📜 License & Copyright
|
|
113
|
+
|
|
114
|
+
**Copyright (c) 2026 Ilja Ivanov (with Google and Meta Infrastructure).**
|
|
115
|
+
|
|
116
|
+
Licensed under the **MIT License**.
|
|
117
|
+
|
|
118
|
+
*Some rights reserved.* You are fully granted the right to modify, distribute, and implement this Trihybrid hypervisor within any commercial, closed, or open systems, **under the strict condition that the original name of the Lead Architect, Ilja Ivanov, is preserved seamlessly across all copies and derivatives of the source code**!
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: cyber-logs-interceptor
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: The ultimate Military-Grade runtime hypervisor: Debugger + Logger + Profiler inside CPython engine
|
|
5
|
+
Author-email: Ilja Ivanov <ilyuha@cyber-core.io>
|
|
6
|
+
License: MIT License
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
9
|
+
Classifier: Operating System :: OS Independent
|
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Classifier: Topic :: Software Development :: Debuggers
|
|
12
|
+
Classifier: Topic :: System :: Logging
|
|
13
|
+
Requires-Python: >=3.11
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
License-File: LICENSE
|
|
16
|
+
License-File: LICENSE.html
|
|
17
|
+
Requires-Dist: absl-py>=2.1.0
|
|
18
|
+
Requires-Dist: optree>=0.11.0
|
|
19
|
+
Requires-Dist: itsdangerous>=2.2.0
|
|
20
|
+
Requires-Dist: python-socketio>=5.11.0
|
|
21
|
+
Requires-Dist: numpy>=1.26.0
|
|
22
|
+
Dynamic: license-file
|
|
23
|
+
|
|
24
|
+
# 🛸 Cyber Logs Interceptor (Micro-OS Trihybrid)
|
|
25
|
+
|
|
26
|
+
> **The Ultimate Runtime Hypervisor: Debugger + Logger + Profiler inside CPython Engine.**
|
|
27
|
+
|
|
28
|
+
[](https://www.python.org/)
|
|
29
|
+
[](https://opensource.org/licenses/MIT)
|
|
30
|
+
[](https://example.com/security)
|
|
31
|
+
|
|
32
|
+
**Cyber Logs Interceptor** is not just a standard logger or a basic profiler. It is a pure-bred, autonomous **major-league systems programming Trihybrid**, seamlessly fusing the capabilities of an interactive debugger, a telemetry logger, and a nanosecond-precision profiler into a single processor pass.
|
|
33
|
+
|
|
34
|
+
The architecture operates as a distributed, self-contained runtime hypervisor: it intercepts `Kernel Panic` signals at the C-level frame stack layer, enforces absolute memory isolation inside a secure sandbox, executes byte-level RAM pre-warming for local script dependencies, and provides the engineer with an unprecedented CLI/GUI command hub to manipulate the live memory of a crashed process on the fly!
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## 🧬 System Arsenal (Powered by Apple, Google & Meta)
|
|
39
|
+
|
|
40
|
+
The core architecture unites the finest infrastructure engineering frameworks on the planet:
|
|
41
|
+
* **CPython Core & C-Structures (`collections`, `itertools`)** — Drives a nanosecond-level stack trace extraction loop with \(O(1)\) time complexity and absolute zero memory allocation overhead.
|
|
42
|
+
* **Google Abseil (`absl.flags`)** — Powering a battle-tested industrial CLI engine backed by strict Enterprise-grade type validation and distributed flag declaration.
|
|
43
|
+
* **Meta OpTree (`optree`)** — Uses a highly optimized C++ engine designed by Facebook engineers for ultra-fast PyTree dictionary traversal and object flattening in exactly 0 nanoseconds.
|
|
44
|
+
* **NumPy Engine** — Enforces fully vectorized array processing to render beautiful geometric ASCII matrix code reports, bypassing slow native Python loops completely.
|
|
45
|
+
* **Crypto Shield (`itsdangerous`)** — Deploys a cryptographic HMAC-SHA1 signature layer over Socket.IO network packets with automated quantum key rotation cycles every 24 hours.
|
|
46
|
+
* **Fault-Tolerant database (`dbm`)** — An OS-level native binary key-value store. If the network drops, logs are instantly sealed directly onto the storage disk and forwarded automatically upon reconnection.
|
|
47
|
+
* **Python Software Foundation (`idlelib`)** — Leverages a deep inter-process memory isolation hack. Completely bypasses the default RPC subprocess handler via the `-n` flag to achieve absolute, direct local variable extraction into the graphical window.
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
## 🛠️ Workspace Architecture: CLI vs GUI
|
|
51
|
+
|
|
52
|
+
The utility is fully self-contained and supports two core emergency recovery modes:
|
|
53
|
+
|
|
54
|
+
### 1. CLI Mode (Local Quantum Stack Frame Jumps)
|
|
55
|
+
When a runtime crash occurs, the Trihybrid instantly freezes the execution thread, unwinds the C-level frames down to the blast epicenter via `last_tb.tb_next`, and opens an interactive, LLDB-like shell environment [1.5]:
|
|
56
|
+
|
|
57
|
+
* `>>> data` — Instantly dumps the raw value `42` directly from the local scope of the crashed function [1.5]!
|
|
58
|
+
* `>>> [Logger settings] to CyberCore` — The laser navigation radar cuts upward through dozens of stack frames, executing an atomic scope jump straight into the visible boundary of the specified class or method.
|
|
59
|
+
* `>>> [Logger settings] set param level as 'DEBUG'` — Dynamically reconfigures internal `self` parameters of the live Logger object directly within RAM during the crash incident!
|
|
60
|
+
* `>>> [Logger settings] out worker_func` — Executes an atomic target radar jump back down the call stack, returning perfectly to the explosion epicenter.
|
|
61
|
+
|
|
62
|
+
### 2. GUI Mode (Bypassing the IDLE RPC Process Barrier)
|
|
63
|
+
Deploys a graphical debugging headquarters (`Debug Control` and `IDLE Shell`) directly inside the shared address space of our isolated runtime sandbox. It extracts complex variables like `core` and `data` right out of thin air, providing native, full-featured Tkinter control windows with physical execution control buttons (Step/Over) with absolute zero destructive footprint on active RAM.
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## 🚀 Quick Start
|
|
68
|
+
|
|
69
|
+
### Package Installation
|
|
70
|
+
```bash
|
|
71
|
+
pip install cyber-logs-interceptor
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Running as a CLI Utility via Google Abseil
|
|
75
|
+
Execute the automated injector script inside your terminal/PowerShell, passing the target application source file:
|
|
76
|
+
|
|
77
|
+
```powershell
|
|
78
|
+
# Launch the armored terminal debugger console (CLI)
|
|
79
|
+
cyber-logs --level=critical --target_file=Ilyuha.py --shell=false
|
|
80
|
+
|
|
81
|
+
# Hijack and launch the graphical debugging headquarters (GUI)
|
|
82
|
+
cyber-logs --level=critical --target_file=Ilyuha.py --shell=true
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
## 🧠 Live Crash Scenario Example (`Ilyuha.py`)
|
|
89
|
+
|
|
90
|
+
The automated injector will instantly execute a byte-level RAM pre-warming routine for all sibling module dependencies within the directory (caching them via `linecache.cache`), enforce an atomic C-level disk-sync operation via the `os.fsync()` descriptor, and detonate the completely isolated execution sandbox `__exec_sandbox__` :
|
|
91
|
+
|
|
92
|
+
```python
|
|
93
|
+
import sys
|
|
94
|
+
import logs
|
|
95
|
+
|
|
96
|
+
# The Micro-OS runtime hook is injected directly into the application headspace!
|
|
97
|
+
logs.global_logging(level='CRITICAL', file=sys.stderr, auto_reset=True, shell=False)
|
|
98
|
+
|
|
99
|
+
class CyberCore:
|
|
100
|
+
def __init__(self, value: int) -> None:
|
|
101
|
+
self.value = value
|
|
102
|
+
|
|
103
|
+
def process_data(self) -> None:
|
|
104
|
+
return trigger_panic_func(self.value)
|
|
105
|
+
|
|
106
|
+
def trigger_panic_func(data: int) -> float:
|
|
107
|
+
# Epicenter of the core runtime explosion
|
|
108
|
+
return data / 0
|
|
109
|
+
|
|
110
|
+
core = CyberCore(value=42)
|
|
111
|
+
core.process_data()
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### Expected Terminal Output on Crash Event:
|
|
115
|
+
```text
|
|
116
|
+
🤖 [GOOGLE ABSL RUNTIME] Starting secure workspace directory scanning...
|
|
117
|
+
📦 Byte-level RAM pre-warming of linecache for local workspace directory...
|
|
118
|
+
✅ [FAST SCANNER]: Successfully pre-warmed 16 sibling code files in RAM!
|
|
119
|
+
🚀 [SUCCESS] Micro-OS successfully injected into Ilyuha.py!
|
|
120
|
+
|
|
121
|
+
🚨 [KERNEL PANIC REPL] System frozen at the crash epicenter. Local variables are accessible:
|
|
122
|
+
>>> data
|
|
123
|
+
42
|
|
124
|
+
>>> [Logger settings] to CyberCore
|
|
125
|
+
🔼 [SCOPE]: Laser jump up! Current frame: 'process_data'
|
|
126
|
+
>>> self.value
|
|
127
|
+
42
|
|
128
|
+
>>> [Logger settings] set param level as 'DEBUG'
|
|
129
|
+
⚙️ [CONFIG]: Logger parameter 'level' successfully changed to: DEBUG
|
|
130
|
+
>>> exit()
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## 📜 License & Copyright
|
|
136
|
+
|
|
137
|
+
**Copyright (c) 2026 Ilja Ivanov (with Google and Meta Infrastructure).**
|
|
138
|
+
|
|
139
|
+
Licensed under the **MIT License**.
|
|
140
|
+
|
|
141
|
+
*Some rights reserved.* You are fully granted the right to modify, distribute, and implement this Trihybrid hypervisor within any commercial, closed, or open systems, **under the strict condition that the original name of the Lead Architect, Ilja Ivanov, is preserved seamlessly across all copies and derivatives of the source code**!
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
LICENSE.html
|
|
3
|
+
README.md
|
|
4
|
+
pyproject.toml
|
|
5
|
+
cyber_logs_interceptor.egg-info/PKG-INFO
|
|
6
|
+
cyber_logs_interceptor.egg-info/SOURCES.txt
|
|
7
|
+
cyber_logs_interceptor.egg-info/dependency_links.txt
|
|
8
|
+
cyber_logs_interceptor.egg-info/entry_points.txt
|
|
9
|
+
cyber_logs_interceptor.egg-info/requires.txt
|
|
10
|
+
cyber_logs_interceptor.egg-info/top_level.txt
|
|
11
|
+
logs/__init__.py
|
|
12
|
+
logs/__main__.py
|
|
13
|
+
logs/formatted_table.py
|
|
14
|
+
logs/logs.py
|
|
15
|
+
logs/py.typed
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
logs
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from .logs import (is_reached_recursion, recursion,
|
|
2
|
+
recursive_prompt, recursive_prompt_list,
|
|
3
|
+
reset_settings, Logger, Config, global_logging,
|
|
4
|
+
Conveyor)
|
|
5
|
+
|
|
6
|
+
__all__ = ["is_reached_recursion", "recursion",
|
|
7
|
+
"recursive_prompt", "recursive_prompt_list", "reset_settings",
|
|
8
|
+
"Logger", "Config", "global_logging", "Conveyor"] # 🔥 FIXED: Conveyor added to exposure list!
|
|
9
|
+
|
|
10
|
+
author = "Ilja Ivanov (with Google and Meta Infrastructure)"
|
|
11
|
+
__doc__ = "The professional logger and profiler in Python"
|