+
📶
WiFi Scanning
- ${caps.wifi_available ? 'Available' : 'Not Available'}
- ${caps.wifi_interface ? `${caps.wifi_interface}` : ''}
+ ${wifiAvailable ? caps.wifi.mode : 'Not Available'}
+ ${caps.wifi?.interface ? `${escapeHtml(caps.wifi.interface)}` : ''}
-
+
🔵
Bluetooth Scanning
- ${caps.bluetooth_available ? 'Available' : 'Not Available'}
- ${caps.bt_adapter ? `${caps.bt_adapter}` : ''}
+ ${btAvailable ? caps.bluetooth.mode : 'Not Available'}
+ ${caps.bluetooth?.adapter ? `${escapeHtml(caps.bluetooth.adapter)}` : ''}
-
+
📡
RF/SDR Scanning
- ${caps.sdr_available ? 'Available' : 'Not Available'}
- ${caps.sdr_device ? `${caps.sdr_device}` : ''}
+ ${rfAvailable ? 'Available' : 'Not Available'}
+ ${caps.rf?.device_type ? `${escapeHtml(caps.rf.device_type)}` : ''}
What This Sweep CAN Detect
- ${(caps.can_detect || []).map(item => `- ✅ ${escapeHtml(item)}
`).join('')}
+ ${canDetect.map(item => `- ✅ ${escapeHtml(item)}
`).join('')}
What This Sweep CANNOT Detect
- ${(caps.cannot_detect || []).map(item => `- ❌ ${escapeHtml(item)}
`).join('')}
+ ${cannotDetect.map(item => `- ❌ ${escapeHtml(item)}
`).join('')}
+ ${caps.all_limitations && caps.all_limitations.length > 0 ? `
+
+
Current Limitations
+
+ ${caps.all_limitations.map(item => `- ⚠️ ${escapeHtml(item)}
`).join('')}
+
+
+ ` : ''}
- Important: This tool detects wireless RF emissions only.
- Professional TSCM requires physical inspection, NLJD, thermal imaging, and spectrum analysis equipment.
+ Important: ${escapeHtml(caps.disclaimer || 'This tool detects wireless RF emissions only. Professional TSCM requires physical inspection, NLJD, thermal imaging, and spectrum analysis equipment.')}
`;
} else {
@@ -9249,6 +9318,37 @@
}
}
+ async function tscmAddToKnownDevices(identifier, name, deviceType) {
+ // Ask for optional custom name
+ const customName = prompt(`Add "${name}" to known devices.\n\nEnter a friendly name (or leave blank to use default):`, name);
+ if (customName === null) return; // User cancelled
+
+ try {
+ const response = await fetch('/tscm/known-devices', {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json' },
+ body: JSON.stringify({
+ identifier: identifier,
+ name: customName || name,
+ device_type: deviceType
+ })
+ });
+
+ const data = await response.json();
+ if (data.status === 'success') {
+ // Show success message
+ alert(`"${customName || name}" added to known devices.\n\nThis device will be excluded from threat scoring in future sweeps.`);
+ // Close the device modal
+ closeTscmDeviceModal();
+ } else {
+ alert(data.message || 'Failed to add device');
+ }
+ } catch (e) {
+ console.error('Failed to add to known devices:', e);
+ alert('Failed to add device to known list');
+ }
+ }
+
// Cases Management
async function tscmShowCases() {
const modal = document.getElementById('tscmDeviceModal');