| 5.23.6 |
2024-12-08 |
diff --git a/docs/index.html b/docs/index.html
index ef2acd1..d29acd2 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -170,7 +170,7 @@
systeminformation
- New Version: 5.23.6
+ New Version: 5.23.7
diff --git a/lib/network.js b/lib/network.js
index 86c4513..4071aef 100644
--- a/lib/network.js
+++ b/lib/network.js
@@ -348,7 +348,7 @@ function getWindowsWirelessIfaceSSID(interfaceName) {
try {
const result = execSync(`netsh wlan show interface name="${interfaceName}" | findstr "SSID"`, util.execOptsWin);
const SSID = result.split('\r\n').shift();
- const parseSSID = SSID.split(':').pop();
+ const parseSSID = SSID.split(':').pop().trim();
return parseSSID;
} catch (error) {
return 'Unknown';
@@ -400,8 +400,18 @@ function getWindowsIEEE8021x(connectionType, iface, ifaces) {
try {
const SSID = getWindowsWirelessIfaceSSID(iface);
if (SSID !== 'Unknown') {
- i8021xState = execSync(`netsh wlan show profiles "${SSID}" | findstr "802.1X"`, util.execOptsWin);
- i8021xProtocol = execSync(`netsh wlan show profiles "${SSID}" | findstr "EAP"`, util.execOptsWin);
+
+ let ifaceSanitized = '';
+ const s = util.isPrototypePolluted() ? '---' : util.sanitizeShellString(SSID);
+ const l = util.mathMin(s.length, 2000);
+
+ for (let i = 0; i <= l; i++) {
+ if (s[i] !== undefined) {
+ ifaceSanitized = ifaceSanitized + s[i];
+ }
+ }
+ i8021xState = execSync(`netsh wlan show profiles "${ifaceSanitized}" | findstr "802.1X"`, util.execOptsWin);
+ i8021xProtocol = execSync(`netsh wlan show profiles "${ifaceSanitized}" | findstr "EAP"`, util.execOptsWin);
}
if (i8021xState.includes(':') && i8021xProtocol.includes(':')) {