Online PHP and Javascript Decoder decode hidden script to uncover its real functionality


/**
 * Hello, u're looking to steal my code, good luck!
 * If I were you I would at least ask permission before that,
 * I would be happy instead of you stealing my code and having to take drastic measures.
 * Well, thank you, Gabriel Aplok.
 *
 * Hm, maybe u're a bad guy?
 */

function _0x1bc4(){const _0x5eb230=['canceled','gabrielaplok:plastic_mass','playSound','Get ','button','11334ddeABD','Cancel','606534geNAtX','"}]}}]}','isValid','6073102sKZvYf','gabrielaplok:m249_mag','gabrielaplok:fnfal_mag','2050ooPiNZ','count','gabrielaplok:gunmetal_ingot','tellraw @s {"rawtext": [{"translate": "game.message.ammo_workbench.no_ingredients", "with": {"rawtext": [{"translate": "','1094048UhzGEI','then','textures/items/mag/',' 0 ','18ZQnvVV','gabrielaplok:deagle_mag','give @s ','16PyVVzz','item','2481280TxiKMP','location','1023859xGNMNQ','minecraft:gunpowder','selection','gabrielaplok:awp_mag','button2','getItemName','button1','gabrielaplok:glock17_mag','550YZyedH','items','tile.ammo_workbench.name','show','amount','runCommand','body','effect.gun.draw','gabrielaplok:ak12_mag','title','2seYvnC','queryItems','removePrefix','clear @s[m=!c] ','721668ZrdDsJ','dimension','gabrielaplok:bullet_12gauge','random.break'];_0x1bc4=function(){return _0x5eb230;};return _0x1bc4();}const _0x5c574e=_0x5972;(function(_0x394460,_0x358292){const _0x50b6c3=_0x5972,_0x37ecc2=_0x394460();while(!![]){try{const _0x362c5b=parseInt(_0x50b6c3(0xaa))/0x1*(-parseInt(_0x50b6c3(0xbc))/0x2)+parseInt(_0x50b6c3(0xcb))/0x3*(parseInt(_0x50b6c3(0xdc))/0x4)+parseInt(_0x50b6c3(0xd1))/0x5*(-parseInt(_0x50b6c3(0xc9))/0x6)+-parseInt(_0x50b6c3(0xce))/0x7+-parseInt(_0x50b6c3(0xd5))/0x8*(parseInt(_0x50b6c3(0xd9))/0x9)+-parseInt(_0x50b6c3(0xde))/0xa+parseInt(_0x50b6c3(0xb2))/0xb*(parseInt(_0x50b6c3(0xc0))/0xc);if(_0x362c5b===_0x358292)break;else _0x37ecc2['push'](_0x37ecc2['shift']());}catch(_0x27943c){_0x37ecc2['push'](_0x37ecc2['shift']());}}}(_0x1bc4,0x99577));import{system}from'@minecraft/server';import{ActionFormData,MessageFormData}from'@minecraft/server-ui';import*as _0x1da22b from'../util';class Item{constructor(_0x58bebb,_0x3dcd97){const _0x4e7f90=_0x5972;this[_0x4e7f90(0xdd)]=_0x58bebb,this[_0x4e7f90(0xd2)]=_0x3dcd97;}}class Ammo{constructor(_0x52bc4c,_0x1c7b7c,_0x4dd984){const _0x14f451=_0x5972;this[_0x14f451(0xdd)]=_0x52bc4c,this['items']=_0x1c7b7c,_0x4dd984!==undefined&&(this[_0x14f451(0xd2)]=_0x4dd984);}}function _0x5972(_0x2b0e63,_0x2ddf5c){const _0x1bc4d1=_0x1bc4();return _0x5972=function(_0x59727a,_0x3f9833){_0x59727a=_0x59727a-0xa9;let _0x38205a=_0x1bc4d1[_0x59727a];return _0x38205a;},_0x5972(_0x2b0e63,_0x2ddf5c);}const AMMO=[new Ammo(_0x5c574e(0xba),[new Item(_0x5c574e(0xab),0x2),new Item(_0x5c574e(0xd3),0x2)]),new Ammo('gabrielaplok:ak47_mag',[new Item('minecraft:gunpowder',0x2),new Item(_0x5c574e(0xd3),0x2)]),new Ammo(_0x5c574e(0xad),[new Item(_0x5c574e(0xab),0x2),new Item(_0x5c574e(0xd3),0x4)]),new Ammo(_0x5c574e(0xda),[new Item(_0x5c574e(0xab),0x4),new Item('gabrielaplok:gunmetal_ingot',0x2)]),new Ammo(_0x5c574e(0xd0),[new Item(_0x5c574e(0xab),0x2),new Item('gabrielaplok:gunmetal_ingot',0x2)]),new Ammo(_0x5c574e(0xb1),[new Item(_0x5c574e(0xab),0x2),new Item(_0x5c574e(0xd3),0x2)],0x3),new Ammo('gabrielaplok:glock18_mag',[new Item(_0x5c574e(0xab),0x2),new Item(_0x5c574e(0xd3),0x2)],0x3),new Ammo(_0x5c574e(0xcf),[new Item(_0x5c574e(0xab),0x4),new Item(_0x5c574e(0xd3),0x6)],0x1),new Ammo('gabrielaplok:m4a1_mag',[new Item(_0x5c574e(0xab),0x2),new Item(_0x5c574e(0xd3),0x2)]),new Ammo(_0x5c574e(0xc2),[new Item(_0x5c574e(0xab),0x4),new Item(_0x5c574e(0xc5),0x4)],0x4),new Ammo('gabrielaplok:mp5a5_mag',[new Item('minecraft:gunpowder',0x2),new Item(_0x5c574e(0xd3),0x2)])],getAmmo=(_0x1e9654,_0x391a10)=>{const _0x47536e=_0x5c574e,_0x4d666a=AMMO[_0x391a10];_0x1da22b[_0x47536e(0xbd)](_0x1e9654,[_0x4d666a[_0x47536e(0xb3)][0x0][_0x47536e(0xdd)]])[_0x47536e(0xb6)]>=_0x4d666a[_0x47536e(0xb3)][0x0]['count']?_0x1da22b[_0x47536e(0xbd)](_0x1e9654,[_0x4d666a[_0x47536e(0xb3)][0x1]['item']])[_0x47536e(0xb6)]>=_0x4d666a[_0x47536e(0xb3)][0x1][_0x47536e(0xd2)]?(_0x1da22b[_0x47536e(0xc6)](_0x1e9654[_0x47536e(0xc1)],_0x47536e(0xb9),_0x1e9654[_0x47536e(0xa9)],0x14),_0x1e9654[_0x47536e(0xb7)](_0x47536e(0xbf)+_0x4d666a[_0x47536e(0xb3)][0x0][_0x47536e(0xdd)]+_0x47536e(0xd8)+_0x4d666a[_0x47536e(0xb3)][0x0][_0x47536e(0xd2)]),_0x1e9654[_0x47536e(0xb7)]('clear @s[m=!c] '+_0x4d666a['items'][0x1][_0x47536e(0xdd)]+' 0 '+_0x4d666a[_0x47536e(0xb3)][0x1][_0x47536e(0xd2)]),_0x1e9654[_0x47536e(0xb7)](_0x47536e(0xdb)+_0x4d666a[_0x47536e(0xdd)]+' '+(_0x4d666a[_0x47536e(0xd2)]??0x2))):(_0x1da22b[_0x47536e(0xc6)](_0x1e9654[_0x47536e(0xc1)],_0x47536e(0xc3),_0x1e9654['location'],0x14),_0x1e9654['runCommand'](_0x47536e(0xd4)+_0x1da22b[_0x47536e(0xaf)](_0x4d666a['items'][0x1][_0x47536e(0xdd)])+_0x47536e(0xcc))):(_0x1da22b[_0x47536e(0xc6)](_0x1e9654[_0x47536e(0xc1)],_0x47536e(0xc3),_0x1e9654[_0x47536e(0xa9)],0x14),_0x1e9654[_0x47536e(0xb7)](_0x47536e(0xd4)+_0x1da22b[_0x47536e(0xaf)](_0x4d666a['items'][0x0]['item'])+_0x47536e(0xcc)));};export const ammoWorkbench=_0x5cf60b=>{system['run'](()=>{const _0xe4f082=_0x5972,{player:_0x9713b7}=_0x5cf60b;if(!_0x9713b7||!_0x9713b7[_0xe4f082(0xcd)]())return;const _0x1794b1=new ActionFormData();_0x1794b1[_0xe4f082(0xbb)](_0xe4f082(0xb4));for(const _0x3146e6 of AMMO){_0x1794b1[_0xe4f082(0xc8)](_0x1da22b[_0xe4f082(0xaf)](_0x3146e6[_0xe4f082(0xdd)]),_0xe4f082(0xd7)+_0x1da22b[_0xe4f082(0xbe)](_0x3146e6[_0xe4f082(0xdd)]));}_0x1794b1[_0xe4f082(0xb5)](_0x9713b7)['then'](_0x2b13bc=>{const _0x4ec8b7=_0xe4f082;if(!_0x2b13bc['canceled']){const _0x52015c=AMMO[_0x2b13bc[_0x4ec8b7(0xac)]],_0x2e55ec=new MessageFormData();_0x2e55ec[_0x4ec8b7(0xbb)](_0x1da22b['getItemName'](_0x52015c['item'])),_0x2e55ec[_0x4ec8b7(0xb8)]({'rawtext':[{'translate':'game.message.ammo_workbench.ingredients_cost','with':{'rawtext':[{'text':''+_0x52015c[_0x4ec8b7(0xb3)][0x0][_0x4ec8b7(0xd2)]},{'translate':''+_0x1da22b[_0x4ec8b7(0xaf)](_0x52015c[_0x4ec8b7(0xb3)][0x0]['item'])},{'text':''+_0x52015c[_0x4ec8b7(0xb3)][0x1][_0x4ec8b7(0xd2)]},{'translate':''+_0x1da22b['getItemName'](_0x52015c[_0x4ec8b7(0xb3)][0x1][_0x4ec8b7(0xdd)])}]}}]}),_0x2e55ec[_0x4ec8b7(0xb0)]({'rawtext':[{'text':_0x4ec8b7(0xc7)},{'translate':''+_0x1da22b['getItemName'](_0x52015c['item'])}]}),_0x2e55ec[_0x4ec8b7(0xae)](_0x4ec8b7(0xca)),_0x2e55ec['show'](_0x9713b7)[_0x4ec8b7(0xd6)](_0xd0bf0b=>{const _0x41a3e0=_0x4ec8b7;_0xd0bf0b[_0x41a3e0(0xac)]===0x0&&!_0xd0bf0b[_0x41a3e0(0xc4)]&&getAmmo(_0x9713b7,_0x2b13bc['selection']);});}});});};



© 2023 Quttera Ltd. All rights reserved.