managehosting14ba02c2-aruba.zukunst.at
Open in
urlscan Pro
172.171.241.51
Malicious Activity!
Public Scan
Submitted URL: http://login-147b02bc-konsoleh-com.ordinationfestenburg.at/indexx.php
Effective URL: https://managehosting14ba02c2-aruba.zukunst.at/login.php?NfHD1msTPByTJJNpvTMSBOw1Smw0hBMNVq1v8SWuJkyAx4VCnpOejpaQYQ5HkmhVraeDjHBXYAFbaDEM62l643...
Submission: On September 15 via api from JP — Scanned from AT
Effective URL: https://managehosting14ba02c2-aruba.zukunst.at/login.php?NfHD1msTPByTJJNpvTMSBOw1Smw0hBMNVq1v8SWuJkyAx4VCnpOejpaQYQ5HkmhVraeDjHBXYAFbaDEM62l643...
Submission: On September 15 via api from JP — Scanned from AT
Form analysis
1 forms found in the DOMName: aspnetForm — POST ./report/index.php
<form method="post" action="./report/index.php" name="aspnetForm" id="aspnetForm">
<input type="hidden" name="what" value="LOGIN">
<div class="aspNetHidden">
</div>
<script class="sf-hidden">
//<![CDATA[
var theForm = document.forms['aspnetForm'];
if (!theForm) {
theForm = document.aspnetForm;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
//]]>
</script>
<script class="sf-hidden"
src="data:application/x-javascript;base64,ZnVuY3Rpb24gV2ViRm9ybV9Qb3N0QmFja09wdGlvbnMoZXZlbnRUYXJnZXQsIGV2ZW50QXJndW1lbnQsIHZhbGlkYXRpb24sIHZhbGlkYXRpb25Hcm91cCwgYWN0aW9uVXJsLCB0cmFja0ZvY3VzLCBjbGllbnRTdWJtaXQpIHsNCiAgICB0aGlzLmV2ZW50VGFyZ2V0ID0gZXZlbnRUYXJnZXQ7DQogICAgdGhpcy5ldmVudEFyZ3VtZW50ID0gZXZlbnRBcmd1bWVudDsNCiAgICB0aGlzLnZhbGlkYXRpb24gPSB2YWxpZGF0aW9uOw0KICAgIHRoaXMud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mICh0eXBlb2YoZG9jdW1lbnQuYWN0aXZlRWxlbWVudCkgPT0gInVuZGVmaW5lZCIpIHsNCiAgICAgICAgICAgICAgICAgICAgbGFzdEZvY3VzLnZhbHVlID0gb3B0aW9ucy5ldmVudFRhcmdldDsNCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgZWxzZSB7DQogICAgICAgICAgICAgICAgICAgIHZhciBhY3RpdmUgPSBkb2N1bWVudC5hY3RpdmVFbGVtZW50Ow0KICAgICAgICAgICAgICAgICAgICBpZiAoKHR5cGVvZihhY3RpdmUpICE9ICJ1bmRlZmluZWQiKSAmJiAoYWN0aXZlICE9IG51bGwpKSB7DQogICAgICAgICAgICAgICAgICAgICAgICBpZiAoKHR5cGVvZihhY3RpdmUuaWQpICE9ICJ1bmRlZmluZWQiKSAmJiAoYWN0aXZlLmlkICE9IG51bGwpICYmIChhY3RpdmUuaWQubGVuZ3RoID4gMCkpIHsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICBsYXN0Rm9jdXMudmFsdWUgPSBhY3RpdmUuaWQ7DQogICAgICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgICAgICBlbHNlIGlmICh0eXBlb2YoYWN0aXZlLm5hbWUpICE9ICJ1bmRlZmluZWQiKSB7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgbGFzdEZvY3VzLnZhbHVlID0gYWN0aXZlLm5hbWU7DQogICAgICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICB9DQogICAgICAgIH0NCiAgICB9DQogICAgaWYgKG9wdGlvbnMuY2xpZW50U3VibWl0KSB7DQogICAgICAgIF9fZG9Qb3N0QmFjayhvcHRpb25zLmV2ZW50VGFyZ2V0LCBvcHRpb25zLmV2ZW50QXJndW1lbnQpOw0KICAgIH0NCn0NCnZhciBfX3BlbmRpbmdDYWxsYmFja3MgPSBuZXcgQXJyYXk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w0KICAgICAgICBpZiAoZnJhZ21lbnRJbmRleCAhPT0gLTEpIHsNCiAgICAgICAgICAgIGFjdGlvbiA9IGFjdGlvbi5zdWJzdHIoMCwgZnJhZ21lbnRJbmRleCk7DQogICAgICAgIH0NCiAgICAgICAgaWYgKCFfX25vbk1TRE9NQnJvd3Nlcikgew0KICAgICAgICAgICAgdmFyIGRvbWFpbiA9ICIiOw0KICAgICAgICAgICAgdmFyIHBhdGggPSBhY3Rpb247DQogICAgICAgICAgICB2YXIgcXVlcnkgPSAiIjsNCiAgICAgICAgICAgIHZhciBxdWVyeUluZGV4ID0gYWN0aW9uLmluZGV4T2YoJz8nKTsNCiAgICAgICAgICAgIGlmIChxdWVyeUluZGV4ICE9PSAtMSkgew0KICAgICAgICAgICAgICAgIHF1ZXJ5ID0gYWN0aW9uLnN1YnN0cihxdWVyeUluZGV4KTsNCiAgICAgICAgICAgICAgICBwYXRoID0gYWN0aW9uLnN1YnN0cigwLCBxdWVyeUluZGV4KTsNCiAgICAgICAgICAgIH0NCiAgICAgICAgICAgIGlmIChwYXRoLmluZGV4T2YoIiUiKSA9PT0gLTEpIHsNCiAgICAgICAgICAgICAgICAvLyBkb21haW4gbWF5IG9yIG1heSBub3QgYmUgcHJlc2VudCAoZS5nLiBhY3Rpb24gb2YgImZvby5hc3B4IiB2cyAiaHR0cDoNCiAgICAgICAgICAgICAgICBpZiAoL15odHRwcz9cOlwvXC8uKiQvZ2kudGVzdChwYXRoKSkgew0KICAgICAgICAgICAgICAgICAgICB2YXIgZG9tYWluUGFydEluZGV4ID0gcGF0aC5pbmRleE9mKCJcL1wvIikgKyAyOw0KICAgICAgICAgICAgICAgICAgICB2YXIgc2xhc2hBZnRlckRvbWFpbiA9IHBhdGguaW5kZXhPZigiLyIsIGRvbWFpblBhcnRJbmRleCk7DQogICAgICAgICAgICAgICAgICAgIGlmIChzbGFzaEFmdGVyRG9tYWluID09PSAtMSkgew0KICAgICAgICAgICAgICAgICAgICAgICAgLy8gZW50aXJlIHVybCBpcyB0aGUgZG9tYWluIChlLmcuICJodHRwOg0KICAgICAgICAgICAgICAgICAgICAgICAgZG9tYWluID0gcGF0aDsNCiAgICAgICAgICAgICAgICAgICAgICAgIHBhdGggPSAiIjsNCiAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgICAgICBlbHNlIHsNCiAgICAgICAgICAgICAgICAgICAgICAgIGRvbWFpbiA9IHBhdGguc3Vic3RyKDAsIHNsYXNoQWZ0ZXJEb21haW4pOw0KICAgICAgICAgICAgICAgICAgICAgICAgcGF0aCA9IHBhdGguc3Vic3RyKHNsYXNoQWZ0ZXJEb21haW4pOw0KICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgIGFjdGlvbiA9IGRvbWFpbiArIGVuY29kZVVSSShwYXRoKSArIHF1ZXJ5Ow0KICAgICAgICAgICAgfQ0KICAgICAgICB9DQogICAgICAgIHhtbFJlcXVlc3Qub3BlbigiUE9TVCIsIGFjdGlvbiwgdHJ1ZSk7DQogICAgICAgIHhtbFJlcXVlc3Quc2V0UmVxdWVzdEhlYWRlcigiQ29udGVudC1UeXBlIiwgImFwcGxpY2F0aW9uL3gtd3d3LWZvcm0tdXJsZW5jb2RlZDsgY2hhcnNldD11dGYtOCIpOw0KICAgICAgICB4bWxSZXF1ZXN0LnNlbmQocG9zdERhdGEpOw0KICAgICAgICByZXR1cm47DQogICAgfQ0KICAgIGNhbGxiYWNrLnhtbFJlcXVlc3QgPSBuZXcgT2JqZWN0KCk7DQogICAgdmFyIGNhbGxiYWNrRnJhbWVJRCA9ICJfX0NBTExCQUNLRlJBTUUiICsgY2FsbGJhY2tJbmRleDsNCiAgICB2YXIgeG1sUmVxdWVzdEZyYW1lID0gZG9jdW1lbnQuZnJhbWVzW2NhbGxiYWNrRnJhbWVJRF07DQogICAgaWYgKCF4bWxSZXF1ZXN0RnJhbWUpIHsNCiAgICAgICAgeG1sUmVxdWVzdEZyYW1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vic3RyaW5nKDAsIHNlcGFyYXRvckluZGV4KSk7DQogICAgICAgICAgICBpZiAoIWlzTmFOKHZhbGlkYXRpb25GaWVsZExlbmd0aCkpIHsNCiAgICAgICAgICAgICAgICB2YXIgdmFsaWRhdGlvbkZpZWxkID0gcmVzcG9uc2Uuc3Vic3RyaW5nKHNlcGFyYXRvckluZGV4ICsgMSwgc2VwYXJhdG9ySW5kZXggKyB2YWxpZGF0aW9uRmllbGRMZW5ndGggKyAxKTsNCiAgICAgICAgICAgICAgICBpZiAodmFsaWRhdGlvbkZpZWxkICE9ICIiKSB7DQogICAgICAgICAgICAgICAgICAgIHZhciB2YWxpZGF0aW9uRmllbGRFbGVtZW50ID0gdGhlRm9ybVsiX19FVkVOVFZBTElEQVRJT04iXTsNCiAgICAgICAgICAgICAgICAgICAgaWYgKCF2YWxpZGF0aW9uRmllbGRFbGVtZW50KSB7DQogICAgICAgICAgICAgICAgICAgICAgICB2YWxpZGF0aW9uRmllbGRFbGVtZW50ID0gZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgiSU5QVVQiKTsNCiAgICAgICAgICAgICAgICAgICAgICAgIHZhbGlkYXRpb25GaWVsZEVsZW1lbnQudHlwZSA9ICJoaWRkZW4iOw0KICAgICAgICAgICAgICAgICAgICAgICAgdmFsaWRhdGlvbkZpZWxkRWxlbWVudC5uYW1lID0gIl9fRVZFTlRWQUxJREFUSU9OIjsNCiAgICAgICAgICAgICAgICAgICAgICAgIHRoZUZvcm0uYXBwZW5kQ2hpbGQodmFsaWRhdGlvbkZpZWxkRWxlbWVudCk7DQogICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgICAgdmFsaWRhdGlvbkZpZWxkRWxlbWVudC52YWx1ZSA9IHZhbGlkYXRpb25GaWVsZDsNCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgaWYgKCh0eXBlb2YoY2FsbGJhY2tPYmplY3QuZXZlbnRDYWxsYmFjaykgIT0gInVuZGVmaW5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0KICAgICAgICBjb3VudCA9IGZvcm1FbGVtZW50cy5sZW5ndGgsDQogICAgICAgIGVsZW1lbnQ7DQogICAgZm9yICh2YXIgaSA9IDA7IGkgPCBjb3VudDsgaSsrKSB7DQogICAgICAgIGVsZW1lbnQgPSBmb3JtRWxlbWVudHNbaV07DQogICAgICAgIHZhciB0YWdOYW1lID0gZWxlbWVudC50YWdOYW1lLnRvTG93ZXJDYXNlKCk7DQogICAgICAgIGlmICh0YWdOYW1lID09ICJpbnB1dCIpIHsNCiAgICAgICAgICAgIHZhciB0eXBlID0gZWxlbWVudC50eXBlOw0KICAgICAgICAgICAgaWYgKChfX2NhbGxiYWNrVGV4dFR5cGVzLnRlc3QodHlwZSkgfHwgKCh0eXBlID09ICJjaGVja2JveCIgfHwgdHlwZSA9PSAicmFkaW8iKSAmJiBlbGVtZW50LmNoZWNrZWQpKQ0KICAgICAgICAgICAgICAgICYmIChlbGVtZW50LmlkICE9ICJfX0VWRU5UVkFMSURBVElPTiIpKSB7DQogICAgICAgICAgICAgICAgV2ViRm9ybV9Jbml0Q2FsbGJhY2tBZGRGaWVsZChlbGVtZW50Lm5hbWUsIGVsZW1lbnQudmFsdWUpOw0KICAgICAgICAgICAgfQ0KICAgICAgICB9DQogICAgICAgIGVsc2UgaWYgKHRhZ05hbWUgPT0gInNlbGVjdCIpIHsNCiAgICAgICAgICAgIHZhciBzZWxlY3RDb3VudCA9IGVsZW1lbnQub3B0aW9ucy5sZW5ndGg7DQogICAgICAgICAgICBmb3IgKHZhciBqID0gMDsgaiA8IHNlbGVjdENvdW50OyBqKyspIHsNCiAgICAgICAgICAgICAgICB2YXIgc2VsZWN0Q2hpbGQgPSBlbGVtZW50Lm9wdGlvbnNbal07DQogICAgICAgICAgICAgICAgaWYgKHNlbGVjdENoaWxkLnNlbGVjdGVkID09IHRydWUpIHsNCiAgICAgICAgICAgICAgICAgICAgV2ViRm9ybV9Jbml0Q2FsbGJhY2tBZGRGaWVsZChlbGVtZW50Lm5hbWU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lZENvbnRyb2xBcnJheSkgPT0gJ3VuZGVmaW5lZCcpIHsNCiAgICAgICAgcmV0dXJuIGZhbHNlOw0KICAgIH0NCiAgICB2YXIgZGlzYWJsZWRJbmRleCA9IDA7DQogICAgZm9yICh2YXIgaSA9IDA7IGkgPCBfX2VuYWJsZWRDb250cm9sQXJyYXkubGVuZ3RoOyBpKyspIHsNCiAgICAgICAgdmFyIGM7DQogICAgICAgIGlmIChfX25vbk1TRE9NQnJvd3Nlcikgew0KICAgICAgICAgICAgYyA9IGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKF9fZW5hYmxlZENvbnRyb2xBcnJheVtpXSk7DQogICAgICAgIH0NCiAgICAgICAgZWxzZSB7DQogICAgICAgICAgICBjID0gZG9jdW1lbnQuYWxsW19fZW5hYmxlZENvbnRyb2xBcnJheVtpXV07DQogICAgICAgIH0NCiAgICAgICAgaWYgKCh0eXBlb2YoYykgIT0gInVuZGVmaW5lZCIpICYmIChjICE9IG51bGwpICYmIChjLmRpc2FibGVkID09IHRydWUpKSB7DQogICAgICAgICAgICBjLmRpc2FibGVkID0gZmFsc2U7DQogICAgICAgICAgICBfX2Rpc2FibGVkQ29udHJvbEFycmF5W2Rpc2FibGVkSW5kZXgrK10gPSBjOw0KICAgICAgICB9DQogICAgfQ0KICAgIHNldFRpbWVvdXQoIldlYkZvcm1fUmVEaXNhYmxlQ29udHJvbHMoKSIsIDApOw0KICAgIHJldHVybiB0cnVlOw0KfQ0KZnVuY3Rpb24gV2ViRm9ybV9SZURpc2FibGVDb250cm9scygpIHsNCiAgICBmb3IgKHZhciBpID0gMDsgaSA8IF9fZGlzYWJsZWRDb250cm9sQXJyYXkubGVuZ3RoOyBpKyspIHsNCiAgICAgICAgX19kaXNhYmxlZENvbnRyb2xBcnJheVtpXS5kaXNhYmxlZCA9IHRydWU7DQogICAgfQ0KfQ0KZnVuY3Rpb24gV2ViRm9ybV9TaW11bGF0ZUNsaWNrKGVsZW1lbnQsIGV2ZW50KSB7DQog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SA9PSAic3VibWl0IiB8fCBzcmMudHlwZS50b0xvd2VyQ2FzZSgpID09ICJidXR0b24iKSkgfHwNCiAgICAgICAgICAgICgoc3JjLnRhZ05hbWUudG9Mb3dlckNhc2UoKSA9PSAiYSIpICYmDQogICAgICAgICAgICAgKHNyYy5ocmVmICE9IG51bGwpICYmIChzcmMuaHJlZiAhPSAiIikpIHx8DQogICAgICAgICAgICAoc3JjLnRhZ05hbWUudG9Mb3dlckNhc2UoKSA9PSAidGV4dGFyZWEiKSkgew0KICAgICAgICAgICAgcmV0dXJuIHRydWU7DQogICAgICAgIH0NCiAgICAgICAgdmFyIGRlZmF1bHRCdXR0b247DQogICAgICAgIGlmIChfX25vbk1TRE9NQnJvd3Nlcikgew0KICAgICAgICAgICAgZGVmYXVsdEJ1dHRvbiA9IGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKHRhcmdldCk7DQogICAgICAgIH0NCiAgICAgICAgZWxzZSB7DQogICAgICAgICAgICBkZWZhdWx0QnV0dG9uID0gZG9jdW1lbnQuYWxsW3RhcmdldF07DQogICAgICAgIH0NCiAgICAgICAgaWYgKGRlZmF1bHRCdXR0b24pIHsNCiAgICAgICAgICAgIHJldHVybiBXZWJGb3JtX1NpbXVsYXRlQ2xpY2soZGVmYXVsdEJ1dHRvbiwgZXZlbnQpOw0KICAgICAgICB9IA0KICAgIH0NCiAgICByZXR1cm4gdHJ1ZTsNCn0NCmZ1bmN0aW9uIFdlYkZvcm1fR2V0U2Nyb2xsWCgpIHsNCiAgICBpZiAoX19ub25NU0RPTUJyb3dzZXIpIHsNCiAgICAgICAgcmV0dXJuIHdpbmRvdy5wYWdlWE9mZnNldDsNCiAgICB9DQogICAgZWxzZSB7DQogICAgICAgIGlmIChkb2N1bWVudC5kb2N1bWVudEVsZW1lbnQgJiYgZG9jdW1lbnQuZG9jdW1lbnRFbGVtZW50LnNjcm9sbExlZnQpIHsNCiAgICAgICAgICAgIHJldHVybiBkb2N1bWVudC5kb2N1bWVudEVsZ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ICAgICAgICAgICAgICAgIHBhcmVudFRhZ05hbWUgIT0gImJvZHkiICYmIA0KICAgICAgICAgICAgICAgIHBhcmVudFRhZ05hbWUgIT0gImh0bWwiICYmIA0KICAgICAgICAgICAgICAgIHBhcmVudFRhZ05hbWUgIT0gImRpdiIgJiYgDQogICAgICAgICAgICAgICAgcGFyZW50LmNsaWVudFRvcCAmJiANCiAgICAgICAgICAgICAgICBwYXJlbnQuY2xpZW50TGVmdCkgew0KICAgICAgICAgICAgICAgIHJlc3VsdC54ICs9IHBhcmVudC5jbGllbnRMZWZ0Ow0KICAgICAgICAgICAgICAgIHJlc3VsdC55ICs9IHBhcmVudC5jbGllbnRUb3A7DQogICAgICAgICAgICB9DQogICAgICAgICAgICBwYXJlbnQgPSBwYXJlbnQub2Zmc2V0UGFyZW50Ow0KICAgICAgICB9DQogICAgfQ0KICAgIGVsc2UgaWYgKGVsZW1lbnQubGVmdCAmJiBlbGVtZW50LnRvcCkgew0KICAgICAgICByZXN1bHQueCA9IGVsZW1lbnQubGVmdDsNCiAgICAgICAgcmVzdWx0LnkgPSBlbGVtZW50LnRvcDsNCiAgICB9DQogICAgZWxzZSB7DQogICAgICAgIGlmIChlbGVtZW50LngpIHsNCiAgICAgICAgICAgIHJlc3VsdC54ID0gZWxlbWVudC54Ow0KICAgICAgICB9DQogICAgICAgIGlmIChlbGVtZW50LnkpIHsNCiAgICAgICAgICAgIHJlc3VsdC55ID0gZWxlbWVudC55Ow0KICAgICAgICB9DQogICAgfQ0KICAgIGlmIChlbGVtZW50Lm9mZnNldFdpZHRoICYmIGVsZW1lbnQub2Zmc2V0SGVpZ2h0KSB7DQogICAgICAgIHJlc3VsdC53aWR0aCA9IGVsZW1lbnQub2Zmc2V0V2lkdGg7DQogICAgICAgIHJlc3VsdC5oZWlnaHQgPSBlbGVtZW50Lm9mZnNldEhlaWdodDsNCiAgICB9DQogICAgZWxzZSBpZiAoZWxlbWVudC5zdHlsZSAmJiBlbGVtZW50LnN0eWxlLnBp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VudFgoZWxlbWVudCwgeCkgew0KICAgIGlmIChlbGVtZW50ICYmIGVsZW1lbnQuc3R5bGUpIHsNCiAgICAgICAgZWxlbWVudC5zdHlsZS5sZWZ0ID0geCArICJweCI7DQogICAgfQ0KfQ0KZnVuY3Rpb24gV2ViRm9ybV9TZXRFbGVtZW50WShlbGVtZW50LCB5KSB7DQogICAgaWYgKGVsZW1lbnQgJiYgZWxlbWVudC5zdHlsZSkgew0KICAgICAgICBlbGVtZW50LnN0eWxlLnRvcCA9IHkgKyAicHgiOw0KICAgIH0NCn0=">
</script>
<script class="sf-hidden"
src="data:application/x-javascript;base64,77u/dmFyIFBhZ2VfVmFsaWRhdGlvblZlciA9ICIxMjUiOw0KdmFyIFBhZ2VfSXNWYWxpZCA9IHRydWU7DQp2YXIgUGFnZV9CbG9ja1N1Ym1pdCA9IGZhbHNlOw0KdmFyIFBhZ2VfSW52YWxpZENvbnRyb2xUb0JlRm9jdXNlZCA9IG51bGw7DQp2YXIgUGFnZV9UZXh0VHlwZXMgPSAvXih0ZXh0fHBhc3N3b3JkfGZpbGV8c2VhcmNofHRlbHx1cmx8ZW1haWx8bnVtYmVyfHJhbmdlfGNvbG9yfGRhdGV0aW1lfGRhdGV8bW9udGh8d2Vla3x0aW1lfGRhdGV0aW1lLWxvY2FsKSQvaTsNCmZ1bmN0aW9uIFZhbGlkYXRvclVwZGF0ZURpc3BsYXkodmFsKSB7DQogICAgaWYgKHR5cGVvZih2YWwuZGlzcGxheSkgPT0gInN0cmluZyIpIHsNCiAgICAgICAgaWYgKHZhbC5kaXNwbGF5ID09ICJOb25lIikgew0KICAgICAgICAgICAgcmV0dXJuOw0KICAgICAgICB9DQogICAgICAgIGlmICh2YWwuZGlzcGxheSA9PSAiRHluYW1pYyIpIHsNCiAgICAgICAgICAgIHZhbC5zdHlsZS5kaXNwbGF5ID0gdmFsLmlzdmFsaWQgPyAibm9uZSIgOiAiaW5saW5lIjsNCiAgICAgICAgICAgIHJldHVybjsNCiAgICAg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GN0cmwpICE9ICJ1bmRlZmluZWQiKSAmJiAoY3RybCAhPSBudWxsKSkgew0KICAgICAgICBWYWxpZGF0b3JIb29rdXBDb250cm9sKGN0cmwsIHZhbCk7DQogICAgfQ0KICAgIGVsc2Ugew0KICAgICAgICB2YWwuaXN2YWxpZCA9IHRydWU7DQogICAgICAgIHZhbC5lbmFibGVkID0gZmFsc2U7DQogICAgfQ0KfQ0KZnVuY3Rpb24gVmFsaWRhdG9ySG9va3VwQ29udHJvbChjb250cm9sLCB2YWwpIHsNCiAgICBpZiAodHlwZW9mKGNvbnRyb2wudGFnTmFtZSkgIT0gInN0cmluZyIpIHsNCiAgICAgICAgcmV0dXJuOyAgDQogICAgfQ0KICAgIGlmIChjb250cm9sLnRhZ05hbWUgIT0gIklOUFVUIiAmJiBjb250cm9sLnRhZ05hbWUgIT0gIlRFWFRBUkVBIiAmJiBjb250cm9sLnRhZ05hbWUgIT0gIlNFTEVDVCIpIHsNCiAgICAgICAgdmFyIGk7DQogICAgICAgIGZvciAoaSA9IDA7IGkgPCBjb250cm9sLmNoaWxkTm9kZXMubGVuZ3RoOyBpKyspIHsNCiAgICAgICAgICAgIFZhbGlkYXRvckhvb2t1cENvbnRyb2woY29udHJvbC5jaGlsZE5vZGVzW2ldLCB2YWwpOw0KICAgICAgICB9DQogICAgICAgIHJldHVybjsNCiAgICB9DQogICAgZWxzZSB7DQogICAgICAgIGlmICh0eXBlb2YoY29udHJvbC5WYWxpZGF0b3JzKSA9PSAidW5kZWZpbmVkIikgew0KICAgICAgICAgICAgY29udHJvbC5WYWxpZGF0b3JzID0gbmV3IEFycmF5Ow0KICAgICAgICAgICAgdmFyIGV2ZW50VHlwZTsNCiAgICAgICAgICAgIGlmIChjb250cm9sLnR5cGUgPT0gInJhZGlvIikgew0KICAgICAgICAgICAgICAgIGV2ZW50VHlwZSA9ICJvbmNsaWNrIjsNCiAgICAgICAgICAgIH0gZWxzZSB7DQogICAgICAgICAgICAgICAgZXZlbnRUeXBlID0gIm9uY2hhbmdlIjsNCiAgICAgICAgICAgICAgICBpZiAodHlwZW9mKHZhbC5mb2N1c09uRXJyb3IpID09ICJzdHJpbmciICYmIHZhbC5mb2N1c09uRXJyb3IgPT0gInQiKSB7DQogICAgICAgICAgICAgICAgICAgIFZhbGlkYXRvckhvb2t1cEV2ZW50KGNvbnRyb2wsICJvbmJsdXIiLCAiVmFsaWRhdGVkQ29udHJvbE9uQmx1cihldmVudCk7ICIpOw0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgIH0NCiAgICAgICAgICAgIFZhbGlkYXRvckhvb2t1cEV2ZW50KGNvbnRyb2wsIGV2ZW50VHlwZSwgIlZhbGlkYXRvck9uQ2hhbmdlKGV2ZW50KTsgIik7DQogICAgICAgICAgICBpZiAoUGFnZV9UZXh0VHlwZXMudGVzdChjb250cm9sLnR5cGUpKSB7DQogICAgICAgICAgICAgICAgVmFsaWRhdG9ySG9va3VwRXZlbnQoY29udHJvbCwgIm9ua2V5cHJlc3MiLCANCiAgICAgICAgICAgICAgICAgICAgImV2ZW50ID0gZXZlbnQgfHwgd2luZG93LmV2ZW50OyBpZiAoIVZhbGlkYXRlZFRleHRCb3hPbktleVByZXNzKGV2ZW50KSkgeyBldmVudC5jYW5jZWxCdWJibGUgPSB0cnVlOyBpZiAoZXZlbnQuc3RvcFByb3BhZ2F0aW9uKSBldmVudC5zdG9wUHJvcGFnYXRpb24oKTsgcmV0dXJuIGZhbHNlOyB9ICIpOw0KICAgICAgICAgICAgfQ0KICAgICAgICB9DQogICAgICAgIGNvbnRyb2wuVmFsaWRhdG9yc1tjb250cm9sLlZhbGlkYXRvcnMubGVuZ3RoXSA9IHZhbDsNCiAgICB9DQp9DQpmdW5jdGlvbiBWYWxpZGF0b3JIb29rdXBFdmVudChjb250cm9sLCBldmVudFR5cGUsIGZ1bmN0aW9uUHJlZml4KSB7DQogICAgdmFyIGV2ID0gY29udHJvbFtldmVudFR5cGVdOw0KICAgIGlmICh0eXBlb2YoZXYp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GlzcGxheSh2YWwpOw0KfQ0KZnVuY3Rpb24gVmFsaWRhdG9yU2V0Rm9jdXModmFsLCBldmVudCkgew0KICAgIHZhciBjdHJsOw0KICAgIGlmICh0eXBlb2YodmFsLmNvbnRyb2xob29rdXApID09ICJzdHJpbmciKSB7DQogICAgICAgIHZhciBldmVudEN0cmw7DQogICAgICAgIGlmICgodHlwZW9mKGV2ZW50KSAhPSAidW5kZWZpbmVkIikgJiYgKGV2ZW50ICE9IG51bGwpKSB7DQogICAgICAgICAgICBpZiAoKHR5cGVvZihldmVudC5zcmNFbGVtZW50KSAhPSAidW5kZWZpbmVkIikgJiYgKGV2ZW50LnNyY0VsZW1lbnQgIT0gbnVsbCkpIHsNCiAgICAgICAgICAgICAgICBldmVudEN0cmwgPSBldmVudC5zcmNFbGVtZW50Ow0KICAgICAgICAgICAgfQ0KICAgICAgICAgICAgZWxzZSB7DQogICAgICAgICAgICAgICAgZXZlbnRDdHJsID0gZXZlbnQudGFyZ2V0Ow0KICAgICAgICAgICAgfQ0KICAgICAgICB9DQogICAgICAgIGlmICgodHlwZW9mKGV2ZW50Q3RybCkgIT0gInVuZGVmaW5lZCIpICYmIChldmVudEN0cmwgIT0gbnVsbCkgJiYNCiAgICAgICAgICAgICh0eXBlb2YoZXZlbnRDdHJsLmlkKSA9PSAic3RyaW5nIikgJiYNCiAgICAgICAgICAgIChldmVudEN0cmwuaWQgPT0gdmFsLmNvbnRyb2xob29rdXApKSB7DQogICAgICAgICAgICBjdHJsID0gZXZlbnRDdHJsOw0KICAgICAgICB9DQogICAgfQ0KICAgIGlmICgodHlwZW9mKGN0cmwpID09ICJ1bmRlZmluZWQiKSB8fCAoY3RybCA9PSBudWxsKSkgew0KICAgICAgICBjdHJsID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQodmFsLmNvbnRyb2x0b3ZhbGlkYXRlKTsNCiAgICB9DQogICAgaWYgKCh0eXBlb2YoY3RybCkgIT0gInVuZGVmaW5lZCIpICYmIChjdH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b2ZmWWVhckNlbnR1cnkgKyB5ZWFyKSk7DQogICAgfQ0KICAgIHZhciBudW0sIGNsZWFuSW5wdXQsIG0sIGV4cDsNCiAgICBpZiAoZGF0YVR5cGUgPT0gIkludGVnZXIiKSB7DQogICAgICAgIGV4cCA9IC9eXHMqWy1cK10/XGQrXHMqJC87DQogICAgICAgIGlmIChvcC5tYXRjaChleHApID09IG51bGwpDQogICAgICAgICAgICByZXR1cm4gbnVsbDsNCiAgICAgICAgbnVtID0gcGFyc2VJbnQob3AsIDEwKTsNCiAgICAgICAgcmV0dXJuIChpc05hTihudW0pID8gbnVsbCA6IG51bSk7DQogICAgfQ0KICAgIGVsc2UgaWYoZGF0YVR5cGUgPT0gIkRvdWJsZSIpIHsNCiAgICAgICAgZXhwID0gbmV3IFJlZ0V4cCgiXlxccyooWy1cXCtdKT8oXFxkKilcXCIgKyB2YWwuZGVjaW1hbGNoYXIgKyAiPyhcXGQqKVxccyokIik7DQogICAgICAgIG0gPSBvcC5tYXRjaChleHApOw0KICAgICAgICBpZiAobSA9PSBudWxsKQ0KICAgICAgICAgICAgcmV0dXJuIG51bGw7DQogICAgICAgIGlmIChtWzJdLmxlbmd0aCA9PSAwICYmIG1bM10ubGVuZ3RoID09IDApDQogICAgICAgICAgICByZXR1cm4gbnVsbDsNCiAgICAgICAgY2xlYW5JbnB1dCA9IChtWzFdICE9IG51bGwgPyBtWzFdIDogIiIpICsgKG1bMl0ubGVuZ3RoPjAgPyBtWzJdIDogIjAiKSArIChtWzNdLmxlbmd0aD4wID8gIi4iICsgbVszXSA6ICIiKTsNCiAgICAgICAgbnVtID0gcGFyc2VGbG9hdChjbGVhbklucHV0KTsNCiAgICAgICAgcmV0dXJuIChpc05hTihudW0pID8gbnVsbCA6IG51bSk7DQogICAgfQ0KICAgIGVsc2UgaWYgKGRhdGFUeXBlID09ICJDdXJyZW5jeSIpIHsNCiAgICAgICAgdmFyIGhhc0RpZ2l0cyA9ICh2YWwuZGlnaXRzID4gMCk7DQogICAgICAgIHZhciBiZWdpbkdyb3VwU2l6ZSwgc3Vic2VxdWVudEdyb3VwU2l6ZTsNCiAgICAgICAgdmFyIGdyb3VwU2l6ZU51bSA9IHBhcnNlSW50KHZhbC5ncm91cHNpemUsIDEwKTsNCiAgICAgICAgaWYgKCFpc05hTihncm91cFNpemVOdW0pICYmIGdyb3VwU2l6ZU51bSA+IDApIHsNCiAgICAgICAgICAgIGJlZ2luR3JvdXBTaXplID0gInsxLCIgKyBncm91cFNpemVOdW0gKyAifSI7DQogICAgICAgICAgICBzdWJzZXF1ZW50R3JvdXBTaXplID0gInsiICsgZ3JvdXBTaXplTnVtICsgIn0iOw0KICAgICAgICB9DQogICAgICAgIGVsc2Ugew0KICAgICAgICAgICAgYmVnaW5Hcm91cFNpemUgPSBzdWJzZXF1ZW50R3JvdXBTaXplID0gIisiOw0KICAgICAgICB9DQogICAgICAgIGV4cCA9IG5ldyBSZWdFeHAoIl5cXHMqKFstXFwrXSk/KChcXGQiICsgYmVnaW5Hcm91cFNpemUgKyAiKFxcIiArIHZhbC5ncm91cGNoYXIgKyAiXFxkIiArIHN1YnNlcXVlbnRHcm91cFNpemUgKyAiKSspfFxcZCopIg0KICAgICAgICAgICAgICAgICAgICAgICAgKyAoaGFzRGlnaXRzID8gIlxcIiArIHZhbC5kZWNpbWFsY2hhciArICI/KFxcZHswLCIgKyB2YWwuZGlnaXRzICsgIn0pIiA6ICIiKQ0KICAgICAgICAgICAgICAgICAgICAgICAgKyAiXFxzKiQiKTsNCiAgICAgICAgbSA9IG9wLm1hdGNoKGV4cCk7DQogICAgICAgIGlmIChtID09IG51bGwpDQogICAgICAgICAgICByZXR1cm4gbnVsbDsNCiAgICAgICAgaWYgKG1bMl0ubGVuZ3RoID09IDAgJiYgaGFzRGlnaXRzICYmIG1bNV0ubGVuZ3RoID09IDApDQogICAgICAgICAgICByZXR1cm4gbnVsbDsNCiAgICAgICAgY2xlYW5JbnB1dCA9IChtWzFdICE9IG51bGwgPyBtWzFd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ZHsxLDJ9KShbLS9dfFxcLiA/KShcXGR7MSwyfSkoPzpcXHN8XFwyKSgoXFxkezR9KXwoXFxkezJ9KSkoPzpcXHNcdTA0MzNcXC58XFwuKT9cXHMqJCIpOw0KICAgICAgICAgICAgbSA9IG9wLm1hdGNoKHllYXJMYXN0RXhwKTsNCiAgICAgICAgICAgIGlmIChtID09IG51bGwpIHsNCiAgICAgICAgICAgICAgICByZXR1cm4gbnVsbDsNCiAgICAgICAgICAgIH0NCiAgICAgICAgICAgIGlmICh2YWwuZGF0ZW9yZGVyID09ICJtZHkiKSB7DQogICAgICAgICAgICAgICAgZGF5ID0gbVszXTsNCiAgICAgICAgICAgICAgICBtb250aCA9IG1bMV07DQogICAgICAgICAgICB9DQogICAgICAgICAgICBlbHNlIHsNCiAgICAgICAgICAgICAgICBkYXkgPSBtWzFdOw0KICAgICAgICAgICAgICAgIG1vbnRoID0gbVszXTsNCiAgICAgICAgICAgIH0NCiAgICAgICAgICAgIHllYXIgPSAoKHR5cGVvZihtWzVdKSAhPSAidW5kZWZpbmVkIikgJiYgKG1bNV0ubGVuZ3RoID09IDQpKSA/IG1bNV0gOiBHZXRGdWxsWWVhcihwYXJzZUludChtWzZdLCAxMCkpOw0KICAgICAgICB9DQogICAgICAgIG1vbnRoIC09IDE7DQogICAgICAgIHZhciBkYXRlID0gbmV3IERhdGUoeWVhciwgbW9udGgsIGRheSk7DQogICAgICAgIGlmICh5ZWFyIDwgMTAwKSB7DQogICAgICAgICAgICBkYXRlLnNldEZ1bGxZZWFyKHllYXIpOw0KICAgICAgICB9DQogICAgICAgIHJldHVybiAodHlwZW9mKGRhdGUpID09ICJvYmplY3QiICYmIHllYXIgPT0gZGF0ZS5nZXRGdWxsWWVhcigpICYmIG1vbnRoID09IGRhdGUuZ2V0TW9udGgoKSAmJiBkYXkgPT0gZGF0ZS5nZXREYXRlKCkpID8gZGF0ZS52YWx1ZU9mKCkgOiBudWxsOw0KICAgIH0NCiAgICBlbHNlIHsNCiAgICA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DsNCiAgICBmb3IgKHN1bXMgPSAwOyBzdW1zIDwgUGFnZV9WYWxpZGF0aW9uU3VtbWFyaWVzLmxlbmd0aDsgc3VtcysrKSB7DQogICAgICAgIHN1bW1hcnkgPSBQYWdlX1ZhbGlkYXRpb25TdW1tYXJpZXNbc3Vtc107DQogICAgICAgIGlmICghc3VtbWFyeSkgY29udGludWU7DQogICAgICAgIHN1bW1hcnkuc3R5bGUuZGlzcGxheSA9ICJub25lIjsNCiAgICAgICAgaWYgKCFQYWdlX0lzVmFsaWQgJiYgSXNWYWxpZGF0aW9uR3JvdXBNYXRjaChzdW1tYXJ5LCB2YWxpZGF0aW9uR3JvdXApKSB7DQogICAgICAgICAgICB2YXIgaTsNCiAgICAgICAgICAgIGlmIChzdW1tYXJ5LnNob3dzdW1tYXJ5ICE9ICJGYWxzZSIpIHsNCiAgICAgICAgICAgICAgICBzdW1tYXJ5LnN0eWxlLmRpc3BsYXkgPSAiIjsNCiAgICAgICAgICAgICAgICBpZiAodHlwZW9mKHN1bW1hcnkuZGlzcGxheW1vZGUpICE9ICJzdHJpbmciKSB7DQogICAgICAgICAgICAgICAgICAgIHN1bW1hcnkuZGlzcGxheW1vZGUgPSAiQnVsbGV0TGlzdCI7DQogICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgIHN3aXRjaCAoc3VtbWFyeS5kaXNwbGF5bW9kZSkgew0KICAgICAgICAgICAgICAgICAgICBjYXNlICJMaXN0IjoNCiAgICAgICAgICAgICAgICAgICAgICAgIGhlYWRlclNlcCA9ICI8YnI+IjsNCiAgICAgICAgICAgICAgICAgICAgICAgIGZpcnN0ID0gIiI7DQogICAgICAgICAgICAgICAgICAgICAgICBwcmUgPSAiIjsNCiAgICAgICAgICAgICAgICAgICAgICAgIHBvc3QgPSAiPGJyPiI7DQogICAgICAgICAgICAgICAgICAgICAgICBlbmQgPSAiIjsNCiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrOw0KICAgICAgICAgICAgICAgICAgICBjYXNlICJCdWxsZXRMaXN0IjoNCiAgICAgICAgICAgICAgICAgICAgZGVmYXVsdDoNCiAgICAgICAgICAgICAgICAgICAgICAgIGhlYWRlclNlcCA9ICIiOw0KICAgICAgICAgICAgICAgICAgICAgICAgZmlyc3QgPSAiPHVsPiI7DQogICAgICAgICAgICAgICAgICAgICAgICBwcmUgPSAiPGxpPiI7DQogICAgICAgICAgICAgICAgICAgICAgICBwb3N0ID0gIjwvbGk+IjsNCiAgICAgICAgICAgICAgICAgICAgICAgIGVuZCA9ICI8L3VsPiI7DQogICAgICAgICAgICAgICAgICAgICAgICBicmVhazsNCiAgICAgICAgICAgICAgICAgICAgY2FzZSAiU2luZ2xlUGFyYWdyYXBoIjoNCiAgICAgICAgICAgICAgICAgICAgICAgIGhlYWRlclNlcCA9ICIgIjsNCiAgICAgICAgICAgICAgICAgICAgICAgIGZpcnN0ID0gIiI7DQogICAgICAgICAgICAgICAgICAgICAgICBwcmUgPSAiIjsNCiAgICAgICAgICAgICAgICAgICAgICAgIHBvc3QgPSAiICI7DQogICAgICAgICAgICAgICAgICAgICAgICBlbmQgPSAiPGJyPiI7DQogICAgICAgICAgICAgICAgICAgICAgICBicmVhazsNCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgcyA9ICIiOw0KICAgICAgICAgICAgICAgIGlmICh0eXBlb2Yoc3VtbWFyeS5oZWFkZXJ0ZXh0KSA9PSAic3RyaW5nIikgew0KICAgICAgICAgICAgICAgICAgICBzICs9IHN1bW1hcnkuaGVhZGVydGV4dCArIGhlYWRlclNlcDsNCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgcyArPSBmaXJzdDsNCiAgICAgICAgICAgICAgICBmb3IgKGk9MDsgaTxQYWdlX1ZhbGlkYXRvcnMubGVuZ3RoOyBpKyspIHsNCiAgICAgICAgICAgICAgICAgICAgaWYgKCFQYWdlX1ZhbGlkYXRvcnNbaV0uaXN2YWxpZCAmJiB0eXBlb2YoUGFnZV9WYWxpZGF0b3JzW2ldLmVycm9ybWVzc2FnZSkgPT0gInN0cmluZyIpIHsNCiAgICAgICAgICAgICAgICAgICAgICAgIHMgKz0gcHJlICsgUGFnZV9WYWxpZGF0b3JzW2ldLmVycm9ybWVzc2FnZSArIHBvc3Q7DQogICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgcyArPSBlbmQ7DQogICAgICAgICAgICAgICAgc3VtbWFyeS5pbm5lckhUTUwgPSBzOw0KICAgICAgICAgICAgICAgIHdpbmRvdy5zY3JvbGxUbygwLDApOw0KICAgICAgICAgICAgfQ0KICAgICAgICAgICAgaWYgKHN1bW1hcnkuc2hvd21lc3NhZ2Vib3ggPT0gIlRydWUiKSB7DQogICAgICAgICAgICAgICAgcyA9ICIiOw0KICAgICAgICAgICAgICAgIGlmICh0eXBlb2Yoc3VtbWFyeS5oZWFkZXJ0ZXh0KSA9PSAic3RyaW5nIikgew0KICAgICAgICAgICAgICAgICAgICBzICs9IHN1bW1hcnkuaGVhZGVydGV4dCArICJcclxuIjsNCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgdmFyIGxhc3RWYWxJbmRleCA9IFBhZ2VfVmFsaWRhdG9ycy5sZW5ndGggLSAxOw0KICAgICAgICAgICAgICAgIGZvciAoaT0wOyBpPD1sYXN0VmFsSW5kZXg7IGkrKykgew0KICAgICAgICAgICAgICAgICAgICBpZiAoIVBhZ2VfVmFsaWRhdG9yc1tpXS5pc3ZhbGlkICYmIHR5cGVvZihQYWdlX1ZhbGlkYXRvcnNbaV0uZXJyb3JtZXNzYWdlKSA9PSAic3RyaW5nIikgew0KICAgICAgICAgICAgICAgICAgICAgICAgc3dpdGNoIChzdW1tYXJ5LmRpc3BsYXltb2RlKSB7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgY2FzZSAiTGlzdCI6DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHMgKz0gUGFnZV9WYWxpZGF0b3JzW2ldLmVycm9ybWVzc2FnZTsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGkgPCBsYXN0VmFsSW5kZXgpIHsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHMgKz0gIlxyXG4iOw0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrOw0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhc2UgIkJ1bGxldExpc3QiOg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRlZmF1bHQ6DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHMgKz0gIi0gIiArIFBhZ2VfVmFsaWRhdG9yc1tpXS5lcnJvcm1lc3NhZ2U7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChpIDwgbGFzdFZhbEluZGV4KSB7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzICs9ICJcclxuIjsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBicmVhazsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYXNlICJTaW5nbGVQYXJhZ3JhcGgiOg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzICs9IFBhZ2VfVmFsaWRhdG9yc1tpXS5lcnJvcm1lc3NhZ2UgKyAiICI7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrOw0KICAgICAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgIGFsZXJ0KHMpOw0KICAgICAgICAgICAgfQ0KICAgICAgICB9DQogICAgfQ0KfQ0KaWYgKHdpbmRvdy5qUXVlcnkpIHsNCiAgICAoZnVuY3Rpb24gKCQpIHsNCiAgICAgICAgdmFyIG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ycygpIHsNCiAgICAgICAgICAgIGlmICh0eXBlb2YgKFZhbGlkYXRvck9uTG9hZCkgPT09ICJmdW5jdGlvbiIpIHsNCiAgICAgICAgICAgICAgICBWYWxpZGF0b3JPbkxvYWQoKTsNCiAgICAgICAgICAgIH0NCiAgICAgICAgICAgIGlmICh0eXBlb2YgKFZhbGlkYXRvck9uU3VibWl0KSA9PT0gInVuZGVmaW5lZCIpIHsNCiAgICAgICAgICAgICAgICB3aW5kb3cuVmFsaWRhdG9yT25TdWJtaXQgPSBmdW5jdGlvbiAoKSB7DQogICAgICAgICAgICAgICAgICAgIHJldHVybiBQYWdlX1ZhbGlkYXRpb25BY3RpdmUgPyBWYWxpZGF0b3JDb21tb25PblN1Ym1pdCgpIDogdHJ1ZTsNCiAgICAgICAgICAgICAgICB9Ow0KICAgICAgICAgICAgfQ0KICAgICAgICB9DQogICAgICAgIGZ1bmN0aW9uIHJlZ2lzdGVyVXBkYXRlUGFuZWwoKSB7DQogICAgICAgICAgICBpZiAod2luZG93LlN5cyAmJiBTeXMuV2ViRm9ybXMgJiYgU3lzLldlYkZvcm1zLlBhZ2VSZXF1ZXN0TWFuYWdlcikgew0KICAgICAgICAgICAgICAgIHZhciBwcm0gPSBTeXMuV2ViRm9ybXMuUGFnZVJlcXVlc3RNYW5hZ2VyLmdldEluc3RhbmNlKCksDQogICAgICAgICAgICAgICAgICAgIHBvc3RCYWNrRWxlbWVudCwgZW5kUmVxdWVzdEhhbmRsZXI7DQogICAgICAgICAgICAgICAgaWYgKHBybS5nZXRfaXNJbkFzeW5jUG9zdEJhY2soKSkgew0KICAgICAgICAgICAgICAgICAgICBlbmRSZXF1ZXN0SGFuZGxlciA9IGZ1bmN0aW9uIChzZW5kZXIsIGFyZ3MpIHsNCiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChwYXJzZShkb2N1bWVudCkpIHsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICBsb2FkVmFsaWRhdG9ycygpOw0KICAgICAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgICAgICAgICAgcHJtLnJlbW92ZV9lbmRSZXF1ZXN0KGVuZFJlcXVlc3RIYW5kbGVyKTsNCiAgICAgICAgICAgICAgICAgICAgICAgIGVuZFJlcXVlc3RIYW5kbGVyID0gbnVsbDsNCiAgICAgICAgICAgICAgICAgICAgfTsNCiAgICAgICAgICAgICAgICAgICAgcHJtLmFkZF9lbmRSZXF1ZXN0KGVuZFJlcXVlc3RIYW5kbGVyKTsNCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgcHJtLmFkZF9iZWdpblJlcXVlc3QoZnVuY3Rpb24gKHNlbmRlciwgYXJncykgew0KICAgICAgICAgICAgICAgICAgICBwb3N0QmFja0VsZW1lbnQgPSBhcmdzLmdldF9wb3N0QmFja0VsZW1lbnQoKTsNCiAgICAgICAgICAgICAgICB9KTsNCiAgICAgICAgICAgICAgICBwcm0uYWRkX3BhZ2VMb2FkZWQoZnVuY3Rpb24gKHNlbmRlciwgYXJncykgew0KICAgICAgICAgICAgICAgICAgICB2YXIgaSwgcGFuZWxzLCB2YWxGb3VuZCA9IDA7DQogICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgKHBvc3RCYWNrRWxlbWVudCkgPT09ICJ1bmRlZmluZWQiKSB7DQogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm47DQogICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgICAgcGFuZWxzID0gYXJncy5nZXRfcGFuZWxzVXBkYXRlZCgpOw0KICAgICAgICAgICAgICAgICAgICBmb3IgKGkgPSAwOyBpIDwgcGFuZWxzLmxlbmd0aDsgaSsrKSB7DQogICAgICAgICAgICAgICAgICAgICAgICB2YWxGb3VuZCArPSBwYXJzZShwYW5lbHNbaV0pOw0KICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgIHBhbmVscyA9IGFyZ3MuZ2V0X3BhbmVsc0NyZWF0ZWQoKTsNCiAgICAgICAgICAgICAgICAgICAgZm9yIChpID0gMDsgaSA8IHBhbmVscy5sZW5ndGg7IGkrKykgew0KICAgICAgICAgICAgICAgICAgICAgICAgdmFsRm91bmQgKz0gcGFyc2UocGFuZWxzW2ldKTsNCiAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgICAgICBpZiAodmFsRm91bmQpIHsNCiAgICAgICAgICAgICAgICAgICAgICAgIGxvYWRWYWxpZGF0b3JzKCk7DQogICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICB9KTsNCiAgICAgICAgICAgIH0NCiAgICAgICAgfQ0KICAgICAgICAkKGZ1bmN0aW9uICgpIHsNCiAgICAgICAgICAgIGlmICh0eXBlb2YgKFBhZ2VfVmFsaWRhdG9ycykgPT09ICJ1bmRlZmluZWQiKSB7DQogICAgICAgICAgICAgICAgd2luZG93LlBhZ2VfVmFsaWRhdG9ycyA9IFtdOw0KICAgICAgICAgICAgfQ0KICAgICAgICAgICAgaWYgKHR5cGVvZiAoUGFnZV9WYWxpZGF0aW9uU3VtbWFyaWVzKSA9PT0gInVuZGVmaW5lZCIpIHsNCiAgICAgICAgICAgICAgICB3aW5kb3cuUGFnZV9WYWxpZGF0aW9uU3VtbWFyaWVzID0gW107DQogICAgICAgICAgICB9DQogICAgICAgICAgICBpZiAodHlwZW9mIChQYWdlX1ZhbGlkYXRpb25BY3RpdmUpID09PSAidW5kZWZpbmVkIikgew0KICAgICAgICAgICAgICAgIHdpbmRvdy5QYWdlX1ZhbGlkYXRpb25BY3RpdmUgPSBmYWxzZTsNCiAgICAgICAgICAgIH0NCiAgICAgICAgICAgICQuV2ViRm9ybVZhbGlkYXRvciA9IHsNCiAgICAgICAgICAgICAgICBhZGROb3JtYWxpemVkQXR0cmlidXRlOiBhZGROb3JtYWxpemVkQXR0cmlidXRlLA0KICAgICAgICAgICAgICAgIHBhcnNlOiBwYXJzZQ0KICAgICAgICAgICAgfTsNCiAgICAgICAgICAgIGlmICh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N0TWFuYWdlciBjYW5ub3QgYmUgaW5pdGlhbGl6ZWQgbW9yZSB0aGFuIG9uY2UuIn07">
</script>
<script class="sf-hidden">
//<![CDATA[
function WebForm_OnSubmit() {
if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) return false;
return true;
}
//]]>
</script>
<div class="aspNetHidden">
</div>
<script class="sf-hidden">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('ctl00$ScriptManager', 'aspnetForm', [], [], [], 90, 'ctl00');
//]]>
</script>
<div class="headerBox">
<header class="headerPagamenti">
<div class="navbar-top">
<div class="container-pagamenti">
<div id="languageBoxIt">
<ul class="langselector">
<li class="lifirst">
<a href="https://pagamenti.aruba.it/home/default.aspx?Op=ChangeLanguage" id="lnkLanguage1" hreflang="it" class="first">Italiano <b class="caret"></b></a>
<ul>
<li><a id="lnkLanguage2" hreflang="en" href="javascript:__doPostBack('ctl00$lnkLanguage2','')">English</a></li>
<li><a id="lnkLanguage3" hreflang="es" href="javascript:__doPostBack('ctl00$lnkLanguage3','')">Español</a></li>
</ul>
</li>
</ul>
</div>
<div class="navbar-right">
<ul class="nav navbar-nav">
<li class="borderListSeparator">
<a href="http://webmail.aruba.it/" target="_blank">
<span id="Label1">webmail</span></a>
</li>
<li class="borderListSeparator">
<a href="https://managehosting.aruba.it/Rinnovi/InsDatiRinnovo.asp?Lang=IT" target="_blank"><span id="Label2">rinnovi</span></a>
</li>
<li class="borderListSeparator">
<a id="areaClientiOrangeBtn" href="https://managehosting.aruba.it/AreaUtenti.asp?Lang=IT" target="_blank"><span id="Label4">area clienti</span></a>
</li>
<li>
<a id="assistenzaGreen" href="http://assistenza.aruba.it/" target="_blank"><span id="Label5">assistenza h24</span></a>
</li>
</ul>
</div>
</div>
</div>
<nav class="navbar-default" role="navigation">
<div class="container-pagamenti">
<div class="row">
<div class="col-md-3">
<a title="Home" href="https://pagamenti.aruba.it/">
<img class="navbar-brand" alt="logo" src="data:image/svg+xml;base64,PD94bWwgdm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jgtMS41IDIuMiAwLjMgMi43IDMuMyAzIDYuMiAwLjMgMy4xIDAuNSA4LjIgMC42IDE1LjQgMC4xIDcuMyAwLjMgOS45IDAuNCAxMC44IDAuNCAwLjEgMS40IDAuMiAzLjUgMC4xIDMtMC4yIDUuNC0wLjMgNy4xLTAuNCAyLjItMC4xIDMuNyAwLjUgNC43IDEuNiAwLjUgMC42IDEuNiAyLjQtMC40IDQuNi0xLjIgMS4zLTMuMiAyLTYuMyAyLTIuNSAwLTQuOSAwLjEtNyAwLjItMS4xIDAuMS0xLjYgMC4yLTEuOSAwLjMgMCAxLjYtMC4xIDcuMy0wLjIgMTgtMC4xIDExLjQtMC4xIDIwLjMgMC4yIDI2LjYgMC40IDguNy0wLjQgMTEuMi0xLjEgMTIuM3MtMS44IDIuOC0zLjUgMi44eiIvPgo8L3N2Zz4K">
</a>
</div>
<div class="logon">
<div class="divLogin">
</div>
<div class="divLogout">
<div id="boxLogout">
</div>
</div>
</div>
</div>
</div>
</nav>
</header>
</div>
<div class="clear"></div>
<div id="contentRightSrv" class="contentRightNoLogin">
<div id="boxes">
<div id="mask" style="width:1366px;height:657px" class="sf-hidden"></div>
</div>
<table border="0" cellpadding="0" cellspacing="0" align="center" id="HPOuterBox">
<tbody>
<tr>
<td valign="top" align="left">
<table cellpadding="0" cellspacing="8" id="HPLoginBox">
<tbody>
<tr>
<td colspan="2">
<div id="cphBody_lblTop">
<h1>Pannello gestione pagamenti</h1>
<span class="lblDescriptionList" style="margin-left:15px">Accedi al pannello per:</span>
<ul class="lblDescriptionList">
<li>Pagare gli ordini con carta di credito o PayPal</li>
<li>Gestire i tuoi metodi di pagamento</li>
<li>Scaricare il bollettino precompilato</li>
<li>Visualizzare le coordinate bancarie per effettuare un bonifico</li>
</ul>
</div>
</td>
</tr>
<tr>
<td class="alignCenter">
<table cellpadding="0" cellspacing="8" id="HPLoginInnerBox">
<tbody>
<tr>
<td align="right">
<span id="cphBody_lblLogin">Username</span>
</td>
<td>
<input type="hidden" name="what" value="LOGIN">
<input name="username" required="" type="text" id="txtLogin" class="txtBigHeight" placeholder="Es: 12345@aruba.it" value="">
</td>
<td align="left">
</td>
</tr>
<tr>
<td align="right">
<span id="cphBody_lblPassword">Password</span>
</td>
<td>
<input name="password" required="" type="password" id="txtPassword" class="txtBigHeight" value="">
</td>
<td> </td>
</tr>
<tr>
<td colspan="2">
<span id="cphBody_lblAsicurazione"></span>
</td>
</tr>
<tr>
<td> </td>
<td align="right">
<button type="submit" id="imgEntraPaga" class="buttonNew">Accedi</button>
</td>
<td> </td>
</tr>
</tbody>
</table>
<a id="cphBody_HypRecuperaAccount" title="Non ricordi lo username o la password?" class="linkRecuperaDati" href="https://gestioneaccessi.aruba.it/it/Recover-Access-Data/Insert-Login/ARUBA" target="_blank">Non ricordi lo username o la password?</a>
</td>
</tr>
</tbody>
</table>
</td>
<td valign="top" align="left">
<table border="0" cellpadding="0" cellspacing="8" id="fastPaymentHPOuterBox">
<tbody>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" valign="middle">
<tbody>
<tr>
<td>
<h4> Pagamento rapido </h4>
<span id="cphBody_NoLoginPayDescription">Inserisci il numero del tuo ordine e paga subito con carta di credito o PayPal senza effettuare l'accesso. <ol>
<li>Nr. Ordine</li>
<li>Vai al pagamento</li>
</ol></span>
<table border="0" cellpadding="0" cellspacing="0" id="fastPaymentHPBox">
<tbody>
<tr>
<td align="right" valign="top">
<span id="NOrdDescr">
<span id="cphBody_LblOrdno">N° Ordine</span></span>
</td>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td align="right">
<input name="ctl00$cphBody$txtOrderId" type="text" id="txtOrderId" class="txtBigHeight" placeholder="Es: MO2314564" value="">
<span id="cphBody_rfvOrderValidator" class="hpOrderIdError" style="display:none">ID Ordine richiesto</span>
</td>
</tr>
<tr>
<td align="left">
<table id="cphBody_rblPaymentType">
<tbody>
<tr>
<td><input id="cphBody_rblPaymentType_0" type="radio" name="ctl00$cphBody$rblPaymentType" value="CC" checked=""><label for="cphBody_rblPaymentType_0">Carta di credito</label></td>
</tr>
<tr>
<td><input id="cphBody_rblPaymentType_1" type="radio" name="ctl00$cphBody$rblPaymentType" value="PP"><label for="cphBody_rblPaymentType_1">PayPal</label></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td align="right">
<br>
<a id="imgPagaNoLog" class="buttonNew" href="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$cphBody$imgPagaNoLog", "", true, "payNoLogin", "", false, true))">Vai al pagamento</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="lineSeparatorOver">
<span id="cphBody_lblPaymentAccepted" class="spanLittlegrey">Pagamenti supportati</span>
<img id="cphBody_Image1"
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAVQAAAAiCAYAAAAAniHdAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAJcEhZcwAACxIAAAsSAdLdfvwAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAM0VJREFUeF7tnQV0VNf6t08CFIuTEPeEyCQkxN1IQnB3Boq7tHgLFApBW4q0SHAnuFuLFQ/FvXhxGxwGSX7fb585AwmkQO+9/3vbb+Vd61lnzt777DlMmifvljOVCqIgCqIgCqIgCqIgCqIgCqIgCqIgCqIgCqIgCqIgCqIg/m+jjREx+ZthrNzcm/CoMKwkMfkbotyhJAEoTEz+RhRXbk2OHEQKTP6GlFRusSAK4p8ebS4Q/M24odzcm6C4thP8DSmi3KIQaiJ5Tf4uMVu5NTkoLkOCvyE7lVssiIL4p8enC7UQKaIcJamdwvvt3tIOhQ3boGjh1ihcKL/6P+WfKtQE8hLPbgKPLgBPrgBPr5LrQPYr2XD6uP/wBa7eeIpr5Ln2Ne5qtDx/gus3nyI7J0dpBTxgu/OXHuHU2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cgXF9Y8R6p0797Ju31iivX3JmYRob18op7191ld7+3cP7e3TLDtprb193Fx764iJ9tZhY+2tAyW1t34rob2VVVx7ay/ZXUx7ayf5taj21nay5TPtrU1kPVlNVnymvbmEZJJ5ZBaZTiZ/pr0xgYwjo8koMpR8SwZ8pr3+NelNupOupGNR7fV2PLYizYtqrzUmDUgdUoNUIWnFtNeSSTyJKa69FlFSey3USHs10FR71c9ce7WMpfaqB3EmtqW1V61La69YW2mvlLYkpbR/CKwstJcFlhbaS5bm2vM8niVnSplrT5Uy056wNNEeK2WqPVLKRHuIHOTr/RYmxFibRfaZm2g3mxTXripZTLugeDFtRgkj7WgTM+2g0jbaHq4e2o6R8e8JtTCxJg4K/9Yz9f/JoEA/I2J/qgPJ9+ms/120aU66/s14b6qG4qpDuv4NyWdv798zKC4D0vVvyHvrBQCqv9Ssb5ZzzFaNExFqHA9R40iAGod91DjoqcZvzmpkOaqxx0qN3SZq7Cykxg5JzaGUGlvJZvIL2UQ2kHVktaTOWU6WkExJ/XoumS2pX00nU8hESf1yvKR+MYaMktTa4SSdDCL9JPXzvqS3pH7WnXSV1E87SuonbUkr0oznjSX14wakrqH6cc1C6sdVP1M/qlhU/TC1qPpBUkn1g1gj9YMoY/X9MFP1/SAz9b2yFup7vhbqu55W6rvuxInYWKtvl7ZW37S2Vl8rXVp9mVwkZ62s1KfJCUsr9XFLS/URHg+RA6Us1fvJPstS6j2lSql3lbJQ7+BxO9lmYS6z1cJCvYWsNjNTLzI2Us8yKq6eWNpCPdrVWT0qLEQ9oV6dput/+O69KaKCKIiCKIiCKIiCKIiCKIiCKIiCKIiCKIiCKIiCKIiCKIiCKIiCKIj/cEjS/wOxFYZJUv4FtgAAAABJRU5ErkJggg==">
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<div class="clear clearHeight"></div>
<div id="push"></div>
<div class="footer">
<span class="copyrightBottomDescription">Copyright © 2022 Aruba S.p.A.- P.I. 01573850516 - All rights reserved</span>
<br>
<a href="https://www.aruba.it/cookie-policy.aspx?lang=it-IT" target="_blank">Cookie</a> - <a href="javascript: Cookiebot.renew()">Personalizza cookie</a>
</div>
<script class="sf-hidden">
//<![CDATA[
var Page_Validators = new Array(document.getElementById("cphBody_rfvOrderValidator"));
//]]>
</script>
<script class="sf-hidden">
//<![CDATA[
var cphBody_rfvOrderValidator = document.all ? document.all["cphBody_rfvOrderValidator"] : document.getElementById("cphBody_rfvOrderValidator");
cphBody_rfvOrderValidator.controltovalidate = "txtOrderId";
cphBody_rfvOrderValidator.errormessage = "ID Ordine richiesto";
cphBody_rfvOrderValidator.display = "Dynamic";
cphBody_rfvOrderValidator.validationGroup = "payNoLogin";
cphBody_rfvOrderValidator.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
cphBody_rfvOrderValidator.initialvalue = "";
//]]>
</script>
<script class="sf-hidden">
//<![CDATA[
var Page_ValidationActive = false;
if (typeof(ValidatorOnLoad) == "function") {
ValidatorOnLoad();
}
function ValidatorOnSubmit() {
if (Page_ValidationActive) {
return ValidatorCommonOnSubmit();
} else {
return true;
}
}
document.getElementById('cphBody_rfvOrderValidator').dispose = function() {
Array.remove(Page_Validators, document.getElementById('cphBody_rfvOrderValidator'));
}
//]]>
</script>
</form>
Text Content
* Italiano * English * Español * webmail * rinnovi * area clienti * assistenza h24 PANNELLO GESTIONE PAGAMENTI Accedi al pannello per: * Pagare gli ordini con carta di credito o PayPal * Gestire i tuoi metodi di pagamento * Scaricare il bollettino precompilato * Visualizzare le coordinate bancarie per effettuare un bonifico Username Password Accedi Non ricordi lo username o la password? PAGAMENTO RAPIDO Inserisci il numero del tuo ordine e paga subito con carta di credito o PayPal senza effettuare l'accesso. 1. Nr. Ordine 2. Vai al pagamento N° Ordine ID Ordine richiesto Carta di credito PayPal Vai al pagamento Pagamenti supportati Copyright © 2022 Aruba S.p.A.- P.I. 01573850516 - All rights reserved Cookie - Personalizza cookie