Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<? namespace Megasoft;$GLOBALS['____1820789603']= array(base64_decode('ZGVm'.'aW'.'5l'),ba..
Decoded Output download
<? namespace Megasoft;$GLOBALS['____1820789603']= array(base64_decode('ZGVm'.'aW'.'5l'),base64_decode('c3'.'R'.'ycmV2'),base64_decode('c3RydG91cH'.'Blcg'.'='.'='),base64_decode(''.'c3ByaW50'.'Zg=='),base64_decode('c3'.'By'.'a'.'W50Zg=='),base64_decode('c'.'3Vi'.'c3Ry'),base64_decode(''.'c3'.'Ry'.'cmV2'),base64_decode('Y'.'mFzZT'.'Y0X'.'2R'.'l'.'Y29'.'kZQ'.'=='),base64_decode('c'.'3'.'Vic3Ry'),base64_decode(''.'c'.'3RybGVu'),base64_decode('c3'.'RybGV'.'u'),base64_decode('Y2'.'hy'),base64_decode('b3Jk'),base64_decode('b3Jk'),base64_decode('bW'.'t0a'.'W1l'),base64_decode('aW50dm'.'F'.'s'),base64_decode(''.'aW50d'.'mFs'),base64_decode('aW50dm'.'Fs'),base64_decode(''.'a3NvcnQ'.'='),base64_decode('c3V'.'ic'.'3Ry'),base64_decode('aW1'.'w'.'bG9kZQ=='),base64_decode('ZGVmaW'.'5'.'l'.'ZA=='),base64_decode('YmFzZTY0X2RlY'.'29'.'k'.'Z'.'Q'.'='.'='),base64_decode('Y'.'29uc3RhbnQ='),base64_decode('c'.'3'.'Ry'.'c'.'mV2'),base64_decode('c3Bya'.'W'.'50'.'Zg=='),base64_decode('c3RybGVu'),base64_decode('c3'.'R'.'yb'.'GVu'),base64_decode('Y'.'2hy'),base64_decode('b3Jk'),base64_decode('b3'.'Jk'),base64_decode('bW'.'t0'.'aW1l'),base64_decode('aW5'.'0d'.'mFs'),base64_decode(''.'aW50dmFs'),base64_decode('aW50dmFs'),base64_decode(''.'c3'.'Vic3Ry'),base64_decode('c3Vic'.'3Ry'),base64_decode('dGl'.'tZQ=='),base64_decode('b'.'Wt'.'0'.'aW1l'),base64_decode(''.'bWt0'.'a'.'W1l'),base64_decode('ZG'.'F0ZQ=='),base64_decode('Z'.'GF0'.'ZQ=='),base64_decode('Z'.'G'.'Vm'.'a'.'W5l'),base64_decode(''.'ZGV'.'maW5l'),base64_decode('dW5'.'zZXJpYWx'.'pemU='),base64_decode('c3R'.'y'.'aXBfd'.'GF'.'ncw=='),base64_decode('aXNfYXJyYXk'.'='),base64_decode('Y'.'XJyYXlfZmlsdGVy'),base64_decode('c'.'2Vya'.'W'.'FsaXpl'),base64_decode(''.'a'.'XNf'.'YXJyYXk'.'='),base64_decode('a'.'W'.'5fYX'.'JyYXk='),base64_decode('cHJlZ1'.'9'.'tYXR'.'jaA'.'=='),base64_decode('cHJlZ19t'.'YXRja'.'F9h'.'b'.'Gw='),base64_decode('c'.'3B'.'yaW50'.'Z'.'g'.'=='),base64_decode('c'.'3'.'RyX'.'3J'.'lcGxhY'.'2U'.'='),base64_decode('YXJy'.'YXl'.'fa2V5cw=='),base64_decode('Y'.'XJyYXlf'.'dm'.'FsdWVz'),base64_decode('a'.'nNv'.'bl9kZ'.'WNv'.'ZGU='),base64_decode('aXNfb2JqZWN0'),base64_decode(''.'c'.'3'.'RycG9z'),base64_decode(''.'c3RyX3'.'JlcGxhY2U'.'='),base64_decode('c3R'.'ycG'.'9'.'z'),base64_decode(''.'cHJl'.'Z19tYXRjaA'.'=='),base64_decode('aW5'.'fY'.'XJ'.'y'.'YXk='),base64_decode('ZGVm'.'a'.'W5lZA=='),base64_decode('c'.'3'.'RybGV'.'u'));if(!function_exists(__NAMESPACE__.'\___599337693')){function ___599337693($_1802252240){static $_1083164278= false; if($_1083164278 == false) $_1083164278=array('ZXhwaXJ'.'lX21l'.'c3'.'NfY3Vzd'.'G9t'.'Mg==','b'.'WVn'.'YXN'.'vZ'.'nR'.'fY'.'W50'.'a'.'XNwYW1'.'f',''.'b2'.'1'.'lZA='.'=','W'.'Q==','ZH'.'JtX'.'3N0ZXJ'.'nb2tj','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VJM'.'X0'.'1BU0s=','YWN0aXZ'.'l','YWN0aXZl','Tg==','c'.'2l0ZXM=','c'.'2l0ZXM=','YWN0a'.'XZl',''.'YW'.'N0'.'aXZ'.'l','c2l0Z'.'XM=','c2l0ZX'.'M=','Y'.'WN'.'0aXZl','WQ==','c2l0ZXM=','c'.'2l'.'0ZXM'.'=',''.'bWFz'.'a191'.'cmw=','bWFza1'.'91cmw=',''.'IzwoZ'.'m9ybS'.'koW'.'14+XSspP'.'iN'.'pc1U'.'=','PGluc'.'H'.'V0'.'IG5'.'hbWU9I'.'g==','IiB'.'0'.'eXBl'.'PSJoaW'.'RkZW4'.'iIHZh'.'bH'.'Vl'.'P'.'SI'.'=','Ij4=','PCVzICVzP'.'i'.'Vz','PC9i'.'b2R5Pg==','PC9i'.'b2R'.'5Pg==','P'.'C9'.'ib2'.'R5Pg==',''.'PC9'.'mb3JtPg==',''.'bWF'.'z'.'a191cmw=','bWFza191c'.'mw=','YWN'.'0aX'.'Zl','WQ'.'==','c'.'2l0Z'.'X'.'M=','QW50aX'.'NwYW0'.'gUHJvdGVj'.'dGlvbiBQT1NU','bWVnYXNvZnRfYW50aXNwYW1faWdub'.'3Jl','V'.'FJ'.'VTkN'.'BV'.'EUg'.'VEF'.'CTEUg','Ow'.'='.'=','bWVnYXNvZnRfYW'.'50aX'.'NwYW1'.'f'.'T0xEU0l'.'URU'.'VYUElSRUR'.'BVEU'.'=','ZXhw'.'aXJlX21l'.'c3NfY3VzdG9'.'tMg==');return base64_decode($_1083164278[$_1802252240]);}};$_1777716646= GetMessage(___599337693(0));$_1553944160=(1468/2-734);@$GLOBALS['____1820789603'][0](___599337693(1).$GLOBALS['____1820789603'][1]($GLOBALS['____1820789603'][2](___599337693(2))), ___599337693(3));$_1708348178= round(0+0.33333333333333+0.33333333333333+0.33333333333333); $_718737320= ___599337693(4); unset($_821208540); $_1830517461= $GLOBALS['____1820789603'][3](___599337693(5), ___599337693(6)); $_821208540= \COption::GetOptionString(___599337693(7), $GLOBALS['____1820789603'][4](___599337693(8),___599337693(9),$GLOBALS['____1820789603'][5]($_718737320, round(0+0.4+0.4+0.4+0.4+0.4), round(0+1.3333333333333+1.3333333333333+1.3333333333333))).$GLOBALS['____1820789603'][6](___599337693(10))); $_1762485199= array(round(0+3.4+3.4+3.4+3.4+3.4) => ___599337693(11), round(0+3.5+3.5) => ___599337693(12), round(0+4.4+4.4+4.4+4.4+4.4) => ___599337693(13), round(0+2.4+2.4+2.4+2.4+2.4) => ___599337693(14), round(0+3) => ___599337693(15)); $_1939841260= ___599337693(16); while($_821208540){ $_1171148060= ___599337693(17); $_877069948= $GLOBALS['____1820789603'][7]($_821208540); $_1522114910= ___599337693(18); $_1171148060= $GLOBALS['____1820789603'][8](___599337693(19).$_1171148060, min(204,0,68),-round(0+1.25+1.25+1.25+1.25)).___599337693(20); $_1405171032= $GLOBALS['____1820789603'][9]($_1171148060); $_2066293109=(146*2-292); for($_273318266=(1088/2-544); $_273318266<$GLOBALS['____1820789603'][10]($_877069948); $_273318266++){ $_1522114910 .= $GLOBALS['____1820789603'][11]($GLOBALS['____1820789603'][12]($_877069948[$_273318266])^ $GLOBALS['____1820789603'][13]($_1171148060[$_2066293109])); if($_2066293109==$_1405171032-round(0+0.5+0.5)) $_2066293109=(1412/2-706); else $_2066293109= $_2066293109+ round(0+0.2+0.2+0.2+0.2+0.2);} $_1708348178= $GLOBALS['____1820789603'][14]((1300/2-650), min(14,0,4.6666666666667),(1292/2-646), $GLOBALS['____1820789603'][15]($_1522114910[round(0+1.2+1.2+1.2+1.2+1.2)].$_1522114910[round(0+0.75+0.75+0.75+0.75)]), $GLOBALS['____1820789603'][16]($_1522114910[round(0+0.33333333333333+0.33333333333333+0.33333333333333)].$_1522114910[round(0+3.5+3.5+3.5+3.5)]), $GLOBALS['____1820789603'][17]($_1522114910[round(0+3.3333333333333+3.3333333333333+3.3333333333333)].$_1522114910[round(0+6+6+6)].$_1522114910[round(0+1.75+1.75+1.75+1.75)].$_1522114910[round(0+3+3+3+3)])); unset($_1171148060); break;} $_873944491= ___599337693(21); $GLOBALS['____1820789603'][18]($_1762485199); $_1780307973= ___599337693(22); $_1939841260= ___599337693(23).$GLOBALS['____1820789603'][19]($_1939841260.___599337693(24), round(0+0.4+0.4+0.4+0.4+0.4),-round(0+0.25+0.25+0.25+0.25));@include($_SERVER[___599337693(25)].___599337693(26).$GLOBALS['____1820789603'][20](___599337693(27), $_1762485199)); $_1344896432= round(0+0.4+0.4+0.4+0.4+0.4); while($GLOBALS['____1820789603'][21](___599337693(28))){ $_1366730650= $GLOBALS['____1820789603'][22]($GLOBALS['____1820789603'][23](___599337693(29))); $_1672641380= ___599337693(30); $_873944491= $GLOBALS['____1820789603'][24](___599337693(31)).$GLOBALS['____1820789603'][25](___599337693(32),$_873944491,___599337693(33)); $_480237652= $GLOBALS['____1820789603'][26]($_873944491); $_2066293109=(139*2-278); for($_273318266=(954-2*477); $_273318266<$GLOBALS['____1820789603'][27]($_1366730650); $_273318266++){ $_1672641380 .= $GLOBALS['____1820789603'][28]($GLOBALS['____1820789603'][29]($_1366730650[$_273318266])^ $GLOBALS['____1820789603'][30]($_873944491[$_2066293109])); if($_2066293109==$_480237652-round(0+0.33333333333333+0.33333333333333+0.33333333333333)) $_2066293109=(199*2-398); else $_2066293109= $_2066293109+ round(0+0.25+0.25+0.25+0.25);} $_1344896432= $GLOBALS['____1820789603'][31]((804-2*402),(150*2-300), min(150,0,50), $GLOBALS['____1820789603'][32]($_1672641380[round(0+3+3)].$_1672641380[round(0+3.2+3.2+3.2+3.2+3.2)]), $GLOBALS['____1820789603'][33]($_1672641380[round(0+4.5+4.5)].$_1672641380[round(0+0.66666666666667+0.66666666666667+0.66666666666667)]), $GLOBALS['____1820789603'][34]($_1672641380[round(0+3+3+3+3)].$_1672641380[round(0+7)].$_1672641380[round(0+3.5+3.5+3.5+3.5)].$_1672641380[round(0+3)])); unset($_873944491); break;} $_1830517461= ___599337693(34).$GLOBALS['____1820789603'][35]($GLOBALS['____1820789603'][36]($_1830517461, round(0+0.75+0.75+0.75+0.75),-round(0+0.33333333333333+0.33333333333333+0.33333333333333)).___599337693(35), round(0+1),-round(0+1.6666666666667+1.6666666666667+1.6666666666667));for($_273318266= min(6,0,2),$_319523918=($GLOBALS['____1820789603'][37]()< $GLOBALS['____1820789603'][38]((1404/2-702),(1100/2-550),(796-2*398),round(0+1.6666666666667+1.6666666666667+1.6666666666667),round(0+1),round(0+2010)) || $_1708348178 <= round(0+5+5)),$_615226383=($_1708348178< $GLOBALS['____1820789603'][39]((1284/2-642),min(56,0,18.666666666667),min(170,0,56.666666666667),Date(___599337693(36)),$GLOBALS['____1820789603'][40](___599337693(37))-$_1553944160,$GLOBALS['____1820789603'][41](___599337693(38)))); $_273318266< round(0+10),$_319523918 || $_615226383 || $_1708348178 != $_1344896432; $_273318266++)return false;$GLOBALS['____1820789603'][42]($_1939841260, $_1708348178); $GLOBALS['____1820789603'][43]($_1830517461, $_1344896432); $GLOBALS[___599337693(39)]= megasoft_antispam_OLDSITEEXPIREDATE; use \Bitrix\Main\Application; use \Bitrix\Main\Config\Option; use Bitrix\Main\Entity\DataManager; use Bitrix\Main\Entity\IntegerField; use Bitrix\Main\Entity\StringField; class AntiSpam{ const MODULE_ID= 'megasoft.antispam'; public static $_1839605209= '__megasoft_hash'; public static $_1085447275= '__megasoft_form'; public static function getSettings(){ $_1853774154= Option::get(self::MODULE_ID, 'active', 'N'); $_1744916918= (array)$GLOBALS['____1820789603'][44](Option::get(self::MODULE_ID, ___599337693(40), ___599337693(41))); $_460999804= IgnoreTable::getList(); $_1961146951=[]; while($_25290779= $_460999804->fetch()){ $_1961146951[]= $GLOBALS['____1820789603'][45]($_25290779[___599337693(42)]);} return[ ___599337693(43) => $_1853774154, ___599337693(44) =>(isset($_1744916918) && $GLOBALS['____1820789603'][46]($_1744916918))? $_1744916918:[], ___599337693(45) => $_1961146951,];} public static function setSettings($_1420666466=[]){ if($_1420666466['mask_url']){ $_1420666466['mask_url']= $GLOBALS['____1820789603'][47]($_1420666466['mask_url'],'trim'); IgnoreTable::truncate(); foreach($_1420666466[___599337693(46)] as $_1758724119){ IgnoreTable::add([___599337693(47)=>$_1758724119]);}} if(!$_1420666466[___599337693(48)]){ $_1420666466[___599337693(49)]= ___599337693(50);} if(!$_1420666466[___599337693(51)]){ $_1420666466[___599337693(52)]=[];} Option::set(self::MODULE_ID, ___599337693(53), $_1420666466[___599337693(54)]); Option::set(self::MODULE_ID, ___599337693(55), $GLOBALS['____1820789603'][48]($_1420666466[___599337693(56)]));} public static function OnEndBufferContent(&$_1813560431){ $_652208837= Application::getInstance()->getContext()->getRequest(); if(!$_652208837->isAdminSection()){ $_938283758= self::getSettings(); if((string)$_938283758[___599337693(57)] !=___599337693(58) || $GLOBALS['____1820789603'][49]($_938283758[___599337693(59)]) &&!$GLOBALS['____1820789603'][50](SITE_ID,(array)$_938283758[___599337693(60)])){ return false;} if($_938283758[___599337693(61)]){ foreach($_938283758[___599337693(62)] as $_1758724119){ if($GLOBALS['____1820789603'][51]("#{$_1758724119}#sU",$_652208837->getRequestUri())){ return false;}}} $GLOBALS['____1820789603'][52](___599337693(63), $_1813560431, $_1723592259, PREG_SET_ORDER); $_1206596998=[]; $_937576977= ___599337693(64). self::$_1085447275. ___599337693(65). self::$_1085447275. ___599337693(66); foreach($_1723592259 as $_552247048 => $_1693096641){ $_868008698= $GLOBALS['____1820789603'][53](___599337693(67), $_1693096641[round(0+1)], $_1693096641[round(0+0.5+0.5+0.5+0.5)], $_937576977); $_1206596998[$_1693096641[(850-2*425)]]= $_868008698;} $_1813560431= $GLOBALS['____1820789603'][54]($GLOBALS['____1820789603'][55]($_1206596998), $GLOBALS['____1820789603'][56]($_1206596998), $_1813560431); $_43185981= self::generateHashScript(); $_1544085264= $GLOBALS['____1820789603'][57]($_1813560431); if($GLOBALS['____1820789603'][58]($_1544085264)){ return false;} elseif($GLOBALS['____1820789603'][59]($_1813560431, ___599337693(68)) !== false){ $_1813560431= $GLOBALS['____1820789603'][60](___599337693(69), PHP_EOL. $_43185981. PHP_EOL. ___599337693(70), $_1813560431);} elseif($GLOBALS['____1820789603'][61]($_1813560431, ___599337693(71)) !== false){ $_1813560431= $_1813560431. $_43185981;}}} public static function OnPageStart(){ try{ $_652208837= Application::getInstance()->getContext()->getRequest(); if($_652208837->isAdminSection()){ return false;} $_938283758= self::getSettings(); if($_938283758[___599337693(72)]){ foreach($_938283758[___599337693(73)] as $_1758724119){ if($GLOBALS['____1820789603'][62]("#{$_1758724119}#sU",$_652208837->getRequestUri())){ return false;}}} if($_938283758[___599337693(74)] != ___599337693(75) ||!$GLOBALS['____1820789603'][63](SITE_ID, $_938283758[___599337693(76)])){ return false;} if($_652208837->isPost() &&!$_652208837->isAjaxRequest() &&!check_bitrix_sessid(self::$_1839605209)){ throw new \Exception(___599337693(77));}} catch(\Exception $_399234432){ echo $_399234432->getMessage(); exit;}} public static function generateHashScript():string{ $_965317174= self::$_1839605209; $_957277813= bitrix_sessid(); return"<script>
document.addEventListener('DOMContentLoaded', function() {
createHashField();
setInterval(function() {
createHashField();
},2000);
function createHashField(){
let hashField = document.createElement(\"input\");
hashField.type = 'hidden';
hashField.name = '{$_965317174}';
hashField.value = '{$_957277813}';
if (typeof window.BX != 'undefined'){
hashField.value = BX.bitrix_sessid();
}
let x = document.querySelectorAll(\"form\");
for (let i = 0; i < x.length; i++) {
if(!x[i].querySelector(\"input[name='{$_965317174}']\")){
x[i].appendChild(hashField);
}
}
}
});
</script>";}} class IgnoreTable extends DataManager{ public static function getTableName(): string{ return ___599337693(78);} public static function getMap(){ return array( new IntegerField('ID',[ 'primary' => true, 'autocomplete' => true,]), new StringField('URL_MASK',[ 'required' => true]), new StringField('SITE_ID'),);} public static function truncate(){ global $DB; $DB->Query(___599337693(79).self::getTableName().___599337693(80));}};while(!$GLOBALS['____1820789603'][64](___599337693(81)) || $GLOBALS['____1820789603'][65](megasoft_antispam_OLDSITEEXPIREDATE) <=(954-2*477) || megasoft_antispam_OLDSITEEXPIREDATE != megasoft_antispam_SITEEXPIREDATE)die(GetMessage(___599337693(82)));?>
Did this file decode correctly?
Original Code
<? namespace Megasoft;$GLOBALS['____1820789603']= array(base64_decode('ZGVm'.'aW'.'5l'),base64_decode('c3'.'R'.'ycmV2'),base64_decode('c3RydG91cH'.'Blcg'.'='.'='),base64_decode(''.'c3ByaW50'.'Zg=='),base64_decode('c3'.'By'.'a'.'W50Zg=='),base64_decode('c'.'3Vi'.'c3Ry'),base64_decode(''.'c3'.'Ry'.'cmV2'),base64_decode('Y'.'mFzZT'.'Y0X'.'2R'.'l'.'Y29'.'kZQ'.'=='),base64_decode('c'.'3'.'Vic3Ry'),base64_decode(''.'c'.'3RybGVu'),base64_decode('c3'.'RybGV'.'u'),base64_decode('Y2'.'hy'),base64_decode('b3Jk'),base64_decode('b3Jk'),base64_decode('bW'.'t0a'.'W1l'),base64_decode('aW50dm'.'F'.'s'),base64_decode(''.'aW50d'.'mFs'),base64_decode('aW50dm'.'Fs'),base64_decode(''.'a3NvcnQ'.'='),base64_decode('c3V'.'ic'.'3Ry'),base64_decode('aW1'.'w'.'bG9kZQ=='),base64_decode('ZGVmaW'.'5'.'l'.'ZA=='),base64_decode('YmFzZTY0X2RlY'.'29'.'k'.'Z'.'Q'.'='.'='),base64_decode('Y'.'29uc3RhbnQ='),base64_decode('c'.'3'.'Ry'.'c'.'mV2'),base64_decode('c3Bya'.'W'.'50'.'Zg=='),base64_decode('c3RybGVu'),base64_decode('c3'.'R'.'yb'.'GVu'),base64_decode('Y'.'2hy'),base64_decode('b3Jk'),base64_decode('b3'.'Jk'),base64_decode('bW'.'t0'.'aW1l'),base64_decode('aW5'.'0d'.'mFs'),base64_decode(''.'aW50dmFs'),base64_decode('aW50dmFs'),base64_decode(''.'c3'.'Vic3Ry'),base64_decode('c3Vic'.'3Ry'),base64_decode('dGl'.'tZQ=='),base64_decode('b'.'Wt'.'0'.'aW1l'),base64_decode(''.'bWt0'.'a'.'W1l'),base64_decode('ZG'.'F0ZQ=='),base64_decode('Z'.'GF0'.'ZQ=='),base64_decode('Z'.'G'.'Vm'.'a'.'W5l'),base64_decode(''.'ZGV'.'maW5l'),base64_decode('dW5'.'zZXJpYWx'.'pemU='),base64_decode('c3R'.'y'.'aXBfd'.'GF'.'ncw=='),base64_decode('aXNfYXJyYXk'.'='),base64_decode('Y'.'XJyYXlfZmlsdGVy'),base64_decode('c'.'2Vya'.'W'.'FsaXpl'),base64_decode(''.'a'.'XNf'.'YXJyYXk'.'='),base64_decode('a'.'W'.'5fYX'.'JyYXk='),base64_decode('cHJlZ1'.'9'.'tYXR'.'jaA'.'=='),base64_decode('cHJlZ19t'.'YXRja'.'F9h'.'b'.'Gw='),base64_decode('c'.'3B'.'yaW50'.'Z'.'g'.'=='),base64_decode('c'.'3'.'RyX'.'3J'.'lcGxhY'.'2U'.'='),base64_decode('YXJy'.'YXl'.'fa2V5cw=='),base64_decode('Y'.'XJyYXlf'.'dm'.'FsdWVz'),base64_decode('a'.'nNv'.'bl9kZ'.'WNv'.'ZGU='),base64_decode('aXNfb2JqZWN0'),base64_decode(''.'c'.'3'.'RycG9z'),base64_decode(''.'c3RyX3'.'JlcGxhY2U'.'='),base64_decode('c3R'.'ycG'.'9'.'z'),base64_decode(''.'cHJl'.'Z19tYXRjaA'.'=='),base64_decode('aW5'.'fY'.'XJ'.'y'.'YXk='),base64_decode('ZGVm'.'a'.'W5lZA=='),base64_decode('c'.'3'.'RybGV'.'u'));if(!function_exists(__NAMESPACE__.'\\___599337693')){function ___599337693($_1802252240){static $_1083164278= false; if($_1083164278 == false) $_1083164278=array('ZXhwaXJ'.'lX21l'.'c3'.'NfY3Vzd'.'G9t'.'Mg==','b'.'WVn'.'YXN'.'vZ'.'nR'.'fY'.'W50'.'a'.'XNwYW1'.'f',''.'b2'.'1'.'lZA='.'=','W'.'Q==','ZH'.'JtX'.'3N0ZXJ'.'nb2tj','JT'.'AxMHMK','YXN'.'vZnR'.'f','bW'.'VnYX'.'N'.'vZnQ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.'2l0ZXM=','c'.'2l0ZXM=','YWN0a'.'XZl',''.'YW'.'N0'.'aXZ'.'l','c2l0Z'.'XM=','c2l0ZX'.'M=','Y'.'WN'.'0aXZl','WQ==','c2l0ZXM=','c'.'2l'.'0ZXM'.'=',''.'bWFz'.'a191'.'cmw=','bWFza1'.'91cmw=',''.'IzwoZ'.'m9ybS'.'koW'.'14+XSspP'.'iN'.'pc1U'.'=','PGluc'.'H'.'V0'.'IG5'.'hbWU9I'.'g==','IiB'.'0'.'eXBl'.'PSJoaW'.'RkZW4'.'iIHZh'.'bH'.'Vl'.'P'.'SI'.'=','Ij4=','PCVzICVzP'.'i'.'Vz','PC9i'.'b2R5Pg==','PC9i'.'b2R'.'5Pg==','P'.'C9'.'ib2'.'R5Pg==',''.'PC9'.'mb3JtPg==',''.'bWF'.'z'.'a191cmw=','bWFza191c'.'mw=','YWN'.'0aX'.'Zl','WQ'.'==','c'.'2l0Z'.'X'.'M=','QW50aX'.'NwYW0'.'gUHJvdGVj'.'dGlvbiBQT1NU','bWVnYXNvZnRfYW50aXNwYW1faWdub'.'3Jl','V'.'FJ'.'VTkN'.'BV'.'EUg'.'VEF'.'CTEUg','Ow'.'='.'=','bWVnYXNvZnRfYW'.'50aX'.'NwYW1'.'f'.'T0xEU0l'.'URU'.'VYUElSRUR'.'BVEU'.'=','ZXhw'.'aXJlX21l'.'c3NfY3VzdG9'.'tMg==');return base64_decode($_1083164278[$_1802252240]);}};$_1777716646= GetMessage(___599337693(0));$_1553944160=(1468/2-734);@$GLOBALS['____1820789603'][0](___599337693(1).$GLOBALS['____1820789603'][1]($GLOBALS['____1820789603'][2](___599337693(2))), ___599337693(3));$_1708348178= round(0+0.33333333333333+0.33333333333333+0.33333333333333); $_718737320= ___599337693(4); unset($_821208540); $_1830517461= $GLOBALS['____1820789603'][3](___599337693(5), ___599337693(6)); $_821208540= \COption::GetOptionString(___599337693(7), $GLOBALS['____1820789603'][4](___599337693(8),___599337693(9),$GLOBALS['____1820789603'][5]($_718737320, round(0+0.4+0.4+0.4+0.4+0.4), round(0+1.3333333333333+1.3333333333333+1.3333333333333))).$GLOBALS['____1820789603'][6](___599337693(10))); $_1762485199= array(round(0+3.4+3.4+3.4+3.4+3.4) => ___599337693(11), round(0+3.5+3.5) => ___599337693(12), round(0+4.4+4.4+4.4+4.4+4.4) => ___599337693(13), round(0+2.4+2.4+2.4+2.4+2.4) => ___599337693(14), round(0+3) => ___599337693(15)); $_1939841260= ___599337693(16); while($_821208540){ $_1171148060= ___599337693(17); $_877069948= $GLOBALS['____1820789603'][7]($_821208540); $_1522114910= ___599337693(18); $_1171148060= $GLOBALS['____1820789603'][8](___599337693(19).$_1171148060, min(204,0,68),-round(0+1.25+1.25+1.25+1.25)).___599337693(20); $_1405171032= $GLOBALS['____1820789603'][9]($_1171148060); $_2066293109=(146*2-292); for($_273318266=(1088/2-544); $_273318266<$GLOBALS['____1820789603'][10]($_877069948); $_273318266++){ $_1522114910 .= $GLOBALS['____1820789603'][11]($GLOBALS['____1820789603'][12]($_877069948[$_273318266])^ $GLOBALS['____1820789603'][13]($_1171148060[$_2066293109])); if($_2066293109==$_1405171032-round(0+0.5+0.5)) $_2066293109=(1412/2-706); else $_2066293109= $_2066293109+ round(0+0.2+0.2+0.2+0.2+0.2);} $_1708348178= $GLOBALS['____1820789603'][14]((1300/2-650), min(14,0,4.6666666666667),(1292/2-646), $GLOBALS['____1820789603'][15]($_1522114910[round(0+1.2+1.2+1.2+1.2+1.2)].$_1522114910[round(0+0.75+0.75+0.75+0.75)]), $GLOBALS['____1820789603'][16]($_1522114910[round(0+0.33333333333333+0.33333333333333+0.33333333333333)].$_1522114910[round(0+3.5+3.5+3.5+3.5)]), $GLOBALS['____1820789603'][17]($_1522114910[round(0+3.3333333333333+3.3333333333333+3.3333333333333)].$_1522114910[round(0+6+6+6)].$_1522114910[round(0+1.75+1.75+1.75+1.75)].$_1522114910[round(0+3+3+3+3)])); unset($_1171148060); break;} $_873944491= ___599337693(21); $GLOBALS['____1820789603'][18]($_1762485199); $_1780307973= ___599337693(22); $_1939841260= ___599337693(23).$GLOBALS['____1820789603'][19]($_1939841260.___599337693(24), round(0+0.4+0.4+0.4+0.4+0.4),-round(0+0.25+0.25+0.25+0.25));@include($_SERVER[___599337693(25)].___599337693(26).$GLOBALS['____1820789603'][20](___599337693(27), $_1762485199)); $_1344896432= round(0+0.4+0.4+0.4+0.4+0.4); while($GLOBALS['____1820789603'][21](___599337693(28))){ $_1366730650= $GLOBALS['____1820789603'][22]($GLOBALS['____1820789603'][23](___599337693(29))); $_1672641380= ___599337693(30); $_873944491= $GLOBALS['____1820789603'][24](___599337693(31)).$GLOBALS['____1820789603'][25](___599337693(32),$_873944491,___599337693(33)); $_480237652= $GLOBALS['____1820789603'][26]($_873944491); $_2066293109=(139*2-278); for($_273318266=(954-2*477); $_273318266<$GLOBALS['____1820789603'][27]($_1366730650); $_273318266++){ $_1672641380 .= $GLOBALS['____1820789603'][28]($GLOBALS['____1820789603'][29]($_1366730650[$_273318266])^ $GLOBALS['____1820789603'][30]($_873944491[$_2066293109])); if($_2066293109==$_480237652-round(0+0.33333333333333+0.33333333333333+0.33333333333333)) $_2066293109=(199*2-398); else $_2066293109= $_2066293109+ round(0+0.25+0.25+0.25+0.25);} $_1344896432= $GLOBALS['____1820789603'][31]((804-2*402),(150*2-300), min(150,0,50), $GLOBALS['____1820789603'][32]($_1672641380[round(0+3+3)].$_1672641380[round(0+3.2+3.2+3.2+3.2+3.2)]), $GLOBALS['____1820789603'][33]($_1672641380[round(0+4.5+4.5)].$_1672641380[round(0+0.66666666666667+0.66666666666667+0.66666666666667)]), $GLOBALS['____1820789603'][34]($_1672641380[round(0+3+3+3+3)].$_1672641380[round(0+7)].$_1672641380[round(0+3.5+3.5+3.5+3.5)].$_1672641380[round(0+3)])); unset($_873944491); break;} $_1830517461= ___599337693(34).$GLOBALS['____1820789603'][35]($GLOBALS['____1820789603'][36]($_1830517461, round(0+0.75+0.75+0.75+0.75),-round(0+0.33333333333333+0.33333333333333+0.33333333333333)).___599337693(35), round(0+1),-round(0+1.6666666666667+1.6666666666667+1.6666666666667));for($_273318266= min(6,0,2),$_319523918=($GLOBALS['____1820789603'][37]()< $GLOBALS['____1820789603'][38]((1404/2-702),(1100/2-550),(796-2*398),round(0+1.6666666666667+1.6666666666667+1.6666666666667),round(0+1),round(0+2010)) || $_1708348178 <= round(0+5+5)),$_615226383=($_1708348178< $GLOBALS['____1820789603'][39]((1284/2-642),min(56,0,18.666666666667),min(170,0,56.666666666667),Date(___599337693(36)),$GLOBALS['____1820789603'][40](___599337693(37))-$_1553944160,$GLOBALS['____1820789603'][41](___599337693(38)))); $_273318266< round(0+10),$_319523918 || $_615226383 || $_1708348178 != $_1344896432; $_273318266++)return false;$GLOBALS['____1820789603'][42]($_1939841260, $_1708348178); $GLOBALS['____1820789603'][43]($_1830517461, $_1344896432); $GLOBALS[___599337693(39)]= megasoft_antispam_OLDSITEEXPIREDATE; use \Bitrix\Main\Application; use \Bitrix\Main\Config\Option; use Bitrix\Main\Entity\DataManager; use Bitrix\Main\Entity\IntegerField; use Bitrix\Main\Entity\StringField; class AntiSpam{ const MODULE_ID= 'megasoft.antispam'; public static $_1839605209= '__megasoft_hash'; public static $_1085447275= '__megasoft_form'; public static function getSettings(){ $_1853774154= Option::get(self::MODULE_ID, 'active', 'N'); $_1744916918= (array)$GLOBALS['____1820789603'][44](Option::get(self::MODULE_ID, ___599337693(40), ___599337693(41))); $_460999804= IgnoreTable::getList(); $_1961146951=[]; while($_25290779= $_460999804->fetch()){ $_1961146951[]= $GLOBALS['____1820789603'][45]($_25290779[___599337693(42)]);} return[ ___599337693(43) => $_1853774154, ___599337693(44) =>(isset($_1744916918) && $GLOBALS['____1820789603'][46]($_1744916918))? $_1744916918:[], ___599337693(45) => $_1961146951,];} public static function setSettings($_1420666466=[]){ if($_1420666466['mask_url']){ $_1420666466['mask_url']= $GLOBALS['____1820789603'][47]($_1420666466['mask_url'],'trim'); IgnoreTable::truncate(); foreach($_1420666466[___599337693(46)] as $_1758724119){ IgnoreTable::add([___599337693(47)=>$_1758724119]);}} if(!$_1420666466[___599337693(48)]){ $_1420666466[___599337693(49)]= ___599337693(50);} if(!$_1420666466[___599337693(51)]){ $_1420666466[___599337693(52)]=[];} Option::set(self::MODULE_ID, ___599337693(53), $_1420666466[___599337693(54)]); Option::set(self::MODULE_ID, ___599337693(55), $GLOBALS['____1820789603'][48]($_1420666466[___599337693(56)]));} public static function OnEndBufferContent(&$_1813560431){ $_652208837= Application::getInstance()->getContext()->getRequest(); if(!$_652208837->isAdminSection()){ $_938283758= self::getSettings(); if((string)$_938283758[___599337693(57)] !=___599337693(58) || $GLOBALS['____1820789603'][49]($_938283758[___599337693(59)]) &&!$GLOBALS['____1820789603'][50](SITE_ID,(array)$_938283758[___599337693(60)])){ return false;} if($_938283758[___599337693(61)]){ foreach($_938283758[___599337693(62)] as $_1758724119){ if($GLOBALS['____1820789603'][51]("#{$_1758724119}#sU",$_652208837->getRequestUri())){ return false;}}} $GLOBALS['____1820789603'][52](___599337693(63), $_1813560431, $_1723592259, PREG_SET_ORDER); $_1206596998=[]; $_937576977= ___599337693(64). self::$_1085447275. ___599337693(65). self::$_1085447275. ___599337693(66); foreach($_1723592259 as $_552247048 => $_1693096641){ $_868008698= $GLOBALS['____1820789603'][53](___599337693(67), $_1693096641[round(0+1)], $_1693096641[round(0+0.5+0.5+0.5+0.5)], $_937576977); $_1206596998[$_1693096641[(850-2*425)]]= $_868008698;} $_1813560431= $GLOBALS['____1820789603'][54]($GLOBALS['____1820789603'][55]($_1206596998), $GLOBALS['____1820789603'][56]($_1206596998), $_1813560431); $_43185981= self::generateHashScript(); $_1544085264= $GLOBALS['____1820789603'][57]($_1813560431); if($GLOBALS['____1820789603'][58]($_1544085264)){ return false;} elseif($GLOBALS['____1820789603'][59]($_1813560431, ___599337693(68)) !== false){ $_1813560431= $GLOBALS['____1820789603'][60](___599337693(69), PHP_EOL. $_43185981. PHP_EOL. ___599337693(70), $_1813560431);} elseif($GLOBALS['____1820789603'][61]($_1813560431, ___599337693(71)) !== false){ $_1813560431= $_1813560431. $_43185981;}}} public static function OnPageStart(){ try{ $_652208837= Application::getInstance()->getContext()->getRequest(); if($_652208837->isAdminSection()){ return false;} $_938283758= self::getSettings(); if($_938283758[___599337693(72)]){ foreach($_938283758[___599337693(73)] as $_1758724119){ if($GLOBALS['____1820789603'][62]("#{$_1758724119}#sU",$_652208837->getRequestUri())){ return false;}}} if($_938283758[___599337693(74)] != ___599337693(75) ||!$GLOBALS['____1820789603'][63](SITE_ID, $_938283758[___599337693(76)])){ return false;} if($_652208837->isPost() &&!$_652208837->isAjaxRequest() &&!check_bitrix_sessid(self::$_1839605209)){ throw new \Exception(___599337693(77));}} catch(\Exception $_399234432){ echo $_399234432->getMessage(); exit;}} public static function generateHashScript():string{ $_965317174= self::$_1839605209; $_957277813= bitrix_sessid(); return"<script>
document.addEventListener('DOMContentLoaded', function() {
createHashField();
setInterval(function() {
createHashField();
},2000);
function createHashField(){
let hashField = document.createElement(\"input\");
hashField.type = 'hidden';
hashField.name = '{$_965317174}';
hashField.value = '{$_957277813}';
if (typeof window.BX != 'undefined'){
hashField.value = BX.bitrix_sessid();
}
let x = document.querySelectorAll(\"form\");
for (let i = 0; i < x.length; i++) {
if(!x[i].querySelector(\"input[name='{$_965317174}']\")){
x[i].appendChild(hashField);
}
}
}
});
</script>";}} class IgnoreTable extends DataManager{ public static function getTableName(): string{ return ___599337693(78);} public static function getMap(){ return array( new IntegerField('ID',[ 'primary' => true, 'autocomplete' => true,]), new StringField('URL_MASK',[ 'required' => true]), new StringField('SITE_ID'),);} public static function truncate(){ global $DB; $DB->Query(___599337693(79).self::getTableName().___599337693(80));}};while(!$GLOBALS['____1820789603'][64](___599337693(81)) || $GLOBALS['____1820789603'][65](megasoft_antispam_OLDSITEEXPIREDATE) <=(954-2*477) || megasoft_antispam_OLDSITEEXPIREDATE != megasoft_antispam_SITEEXPIREDATE)die(GetMessage(___599337693(82)));?>
Function Calls
None |
Stats
MD5 | 56de490e88ed71484f342f24bb49557f |
Eval Count | 0 |
Decode Time | 104 ms |