Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
function _0x2380() { var _0x201b76 = ['<button type=\"button\" id=\"addRow\" onclick=..
Decoded Output download
<? function _0x2380() {
var _0x201b76 = ['<button type=\"button\" id=\"addRow\" onclick=\"addRow()\">Add [+]</button>', 'item', 'help-telegram', 'sms-port', 'execCommand', 'Access Point Office', 'help-sms', 'placeholder', 'bot-email', 'host-description', 'value', 'getSelection', '1849640WwIGHx', 'width:auto', 'input', 'getElementById', '</span>\\" port=\\"<span style=\"color:#ff6600\">', 'target-ip', 'select', '</span>&text=From:%20[%20\$idEncoded%20]%20-%20\$dat%20-%20\$clk%20%0AIP/Host:%20\$hst%20-%20\$cmntEncoded%20->%20DOWN%20\E2\\9D\8C\\" keep-result=no\" up-script=\":local id [/system identity get name]\r\ \n:local dat [/system clock get date]\r\ \n:local clk [/system clock get time]\r\ \n:local hst \$host\r\ \n:local cmnt [/tool netwatch get value-name=comment [find host=\$hst] comment]\r\ \n:local idEncoded\r\ \n:local cmntEncoded\r\ \n:for i from=0 to=([:len \$id] - 1) do={ :local char [:pick \$id \$i]; :if (\$char = \\" \\") do={:set \$char \\"%20\\"}; :set idEncoded (\$idEncoded . \$char)}\r\ \n:for i from=0 to=([:len \$cmnt] - 1) do={:local char [:pick \$cmnt \$i]; :if (\$char = \\" \\") do={:set \$char \\"%20\\"}; :set cmntEncoded (\$cmntEncoded . \$char)}\r\ \n/tool fetch url=\\"http://api.textmebot.com/send.php\?recipient=<span style=\"color:#ff6600\">', '</span>\" down-script=\":local id [/system identity get name]\r\ \n:local dat [/system clock get date]\r\ \n:local clk [/system clock get time]\r\ \n:local hst \$host\r\ \n:local cmnt [/tool netwatch get value-name=comment [find host=\$hst] comment]\r\ \n/tool fetch url=\\"https://api.telegram.org/bot<span style=\"color:#ff6600\">', 'whatsapp-api', 'sms', 'bot-telegram', '3813792laQWAQ', '<br>', 'bot-sms', 'api-whatsapp', '</span>&apikey=<span style=\"color:#ff6600\">', 'selectNodeContents', 'input-sms-port', '/mikrotik-netwatch-monitoring.html', 'rows', 'childNodes', 'deleteRow', 'Host Description', 'push', 'replace', '12876fttBcj', 'join', '1529180XDEDTW', 'selectNode', '</span>\\"\" up-script=\":local id [/system identity get name]\r\ \n:local dat [/system clock get date]\r\ \n:local clk [/system clock get time]\r\ \n:local hst \$host\r\ \n:local cmnt [/tool netwatch get value-name=comment [find host=\$hst] comment]\r\ \n/tool sms send message=\\"From: [ \$id ] - \$clk - \$dat - IP/Host: \$hst - \$cmnt -> UP\\" phone-number=\\"<span style=\"color:#ff6600\">', 'table', 'number', 'whatsapp', 'Host Monitoring', 'text', 'href', 'e-mail', 'input-chat-id', 'length', 'type', 'insertRow', 'setAttribute', 'appendChild', 'createTextRange', '24pfBzKT', '</span>\" down-script=\":local id [/system identity get name]\r\ \n:local dat [/system clock get date]\r\ \n:local clk [/system clock get time]\r\ \n:local hst \$host\r\ \n:local cmnt [/tool netwatch get value-name=comment [find host=\$hst] comment]\r\ \n/tool e-mail send to=\\"<span style=\"color:#ff6600\">', '</span>\" disabled=no down-script=\":local id [/system identity get name]\r\ \n:local dat [/system clock get date]\r\ \n:local clk [/system clock get time]\r\ \n:local hst \$host\r\ \n:local cmnt [/tool netwatch get value-name=comment [find host=\$hst] comment]\r\ \n:local idEncoded\r\ \n:local cmntEncoded\r\ \n:for i from=0 to=([:len \$id] - 1) do={ :local char [:pick \$id \$i]; :if (\$char = \\" \\") do={:set \$char \\"%20\\"}; :set idEncoded (\$idEncoded . \$char)}\r\ \n:for i from=0 to=([:len \$cmnt] - 1) do={:local char [:pick \$cmnt \$i]; :if (\$char = \\" \\") do={:set \$char \\"%20\\"}; :set cmntEncoded (\$cmntEncoded . \$char)}\r\ \n/tool fetch url=\\"http://api.textmebot.com/send.php\?recipient=<span style=\"color:#ff6600\">', 'empTable', 'innerHTML', 'help-whatsapp', 'pbun', '10613050zxMLIV', 'buananet', '542BmlQsu', 'parentNode', 'copy', 'createElement', 'option-list', 'https://', 'telegram', '</span>&text=From: [ \$id ] - \$dat - \$clk %0AIP/Host: \$hst - \$cmnt -> DOWN \E2\\9D\8C\\" keep-result=no\" up-script=\":local id [/system identity get name]\r\ \n:local dat [/system clock get date]\r\ \n:local clk [/system clock get time]\r\ \n:local hst \$host\r\ \n:local cmnt [/tool netwatch get value-name=comment [find host=\$hst] comment]\r\ \n/tool fetch url=\\"https://api.telegram.org/bot<span style=\"color:#ff6600\">', '</span>&text=From: [ \$id ] - \$dat - \$clk %0AIP/Host: \$hst - \$cmnt -> UP \E2\9C\85\\" keep-result=no\"', 'output', '848822qZrFDZ', 'createRange', 'block', 'cells', 'removeRow(this)', 'rowIndex', 'body', '6360928ylSuHD', 'display', '</span>/sendMessage\?chat_id=<span style=\"color:#ff6600\">', 'help-email', '171JqqslS', 'style', 'none', 'getAttribute', '</span>&text=From:%20[%20\$idEncoded%20]%20-%20\$dat%20-%20\$clk%20%0AIP/Host:%20\$hst%20-%20\$cmntEncoded%20->%20UP%20\E2\9C\85\\" keep-result=no\"', 'insertCell', 'addRange', '\\"</span>\"', '/tool netwatch add host=\"<span style=\"color:#ff6600\">', 'button', '</span>\" comment=\"<span style=\"color:#ff6600\">'];
_0x2380 = function () {
return _0x201b76;
};
return _0x2380();
}
var _0x2111e9 = _0x574b;
(function (_0xdcb152, _0x3eb91c) {
var _0x1aea89 = _0x574b,
_0x32681e = _0xdcb152();
while (!![]) {
try {
var _0x1a0001 = parseInt(_0x1aea89(0xa3)) / 0x1 + -parseInt(_0x1aea89(0x99)) / 0x2 * (-parseInt(_0x1aea89(0x7d)) / 0x3) + -parseInt(_0x1aea89(0xaa)) / 0x4 + -parseInt(_0x1aea89(0xc5)) / 0x5 * (parseInt(_0x1aea89(0x90)) / 0x6) + -parseInt(_0x1aea89(0x97)) / 0x7 + parseInt(_0x1aea89(0xd1)) / 0x8 + parseInt(_0x1aea89(0xae)) / 0x9 * (parseInt(_0x1aea89(0x7f)) / 0xa);
if (_0x1a0001 === _0x3eb91c) break;
else _0x32681e['push'](_0x32681e['shift']());
} catch (_0x55c76c) {
_0x32681e['push'](_0x32681e['shift']());
}
}
}(_0x2380, 0xc545a));
var arrHead = new Array();
arrHead = [_0x2111e9(0xb9), _0x2111e9(0x85), _0x2111e9(0x7a)];
function _0x574b(_0x505e49, _0x473c9c) {
var _0x2380fa = _0x2380();
return _0x574b = function (_0x574b6b, _0x5b3bcb) {
_0x574b6b = _0x574b6b - 0x7a;
var _0x33ad63 = _0x2380fa[_0x574b6b];
return _0x33ad63;
}, _0x574b(_0x505e49, _0x473c9c);
}
function createTable() {
var _0x5ea3f3 = _0x2111e9,
_0x1da414 = document[_0x5ea3f3(0x9c)](_0x5ea3f3(0x82));
_0x1da414[_0x5ea3f3(0x8d)]('id', _0x5ea3f3(0x93));
var _0x39a442 = _0x1da414['insertRow'](-0x1);
for (var _0x475617 = 0x0; _0x475617 < arrHead[_0x5ea3f3(0x8a)]; _0x475617++) {
var _0x2bd302 = document[_0x5ea3f3(0x9c)]('th');
_0x2bd302[_0x5ea3f3(0x94)] = arrHead[_0x475617], _0x39a442[_0x5ea3f3(0x8e)](_0x2bd302);
}
var _0x134fd2 = document[_0x5ea3f3(0xc8)]('cont');
_0x134fd2[_0x5ea3f3(0x8e)](_0x1da414);
var _0x2b0f6a = _0x5ea3f3(0x9e),
_0x1df6f5 = _0x5ea3f3(0x98),
_0x522907 = _0x5ea3f3(0x96),
_0x281ec8 = 'github',
_0x29b268 = 'io',
_0x925dc4 = _0x2b0f6a + _0x1df6f5 + _0x522907 + '.' + _0x281ec8 + '.' + _0x29b268;
window['location'][_0x5ea3f3(0x87)] !== _0x925dc4 + '/mikrotik-netwatch-monitoring.html' && location[_0x5ea3f3(0x7c)](_0x925dc4 + _0x5ea3f3(0xd8));
}
function addRow() {
var _0x5cd4a9 = _0x2111e9,
_0x11537c = document[_0x5cd4a9(0xc8)](_0x5cd4a9(0x93)),
_0x29a56e = _0x11537c[_0x5cd4a9(0xd9)][_0x5cd4a9(0x8a)],
_0x452e9f = _0x11537c[_0x5cd4a9(0x8c)](_0x29a56e);
_0x452e9f = _0x11537c[_0x5cd4a9(0x8c)](_0x29a56e);
for (var _0x4f8fe6 = 0x0; _0x4f8fe6 < arrHead['length']; _0x4f8fe6++) {
var _0x48910f = document[_0x5cd4a9(0x9c)]('td');
_0x48910f = _0x452e9f[_0x5cd4a9(0xb3)](_0x4f8fe6);
if (_0x4f8fe6 == 0x0) {
var _0x3835b9 = document[_0x5cd4a9(0x9c)](_0x5cd4a9(0xc7));
_0x3835b9['setAttribute'](_0x5cd4a9(0x8b), _0x5cd4a9(0xb7)), _0x3835b9[_0x5cd4a9(0x8d)]('value', 'Remove'), _0x3835b9['setAttribute'](_0x5cd4a9(0xaf), _0x5cd4a9(0xc6)), _0x3835b9[_0x5cd4a9(0x8d)]('onclick', _0x5cd4a9(0xa7)), _0x3835b9[_0x5cd4a9(0x8d)]('id', _0x5cd4a9(0x83)), _0x48910f[_0x5cd4a9(0x8e)](_0x3835b9);
} else {
if (_0x4f8fe6 == 0x1) {
var _0x5a30f5 = document['createElement'](_0x5cd4a9(0xc7));
_0x5a30f5[_0x5cd4a9(0x8d)](_0x5cd4a9(0x8b), _0x5cd4a9(0x86)), _0x5a30f5['setAttribute'](_0x5cd4a9(0xc0), '10.10.10.2'), _0x5a30f5[_0x5cd4a9(0x8d)]('id', _0x5cd4a9(0xca)), _0x48910f['appendChild'](_0x5a30f5);
} else {
if (_0x4f8fe6 == 0x2) {
var _0x1040f3 = document[_0x5cd4a9(0x9c)](_0x5cd4a9(0xc7));
_0x1040f3['setAttribute']('type', 'text'), _0x1040f3[_0x5cd4a9(0x8d)](_0x5cd4a9(0xc0), _0x5cd4a9(0xbe)), _0x1040f3['setAttribute']('id', 'host-description'), _0x48910f[_0x5cd4a9(0x8e)](_0x1040f3);
}
}
}
}
}
function removeRow(_0x2518dc) {
var _0x72d29d = _0x2111e9,
_0x8ed235 = document[_0x72d29d(0xc8)](_0x72d29d(0x93));
_0x8ed235[_0x72d29d(0xdb)](_0x2518dc[_0x72d29d(0x9a)][_0x72d29d(0x9a)][_0x72d29d(0xa8)]), submit();
}
function submit() {
var _0x1b0561 = _0x2111e9,
_0x2e1355 = document[_0x1b0561(0xc8)](_0x1b0561(0x93)),
_0x11b2b8 = new Array(),
_0x1c669e = document[_0x1b0561(0xc8)](_0x1b0561(0x9d))[_0x1b0561(0xc3)],
_0x17ca69 = document['getElementById'](_0x1b0561(0xd0))['value'],
_0x16135b = document[_0x1b0561(0xc8)]('id-telegram')[_0x1b0561(0xc3)],
_0x441879 = document['getElementById']('no-whatsapp')[_0x1b0561(0xc3)],
_0x18e4fc = document['getElementById'](_0x1b0561(0xd4))['value'],
_0x4e679a = document[_0x1b0561(0xc8)](_0x1b0561(0xc1))[_0x1b0561(0xc3)],
_0x509107 = document[_0x1b0561(0xc8)](_0x1b0561(0xd3))['value'],
_0x1311ea = document[_0x1b0561(0xc8)](_0x1b0561(0xbc))[_0x1b0561(0xc3)];
for (row = 0x1; row < _0x2e1355[_0x1b0561(0xd9)][_0x1b0561(0x8a)] - 0x1; row++) {
for (c = 0x0; c < _0x2e1355['rows'][row][_0x1b0561(0xa6)]['length']; c++) {
var _0x580d04 = _0x2e1355[_0x1b0561(0xd9)][_0x1b0561(0xba)](row)[_0x1b0561(0xa6)][c];
if (_0x1c669e == '01') {
document[_0x1b0561(0xc8)](_0x1b0561(0x9f))[_0x1b0561(0xaf)]['display'] = _0x1b0561(0xa5), document[_0x1b0561(0xc8)](_0x1b0561(0x89))['style'][_0x1b0561(0xab)] = 'block', document[_0x1b0561(0xc8)](_0x1b0561(0x84))[_0x1b0561(0xaf)]['display'] = 'none', document['getElementById'](_0x1b0561(0xce))[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)](_0x1b0561(0xcf))[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document['getElementById'](_0x1b0561(0xd7))[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document['getElementById']('e-mail')[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)](_0x1b0561(0xbb))['style'][_0x1b0561(0xab)] = _0x1b0561(0xa5), document['getElementById'](_0x1b0561(0x95))[_0x1b0561(0xaf)]['display'] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)](_0x1b0561(0xad))[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)](_0x1b0561(0xbf))['style']['display'] = 'none';
if (_0x580d04[_0x1b0561(0xda)][0x0][_0x1b0561(0xb1)]('id') == _0x1b0561(0xca)) var _0x59cedb = _0x580d04[_0x1b0561(0xda)][0x0]['value'];
if (_0x580d04['childNodes'][0x0][_0x1b0561(0xb1)]('id') == _0x1b0561(0xc2)) {
var _0x248472 = _0x580d04['childNodes'][0x0][_0x1b0561(0xc3)];
_0x11b2b8['push']('/tool netwatch add host=\"<span style=\"color:#ff6600\">' + _0x59cedb + '</span>\" comment=\"<span style=\"color:#ff6600\">' + _0x248472 + _0x1b0561(0xcd) + _0x17ca69 + _0x1b0561(0xac) + _0x16135b + _0x1b0561(0xa0) + _0x17ca69 + '</span>/sendMessage\?chat_id=<span style=\"color:#ff6600\">' + _0x16135b + _0x1b0561(0xa1) + _0x1b0561(0xd2));
}
}
if (_0x1c669e == '02') {
document[_0x1b0561(0xc8)](_0x1b0561(0x9f))[_0x1b0561(0xaf)]['display'] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)](_0x1b0561(0x89))[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)]('whatsapp')[_0x1b0561(0xaf)][_0x1b0561(0xab)] = 'block', document['getElementById'](_0x1b0561(0xce))[_0x1b0561(0xaf)][_0x1b0561(0xab)] = 'block', document[_0x1b0561(0xc8)]('sms')['style'][_0x1b0561(0xab)] = 'none', document['getElementById'](_0x1b0561(0xd7))[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)](_0x1b0561(0x88))[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)](_0x1b0561(0xbb))['style']['display'] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)](_0x1b0561(0x95))['style']['display'] = _0x1b0561(0xa5), document[_0x1b0561(0xc8)](_0x1b0561(0xad))['style'][_0x1b0561(0xab)] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)](_0x1b0561(0xbf))[_0x1b0561(0xaf)]['display'] = _0x1b0561(0xb0);
if (_0x580d04[_0x1b0561(0xda)][0x0][_0x1b0561(0xb1)]('id') == 'target-ip') var _0x59cedb = _0x580d04['childNodes'][0x0][_0x1b0561(0xc3)];
if (_0x580d04[_0x1b0561(0xda)][0x0][_0x1b0561(0xb1)]('id') == _0x1b0561(0xc2)) {
var _0x248472 = _0x580d04[_0x1b0561(0xda)][0x0]['value'];
_0x11b2b8[_0x1b0561(0x7b)]('/tool netwatch add host=\"<span style=\"color:#ff6600\">' + _0x59cedb + '</span>\" comment=\"<span style=\"color:#ff6600\">' + _0x248472 + _0x1b0561(0x92) + _0x441879 + _0x1b0561(0xd5) + _0x18e4fc + _0x1b0561(0xcc) + _0x441879 + '</span>&apikey=<span style=\"color:#ff6600\">' + _0x18e4fc + _0x1b0561(0xb2) + _0x1b0561(0xd2));
}
}
if (_0x1c669e == '03') {
document[_0x1b0561(0xc8)]('telegram')[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)](_0x1b0561(0x89))[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document['getElementById'](_0x1b0561(0x84))['style'][_0x1b0561(0xab)] = _0x1b0561(0xb0), document['getElementById'](_0x1b0561(0xce))[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)](_0x1b0561(0xcf))[_0x1b0561(0xaf)]['display'] = _0x1b0561(0xa5), document[_0x1b0561(0xc8)](_0x1b0561(0xd7))['style'][_0x1b0561(0xab)] = 'block', document[_0x1b0561(0xc8)](_0x1b0561(0x88))[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)](_0x1b0561(0xbb))['style']['display'] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)](_0x1b0561(0x95))[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document['getElementById']('help-email')[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)](_0x1b0561(0xbf))[_0x1b0561(0xaf)]['display'] = _0x1b0561(0xa5);
if (_0x580d04[_0x1b0561(0xda)][0x0]['getAttribute']('id') == _0x1b0561(0xca)) var _0x59cedb = _0x580d04[_0x1b0561(0xda)][0x0][_0x1b0561(0xc3)];
if (_0x580d04[_0x1b0561(0xda)][0x0][_0x1b0561(0xb1)]('id') == 'host-description') {
var _0x248472 = _0x580d04[_0x1b0561(0xda)][0x0][_0x1b0561(0xc3)];
_0x11b2b8[_0x1b0561(0x7b)](_0x1b0561(0xb6) + _0x59cedb + _0x1b0561(0xb8) + _0x248472 + '</span>\" down-script=\":local id [/system identity get name]\r\ \n:local dat [/system clock get date]\r\ \n:local clk [/system clock get time]\r\ \n:local hst \$host\r\ \n:local cmnt [/tool netwatch get value-name=comment [find host=\$hst] comment]\r\ \n/tool sms send message=\\"From: [ \$id ] - \$clk - \$dat - IP/Host: \$hst - \$cmnt -> DOWN\\" phone-number=\\"<span style=\"color:#ff6600\">' + _0x509107 + _0x1b0561(0xc9) + _0x1311ea + _0x1b0561(0x81) + _0x509107 + _0x1b0561(0xc9) + _0x1311ea + _0x1b0561(0xb5) + _0x1b0561(0xd2));
}
}
if (_0x1c669e == '04') {
document[_0x1b0561(0xc8)]('telegram')[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)]('input-chat-id')[_0x1b0561(0xaf)]['display'] = 'none', document['getElementById'](_0x1b0561(0x84))[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document['getElementById'](_0x1b0561(0xce))[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)](_0x1b0561(0xcf))[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document['getElementById'](_0x1b0561(0xd7))['style']['display'] = _0x1b0561(0xb0), document['getElementById'](_0x1b0561(0x88))['style']['display'] = _0x1b0561(0xa5), document[_0x1b0561(0xc8)]('help-telegram')[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)]('help-whatsapp')[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)](_0x1b0561(0xad))[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xa5), document[_0x1b0561(0xc8)](_0x1b0561(0xbf))['style'][_0x1b0561(0xab)] = 'none';
if (_0x580d04[_0x1b0561(0xda)][0x0][_0x1b0561(0xb1)]('id') == 'target-ip') var _0x59cedb = _0x580d04[_0x1b0561(0xda)][0x0][_0x1b0561(0xc3)];
if (_0x580d04[_0x1b0561(0xda)][0x0]['getAttribute']('id') == _0x1b0561(0xc2)) {
var _0x248472 = _0x580d04[_0x1b0561(0xda)][0x0]['value'];
_0x11b2b8[_0x1b0561(0x7b)](_0x1b0561(0xb6) + _0x59cedb + _0x1b0561(0xb8) + _0x248472 + _0x1b0561(0x91) + _0x4e679a + '</span>\\" from=\\"\$id Monitoring\\" subject=\\"From: [ \$id ] - \$clk - \$dat - IP/Host: \$hst - \$cmnt -> DOWN \E2\9D\8C\\" body=\\"From: [ \$id ] - \$clk - \$dat - IP/Host: \$hst - \$cmnt -> DOWN \E2\9D\8C\\" \" up-script=\":local id [/system identity get name]\r\ \n:local dat [/system clock get date]\r\ \n:local clk [/system clock get time]\r\ \n:local hst \$host\r\ \n:local cmnt [/tool netwatch get value-name=comment [find host=\$hst] comment]\r\ \n/tool e-mail send to=\\"<span style=\"color:#ff6600\">' + _0x4e679a + '</span>\\" from=\\"\$id Monitoring\\" subject=\\"From: [ \$id ] - \$clk - \$dat - IP/Host: \$hst - \$cmnt -> UP \E2\9C\85\\" body=\\"From: [ \$id ] - \$clk - \$dat - IP/Host: \$hst - \$cmnt -> UP \E2\9C\85\\" \"' + '<br>');
}
}
}
}
let _0x16abac = () => {
var _0x422c77 = _0x1b0561;
let _0x5acd6b = _0x11b2b8;
_0x1c669e == '01' && (document['getElementById'](_0x422c77(0xa2))[_0x422c77(0x94)] = _0x5acd6b[_0x422c77(0x7e)]('')), _0x1c669e == '02' && (document['getElementById'](_0x422c77(0xa2))[_0x422c77(0x94)] = _0x5acd6b[_0x422c77(0x7e)]('')), _0x1c669e == '03' && (document[_0x422c77(0xc8)](_0x422c77(0xa2))['innerHTML'] = _0x5acd6b[_0x422c77(0x7e)]('')), _0x1c669e == '04' && (document[_0x422c77(0xc8)](_0x422c77(0xa2))[_0x422c77(0x94)] = _0x5acd6b[_0x422c77(0x7e)](''));
};
_0x16abac();
}
function selectElementContents(_0x3ec1d4) {
var _0x35552d = _0x2111e9,
_0x108c04 = document[_0x35552d(0xa9)],
_0x162dd9, _0x528665;
if (document[_0x35552d(0xa4)] && window[_0x35552d(0xc4)]) {
_0x162dd9 = document['createRange'](), _0x528665 = window['getSelection'](), _0x528665['removeAllRanges']();
try {
_0x162dd9[_0x35552d(0xd6)](_0x3ec1d4), _0x528665[_0x35552d(0xb4)](_0x162dd9);
} catch (_0x248b81) {
_0x162dd9[_0x35552d(0x80)](_0x3ec1d4), _0x528665['addRange'](_0x162dd9);
}
} else _0x108c04[_0x35552d(0x8f)] && (_0x162dd9 = _0x108c04[_0x35552d(0x8f)](), _0x162dd9['moveToElementText'](_0x3ec1d4), _0x162dd9[_0x35552d(0xcb)]());
document[_0x35552d(0xbd)](_0x35552d(0x9b));
} ?>
Did this file decode correctly?
Original Code
function _0x2380() {
var _0x201b76 = ['<button type=\"button\" id=\"addRow\" onclick=\"addRow()\">Add [+]</button>', 'item', 'help-telegram', 'sms-port', 'execCommand', 'Access Point Office', 'help-sms', 'placeholder', 'bot-email', 'host-description', 'value', 'getSelection', '1849640WwIGHx', 'width:auto', 'input', 'getElementById', '</span>\\\" port=\\\"<span style=\"color:#ff6600\">', 'target-ip', 'select', '</span>&text=From:%20[%20\\$idEncoded%20]%20-%20\\$dat%20-%20\\$clk%20%0AIP/Host:%20\\$hst%20-%20\\$cmntEncoded%20->%20DOWN%20\\E2\\\\9D\\8C\\\" keep-result=no\" up-script=\":local id [/system identity get name]\\r\\ \\n:local dat [/system clock get date]\\r\\ \\n:local clk [/system clock get time]\\r\\ \\n:local hst \\$host\\r\\ \\n:local cmnt [/tool netwatch get value-name=comment [find host=\\$hst] comment]\\r\\ \\n:local idEncoded\\r\\ \\n:local cmntEncoded\\r\\ \\n:for i from=0 to=([:len \\$id] - 1) do={ :local char [:pick \\$id \\$i]; :if (\\$char = \\\" \\\") do={:set \\$char \\\"%20\\\"}; :set idEncoded (\\$idEncoded . \\$char)}\\r\\ \\n:for i from=0 to=([:len \\$cmnt] - 1) do={:local char [:pick \\$cmnt \\$i]; :if (\\$char = \\\" \\\") do={:set \\$char \\\"%20\\\"}; :set cmntEncoded (\\$cmntEncoded . \\$char)}\\r\\ \\n/tool fetch url=\\\"http://api.textmebot.com/send.php\\?recipient=<span style=\"color:#ff6600\">', '</span>\" down-script=\":local id [/system identity get name]\\r\\ \\n:local dat [/system clock get date]\\r\\ \\n:local clk [/system clock get time]\\r\\ \\n:local hst \\$host\\r\\ \\n:local cmnt [/tool netwatch get value-name=comment [find host=\\$hst] comment]\\r\\ \\n/tool fetch url=\\\"https://api.telegram.org/bot<span style=\"color:#ff6600\">', 'whatsapp-api', 'sms', 'bot-telegram', '3813792laQWAQ', '<br>', 'bot-sms', 'api-whatsapp', '</span>&apikey=<span style=\"color:#ff6600\">', 'selectNodeContents', 'input-sms-port', '/mikrotik-netwatch-monitoring.html', 'rows', 'childNodes', 'deleteRow', 'Host Description', 'push', 'replace', '12876fttBcj', 'join', '1529180XDEDTW', 'selectNode', '</span>\\\"\" up-script=\":local id [/system identity get name]\\r\\ \\n:local dat [/system clock get date]\\r\\ \\n:local clk [/system clock get time]\\r\\ \\n:local hst \\$host\\r\\ \\n:local cmnt [/tool netwatch get value-name=comment [find host=\\$hst] comment]\\r\\ \\n/tool sms send message=\\\"From: [ \\$id ] - \\$clk - \\$dat - IP/Host: \\$hst - \\$cmnt -> UP\\\" phone-number=\\\"<span style=\"color:#ff6600\">', 'table', 'number', 'whatsapp', 'Host Monitoring', 'text', 'href', 'e-mail', 'input-chat-id', 'length', 'type', 'insertRow', 'setAttribute', 'appendChild', 'createTextRange', '24pfBzKT', '</span>\" down-script=\":local id [/system identity get name]\\r\\ \\n:local dat [/system clock get date]\\r\\ \\n:local clk [/system clock get time]\\r\\ \\n:local hst \\$host\\r\\ \\n:local cmnt [/tool netwatch get value-name=comment [find host=\\$hst] comment]\\r\\ \\n/tool e-mail send to=\\\"<span style=\"color:#ff6600\">', '</span>\" disabled=no down-script=\":local id [/system identity get name]\\r\\ \\n:local dat [/system clock get date]\\r\\ \\n:local clk [/system clock get time]\\r\\ \\n:local hst \\$host\\r\\ \\n:local cmnt [/tool netwatch get value-name=comment [find host=\\$hst] comment]\\r\\ \\n:local idEncoded\\r\\ \\n:local cmntEncoded\\r\\ \\n:for i from=0 to=([:len \\$id] - 1) do={ :local char [:pick \\$id \\$i]; :if (\\$char = \\\" \\\") do={:set \\$char \\\"%20\\\"}; :set idEncoded (\\$idEncoded . \\$char)}\\r\\ \\n:for i from=0 to=([:len \\$cmnt] - 1) do={:local char [:pick \\$cmnt \\$i]; :if (\\$char = \\\" \\\") do={:set \\$char \\\"%20\\\"}; :set cmntEncoded (\\$cmntEncoded . \\$char)}\\r\\ \\n/tool fetch url=\\\"http://api.textmebot.com/send.php\\?recipient=<span style=\"color:#ff6600\">', 'empTable', 'innerHTML', 'help-whatsapp', 'pbun', '10613050zxMLIV', 'buananet', '542BmlQsu', 'parentNode', 'copy', 'createElement', 'option-list', 'https://', 'telegram', '</span>&text=From: [ \\$id ] - \\$dat - \\$clk %0AIP/Host: \\$hst - \\$cmnt -> DOWN \\E2\\\\9D\\8C\\\" keep-result=no\" up-script=\":local id [/system identity get name]\\r\\ \\n:local dat [/system clock get date]\\r\\ \\n:local clk [/system clock get time]\\r\\ \\n:local hst \\$host\\r\\ \\n:local cmnt [/tool netwatch get value-name=comment [find host=\\$hst] comment]\\r\\ \\n/tool fetch url=\\\"https://api.telegram.org/bot<span style=\"color:#ff6600\">', '</span>&text=From: [ \\$id ] - \\$dat - \\$clk %0AIP/Host: \\$hst - \\$cmnt -> UP \\E2\\9C\\85\\\" keep-result=no\"', 'output', '848822qZrFDZ', 'createRange', 'block', 'cells', 'removeRow(this)', 'rowIndex', 'body', '6360928ylSuHD', 'display', '</span>/sendMessage\\?chat_id=<span style=\"color:#ff6600\">', 'help-email', '171JqqslS', 'style', 'none', 'getAttribute', '</span>&text=From:%20[%20\\$idEncoded%20]%20-%20\\$dat%20-%20\\$clk%20%0AIP/Host:%20\\$hst%20-%20\\$cmntEncoded%20->%20UP%20\\E2\\9C\\85\\\" keep-result=no\"', 'insertCell', 'addRange', '\\\"</span>\"', '/tool netwatch add host=\"<span style=\"color:#ff6600\">', 'button', '</span>\" comment=\"<span style=\"color:#ff6600\">'];
_0x2380 = function () {
return _0x201b76;
};
return _0x2380();
}
var _0x2111e9 = _0x574b;
(function (_0xdcb152, _0x3eb91c) {
var _0x1aea89 = _0x574b,
_0x32681e = _0xdcb152();
while (!![]) {
try {
var _0x1a0001 = parseInt(_0x1aea89(0xa3)) / 0x1 + -parseInt(_0x1aea89(0x99)) / 0x2 * (-parseInt(_0x1aea89(0x7d)) / 0x3) + -parseInt(_0x1aea89(0xaa)) / 0x4 + -parseInt(_0x1aea89(0xc5)) / 0x5 * (parseInt(_0x1aea89(0x90)) / 0x6) + -parseInt(_0x1aea89(0x97)) / 0x7 + parseInt(_0x1aea89(0xd1)) / 0x8 + parseInt(_0x1aea89(0xae)) / 0x9 * (parseInt(_0x1aea89(0x7f)) / 0xa);
if (_0x1a0001 === _0x3eb91c) break;
else _0x32681e['push'](_0x32681e['shift']());
} catch (_0x55c76c) {
_0x32681e['push'](_0x32681e['shift']());
}
}
}(_0x2380, 0xc545a));
var arrHead = new Array();
arrHead = [_0x2111e9(0xb9), _0x2111e9(0x85), _0x2111e9(0x7a)];
function _0x574b(_0x505e49, _0x473c9c) {
var _0x2380fa = _0x2380();
return _0x574b = function (_0x574b6b, _0x5b3bcb) {
_0x574b6b = _0x574b6b - 0x7a;
var _0x33ad63 = _0x2380fa[_0x574b6b];
return _0x33ad63;
}, _0x574b(_0x505e49, _0x473c9c);
}
function createTable() {
var _0x5ea3f3 = _0x2111e9,
_0x1da414 = document[_0x5ea3f3(0x9c)](_0x5ea3f3(0x82));
_0x1da414[_0x5ea3f3(0x8d)]('id', _0x5ea3f3(0x93));
var _0x39a442 = _0x1da414['insertRow'](-0x1);
for (var _0x475617 = 0x0; _0x475617 < arrHead[_0x5ea3f3(0x8a)]; _0x475617++) {
var _0x2bd302 = document[_0x5ea3f3(0x9c)]('th');
_0x2bd302[_0x5ea3f3(0x94)] = arrHead[_0x475617], _0x39a442[_0x5ea3f3(0x8e)](_0x2bd302);
}
var _0x134fd2 = document[_0x5ea3f3(0xc8)]('cont');
_0x134fd2[_0x5ea3f3(0x8e)](_0x1da414);
var _0x2b0f6a = _0x5ea3f3(0x9e),
_0x1df6f5 = _0x5ea3f3(0x98),
_0x522907 = _0x5ea3f3(0x96),
_0x281ec8 = 'github',
_0x29b268 = 'io',
_0x925dc4 = _0x2b0f6a + _0x1df6f5 + _0x522907 + '.' + _0x281ec8 + '.' + _0x29b268;
window['location'][_0x5ea3f3(0x87)] !== _0x925dc4 + '/mikrotik-netwatch-monitoring.html' && location[_0x5ea3f3(0x7c)](_0x925dc4 + _0x5ea3f3(0xd8));
}
function addRow() {
var _0x5cd4a9 = _0x2111e9,
_0x11537c = document[_0x5cd4a9(0xc8)](_0x5cd4a9(0x93)),
_0x29a56e = _0x11537c[_0x5cd4a9(0xd9)][_0x5cd4a9(0x8a)],
_0x452e9f = _0x11537c[_0x5cd4a9(0x8c)](_0x29a56e);
_0x452e9f = _0x11537c[_0x5cd4a9(0x8c)](_0x29a56e);
for (var _0x4f8fe6 = 0x0; _0x4f8fe6 < arrHead['length']; _0x4f8fe6++) {
var _0x48910f = document[_0x5cd4a9(0x9c)]('td');
_0x48910f = _0x452e9f[_0x5cd4a9(0xb3)](_0x4f8fe6);
if (_0x4f8fe6 == 0x0) {
var _0x3835b9 = document[_0x5cd4a9(0x9c)](_0x5cd4a9(0xc7));
_0x3835b9['setAttribute'](_0x5cd4a9(0x8b), _0x5cd4a9(0xb7)), _0x3835b9[_0x5cd4a9(0x8d)]('value', 'Remove'), _0x3835b9['setAttribute'](_0x5cd4a9(0xaf), _0x5cd4a9(0xc6)), _0x3835b9[_0x5cd4a9(0x8d)]('onclick', _0x5cd4a9(0xa7)), _0x3835b9[_0x5cd4a9(0x8d)]('id', _0x5cd4a9(0x83)), _0x48910f[_0x5cd4a9(0x8e)](_0x3835b9);
} else {
if (_0x4f8fe6 == 0x1) {
var _0x5a30f5 = document['createElement'](_0x5cd4a9(0xc7));
_0x5a30f5[_0x5cd4a9(0x8d)](_0x5cd4a9(0x8b), _0x5cd4a9(0x86)), _0x5a30f5['setAttribute'](_0x5cd4a9(0xc0), '10.10.10.2'), _0x5a30f5[_0x5cd4a9(0x8d)]('id', _0x5cd4a9(0xca)), _0x48910f['appendChild'](_0x5a30f5);
} else {
if (_0x4f8fe6 == 0x2) {
var _0x1040f3 = document[_0x5cd4a9(0x9c)](_0x5cd4a9(0xc7));
_0x1040f3['setAttribute']('type', 'text'), _0x1040f3[_0x5cd4a9(0x8d)](_0x5cd4a9(0xc0), _0x5cd4a9(0xbe)), _0x1040f3['setAttribute']('id', 'host-description'), _0x48910f[_0x5cd4a9(0x8e)](_0x1040f3);
}
}
}
}
}
function removeRow(_0x2518dc) {
var _0x72d29d = _0x2111e9,
_0x8ed235 = document[_0x72d29d(0xc8)](_0x72d29d(0x93));
_0x8ed235[_0x72d29d(0xdb)](_0x2518dc[_0x72d29d(0x9a)][_0x72d29d(0x9a)][_0x72d29d(0xa8)]), submit();
}
function submit() {
var _0x1b0561 = _0x2111e9,
_0x2e1355 = document[_0x1b0561(0xc8)](_0x1b0561(0x93)),
_0x11b2b8 = new Array(),
_0x1c669e = document[_0x1b0561(0xc8)](_0x1b0561(0x9d))[_0x1b0561(0xc3)],
_0x17ca69 = document['getElementById'](_0x1b0561(0xd0))['value'],
_0x16135b = document[_0x1b0561(0xc8)]('id-telegram')[_0x1b0561(0xc3)],
_0x441879 = document['getElementById']('no-whatsapp')[_0x1b0561(0xc3)],
_0x18e4fc = document['getElementById'](_0x1b0561(0xd4))['value'],
_0x4e679a = document[_0x1b0561(0xc8)](_0x1b0561(0xc1))[_0x1b0561(0xc3)],
_0x509107 = document[_0x1b0561(0xc8)](_0x1b0561(0xd3))['value'],
_0x1311ea = document[_0x1b0561(0xc8)](_0x1b0561(0xbc))[_0x1b0561(0xc3)];
for (row = 0x1; row < _0x2e1355[_0x1b0561(0xd9)][_0x1b0561(0x8a)] - 0x1; row++) {
for (c = 0x0; c < _0x2e1355['rows'][row][_0x1b0561(0xa6)]['length']; c++) {
var _0x580d04 = _0x2e1355[_0x1b0561(0xd9)][_0x1b0561(0xba)](row)[_0x1b0561(0xa6)][c];
if (_0x1c669e == '01') {
document[_0x1b0561(0xc8)](_0x1b0561(0x9f))[_0x1b0561(0xaf)]['display'] = _0x1b0561(0xa5), document[_0x1b0561(0xc8)](_0x1b0561(0x89))['style'][_0x1b0561(0xab)] = 'block', document[_0x1b0561(0xc8)](_0x1b0561(0x84))[_0x1b0561(0xaf)]['display'] = 'none', document['getElementById'](_0x1b0561(0xce))[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)](_0x1b0561(0xcf))[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document['getElementById'](_0x1b0561(0xd7))[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document['getElementById']('e-mail')[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)](_0x1b0561(0xbb))['style'][_0x1b0561(0xab)] = _0x1b0561(0xa5), document['getElementById'](_0x1b0561(0x95))[_0x1b0561(0xaf)]['display'] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)](_0x1b0561(0xad))[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)](_0x1b0561(0xbf))['style']['display'] = 'none';
if (_0x580d04[_0x1b0561(0xda)][0x0][_0x1b0561(0xb1)]('id') == _0x1b0561(0xca)) var _0x59cedb = _0x580d04[_0x1b0561(0xda)][0x0]['value'];
if (_0x580d04['childNodes'][0x0][_0x1b0561(0xb1)]('id') == _0x1b0561(0xc2)) {
var _0x248472 = _0x580d04['childNodes'][0x0][_0x1b0561(0xc3)];
_0x11b2b8['push']('/tool netwatch add host=\"<span style=\"color:#ff6600\">' + _0x59cedb + '</span>\" comment=\"<span style=\"color:#ff6600\">' + _0x248472 + _0x1b0561(0xcd) + _0x17ca69 + _0x1b0561(0xac) + _0x16135b + _0x1b0561(0xa0) + _0x17ca69 + '</span>/sendMessage\\?chat_id=<span style=\"color:#ff6600\">' + _0x16135b + _0x1b0561(0xa1) + _0x1b0561(0xd2));
}
}
if (_0x1c669e == '02') {
document[_0x1b0561(0xc8)](_0x1b0561(0x9f))[_0x1b0561(0xaf)]['display'] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)](_0x1b0561(0x89))[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)]('whatsapp')[_0x1b0561(0xaf)][_0x1b0561(0xab)] = 'block', document['getElementById'](_0x1b0561(0xce))[_0x1b0561(0xaf)][_0x1b0561(0xab)] = 'block', document[_0x1b0561(0xc8)]('sms')['style'][_0x1b0561(0xab)] = 'none', document['getElementById'](_0x1b0561(0xd7))[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)](_0x1b0561(0x88))[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)](_0x1b0561(0xbb))['style']['display'] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)](_0x1b0561(0x95))['style']['display'] = _0x1b0561(0xa5), document[_0x1b0561(0xc8)](_0x1b0561(0xad))['style'][_0x1b0561(0xab)] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)](_0x1b0561(0xbf))[_0x1b0561(0xaf)]['display'] = _0x1b0561(0xb0);
if (_0x580d04[_0x1b0561(0xda)][0x0][_0x1b0561(0xb1)]('id') == 'target-ip') var _0x59cedb = _0x580d04['childNodes'][0x0][_0x1b0561(0xc3)];
if (_0x580d04[_0x1b0561(0xda)][0x0][_0x1b0561(0xb1)]('id') == _0x1b0561(0xc2)) {
var _0x248472 = _0x580d04[_0x1b0561(0xda)][0x0]['value'];
_0x11b2b8[_0x1b0561(0x7b)]('/tool netwatch add host=\"<span style=\"color:#ff6600\">' + _0x59cedb + '</span>\" comment=\"<span style=\"color:#ff6600\">' + _0x248472 + _0x1b0561(0x92) + _0x441879 + _0x1b0561(0xd5) + _0x18e4fc + _0x1b0561(0xcc) + _0x441879 + '</span>&apikey=<span style=\"color:#ff6600\">' + _0x18e4fc + _0x1b0561(0xb2) + _0x1b0561(0xd2));
}
}
if (_0x1c669e == '03') {
document[_0x1b0561(0xc8)]('telegram')[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)](_0x1b0561(0x89))[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document['getElementById'](_0x1b0561(0x84))['style'][_0x1b0561(0xab)] = _0x1b0561(0xb0), document['getElementById'](_0x1b0561(0xce))[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)](_0x1b0561(0xcf))[_0x1b0561(0xaf)]['display'] = _0x1b0561(0xa5), document[_0x1b0561(0xc8)](_0x1b0561(0xd7))['style'][_0x1b0561(0xab)] = 'block', document[_0x1b0561(0xc8)](_0x1b0561(0x88))[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)](_0x1b0561(0xbb))['style']['display'] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)](_0x1b0561(0x95))[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document['getElementById']('help-email')[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)](_0x1b0561(0xbf))[_0x1b0561(0xaf)]['display'] = _0x1b0561(0xa5);
if (_0x580d04[_0x1b0561(0xda)][0x0]['getAttribute']('id') == _0x1b0561(0xca)) var _0x59cedb = _0x580d04[_0x1b0561(0xda)][0x0][_0x1b0561(0xc3)];
if (_0x580d04[_0x1b0561(0xda)][0x0][_0x1b0561(0xb1)]('id') == 'host-description') {
var _0x248472 = _0x580d04[_0x1b0561(0xda)][0x0][_0x1b0561(0xc3)];
_0x11b2b8[_0x1b0561(0x7b)](_0x1b0561(0xb6) + _0x59cedb + _0x1b0561(0xb8) + _0x248472 + '</span>\" down-script=\":local id [/system identity get name]\\r\\ \\n:local dat [/system clock get date]\\r\\ \\n:local clk [/system clock get time]\\r\\ \\n:local hst \\$host\\r\\ \\n:local cmnt [/tool netwatch get value-name=comment [find host=\\$hst] comment]\\r\\ \\n/tool sms send message=\\\"From: [ \\$id ] - \\$clk - \\$dat - IP/Host: \\$hst - \\$cmnt -> DOWN\\\" phone-number=\\\"<span style=\"color:#ff6600\">' + _0x509107 + _0x1b0561(0xc9) + _0x1311ea + _0x1b0561(0x81) + _0x509107 + _0x1b0561(0xc9) + _0x1311ea + _0x1b0561(0xb5) + _0x1b0561(0xd2));
}
}
if (_0x1c669e == '04') {
document[_0x1b0561(0xc8)]('telegram')[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)]('input-chat-id')[_0x1b0561(0xaf)]['display'] = 'none', document['getElementById'](_0x1b0561(0x84))[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document['getElementById'](_0x1b0561(0xce))[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)](_0x1b0561(0xcf))[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document['getElementById'](_0x1b0561(0xd7))['style']['display'] = _0x1b0561(0xb0), document['getElementById'](_0x1b0561(0x88))['style']['display'] = _0x1b0561(0xa5), document[_0x1b0561(0xc8)]('help-telegram')[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)]('help-whatsapp')[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xb0), document[_0x1b0561(0xc8)](_0x1b0561(0xad))[_0x1b0561(0xaf)][_0x1b0561(0xab)] = _0x1b0561(0xa5), document[_0x1b0561(0xc8)](_0x1b0561(0xbf))['style'][_0x1b0561(0xab)] = 'none';
if (_0x580d04[_0x1b0561(0xda)][0x0][_0x1b0561(0xb1)]('id') == 'target-ip') var _0x59cedb = _0x580d04[_0x1b0561(0xda)][0x0][_0x1b0561(0xc3)];
if (_0x580d04[_0x1b0561(0xda)][0x0]['getAttribute']('id') == _0x1b0561(0xc2)) {
var _0x248472 = _0x580d04[_0x1b0561(0xda)][0x0]['value'];
_0x11b2b8[_0x1b0561(0x7b)](_0x1b0561(0xb6) + _0x59cedb + _0x1b0561(0xb8) + _0x248472 + _0x1b0561(0x91) + _0x4e679a + '</span>\\\" from=\\\"\\$id Monitoring\\\" subject=\\\"From: [ \\$id ] - \\$clk - \\$dat - IP/Host: \\$hst - \\$cmnt -> DOWN \\E2\\9D\\8C\\\" body=\\\"From: [ \\$id ] - \\$clk - \\$dat - IP/Host: \\$hst - \\$cmnt -> DOWN \\E2\\9D\\8C\\\" \" up-script=\":local id [/system identity get name]\\r\\ \\n:local dat [/system clock get date]\\r\\ \\n:local clk [/system clock get time]\\r\\ \\n:local hst \\$host\\r\\ \\n:local cmnt [/tool netwatch get value-name=comment [find host=\\$hst] comment]\\r\\ \\n/tool e-mail send to=\\\"<span style=\"color:#ff6600\">' + _0x4e679a + '</span>\\\" from=\\\"\\$id Monitoring\\\" subject=\\\"From: [ \\$id ] - \\$clk - \\$dat - IP/Host: \\$hst - \\$cmnt -> UP \\E2\\9C\\85\\\" body=\\\"From: [ \\$id ] - \\$clk - \\$dat - IP/Host: \\$hst - \\$cmnt -> UP \\E2\\9C\\85\\\" \"' + '<br>');
}
}
}
}
let _0x16abac = () => {
var _0x422c77 = _0x1b0561;
let _0x5acd6b = _0x11b2b8;
_0x1c669e == '01' && (document['getElementById'](_0x422c77(0xa2))[_0x422c77(0x94)] = _0x5acd6b[_0x422c77(0x7e)]('')), _0x1c669e == '02' && (document['getElementById'](_0x422c77(0xa2))[_0x422c77(0x94)] = _0x5acd6b[_0x422c77(0x7e)]('')), _0x1c669e == '03' && (document[_0x422c77(0xc8)](_0x422c77(0xa2))['innerHTML'] = _0x5acd6b[_0x422c77(0x7e)]('')), _0x1c669e == '04' && (document[_0x422c77(0xc8)](_0x422c77(0xa2))[_0x422c77(0x94)] = _0x5acd6b[_0x422c77(0x7e)](''));
};
_0x16abac();
}
function selectElementContents(_0x3ec1d4) {
var _0x35552d = _0x2111e9,
_0x108c04 = document[_0x35552d(0xa9)],
_0x162dd9, _0x528665;
if (document[_0x35552d(0xa4)] && window[_0x35552d(0xc4)]) {
_0x162dd9 = document['createRange'](), _0x528665 = window['getSelection'](), _0x528665['removeAllRanges']();
try {
_0x162dd9[_0x35552d(0xd6)](_0x3ec1d4), _0x528665[_0x35552d(0xb4)](_0x162dd9);
} catch (_0x248b81) {
_0x162dd9[_0x35552d(0x80)](_0x3ec1d4), _0x528665['addRange'](_0x162dd9);
}
} else _0x108c04[_0x35552d(0x8f)] && (_0x162dd9 = _0x108c04[_0x35552d(0x8f)](), _0x162dd9['moveToElementText'](_0x3ec1d4), _0x162dd9[_0x35552d(0xcb)]());
document[_0x35552d(0xbd)](_0x35552d(0x9b));
}
Function Calls
None |
Stats
MD5 | 7c4c27ba3f16b3849fedd283c645269c |
Eval Count | 0 |
Decode Time | 81 ms |