-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
135 lines (127 loc) · 3.27 KB
/
types.ts
File metadata and controls
135 lines (127 loc) · 3.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
export interface SystemState {
cpuLoad: number;
cpuFreq: number; // GHz
gpuLoad: number;
gpuFreq: number; // MHz
gpuTemp: number; // Celsius
memoryUsage: number;
ramSpeed: number; // MHz
temperature: number; // CPU Temp
wifiEnabled: boolean;
bluetoothEnabled: boolean;
nethunterActive: boolean;
gamingModeActive: boolean;
demonModeActive: boolean; // Offensive/Defensive Overdrive
volume: number;
brightness: number;
processes: Process[];
securityStatus: 'SECURE' | 'VULNERABLE' | 'SCANNING' | 'DEMON_MODE';
threats: Threat[];
networkDevices: NetworkDevice[];
bluetoothSignals: BluetoothDevice[];
stabilityIndex: number;
neuralIntegrity: number;
// VM State
vmState: {
isOpen: boolean;
status: 'OFF' | 'BOOTING' | 'RUNNING' | 'HALTED';
osName: string;
activeWorkspace: 'GENERAL' | 'API_INTEL' | 'RECON' | 'NEURAL_DEV';
uptime: string;
allocatedCpu: number;
allocatedRam: string;
apiEndpoints: { id: string; name: string; status: 'ACTIVE' | 'IDLE'; load: number }[];
};
// Pentest State
pentestState: {
active: boolean;
target: string;
progress: number;
phase: 'RECON' | 'ENUMERATION' | 'VULN_SEARCH' | 'EXPLOITATION' | 'POST_EXPLOIT' | 'COMPLETED';
logs: string[];
discoveredVulns: { cve: string; severity: 'LOW' | 'MED' | 'HIGH' | 'CRITICAL'; desc: string }[];
};
// New Granular Details
networkInterfaces: {
name: string;
status: 'UP' | 'DOWN';
ip: string;
tx: string;
rx: string;
upSpeed: string; // Real-time upload speed
downSpeed: string; // Real-time download speed
}[];
networkHistory: Record<string, { time: string; up: number; down: number }[]>;
diskVolumes: {
mount: string;
total: string;
used: string;
percent: number;
}[];
activeServices: {
name: string;
status: 'ACTIVE' | 'INACTIVE' | 'FAILED';
uptime: string;
description: string;
}[];
}
export interface BluetoothDevice {
id: string;
name: string;
rssi: number;
type: string;
isOverridden: boolean;
address: string;
}
export interface NetworkDevice {
ip: string;
mac: string;
hostname: string;
vendor: string;
os: string;
status: 'ONLINE' | 'OFFLINE';
ports: number[];
vulnerabilities: string[];
compromised: boolean;
latency: number;
}
export interface ThreatAnalysis {
infectionDepth: number;
obfuscation: number;
propagation: number;
exfiltrationRisk: number;
cpuImpact: number;
origin: string;
intent: string;
signature: string;
}
export interface Threat {
id: string;
type: 'NETWORK' | 'MALWARE' | 'INTRUSION' | 'VULNERABILITY';
severity: 'LOW' | 'MEDIUM' | 'HIGH' | 'CRITICAL';
description: string;
source: string;
status: 'ACTIVE' | 'BLOCKED' | 'MITIGATED' | 'QUARANTINED' | 'ANALYZING';
timestamp: Date;
analysis?: ThreatAnalysis;
}
export interface Process {
id: number;
name: string;
cpu: number;
status: 'running' | 'sleeping' | 'terminated';
priority?: 'low' | 'normal' | 'high';
}
export interface LogEntry {
id: string;
timestamp: Date;
source: 'SYSTEM' | 'AI' | 'USER' | 'TOOL';
message: string;
type: 'info' | 'warning' | 'error' | 'success';
}
export enum ConnectionState {
DISCONNECTED = 'DISCONNECTED',
CONNECTING = 'CONNECTING',
CONNECTED = 'CONNECTED',
ERROR = 'ERROR',
}