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


  1. function main(_0x37aa46){
  2. var _0x4fe216=_0x37aa46['getSubject']();
  3. }
  4. function interact(_0x1ff08f){
  5. try{
  6. let _0x12050d=_0x1ff08f['getSubject']();
  7. let _0x2cdac5=_0x12050d['getPosition']();
  8. let _0x34ea02=_0x12050d['getStates']();
  9. let _0x4c5907=_0x34ea02['getString']('id');
  10. _0x1ff08f['getObject']()['getEntityData']()['setString']('npcId',_0x4c5907);
  11. _0x1ff08f['getObject']()['executeScript']('ui_corpse.js');
  12. }
  13. catch(_0xf85bc){
  14. 'InteractError'+_0x1ff08f['send'](_0xf85bc);
  15. }
  16. }
  17. function initialization(_0xfc9953){
  18. try{
  19. let _0x42fa06=_0xfc9953['getSubject']();
  20. let _0x5d5321=_0x42fa06['getPosition']();
  21. let _0x396c35=_0x42fa06['getRotations']();
  22. let _0xdc3a98=_0x42fa06['getUniqueId']();
  23. let _0x40bb1e=JSON['parse'](_0x42fa06['getStates']()['getString']('inventory'));
  24. let _0x4f1ce7=_0xfc9953['getServer']()['getAllPlayers']();
  25. let _0x2e9695=null;
  26. let _0x182092=Infinity;
  27. _0x42fa06['setRotations'](_0x396c35['x'],_0x396c35['y'],_0x396c35['z']);
  28. for(i in _0x4f1ce7){
  29. let _0x595707=_0x4f1ce7[i];
  30. let _0xcee130=_0x595707['getPosition']();
  31. let _0x61c9aa=_0xcee130['distance'](_0x5d5321);
  32. if(_0x61c9aa<_0x182092&&_0x595707['getGameMode']()!=0x3){
  33. _0x182092=_0x61c9aa;
  34. _0x2e9695=_0x595707;
  35. }
  36. }
  37. if(_0x2e9695['isPlayer']()){
  38. let _0x2123e3=_0x2e9695['getInventory']();
  39. let _0x1e7f31=JSON['parse'](_0x2e9695['getStates']()['getString']('skin'));
  40. let _0x266040=_0x1e7f31['type']=='fred'?'male':'female';
  41. let _0x3ffe87='{
  42. Hitbox:{
  43. Eye:0.9f,Sneak:0.1f,Enabled:1b,Height:0.05f,Width:1f
  44. }
  45. ,Actions:{
  46. idle:{
  47. Speed:0.0f,Name:"stun1_idle"
  48. }
  49. }
  50. ,Pose:{
  51. Pose:{
  52. head:{
  53. RX:-0.5235988f
  54. }
  55. ,right_knee:{
  56. }
  57. ,right_arm:{
  58. }
  59. ,left_leg:{
  60. }
  61. ,torso:{
  62. }
  63. ,left_arm:{
  64. }
  65. ,right_leg:{
  66. }
  67. ,model:{
  68. }
  69. ,right_elbow:{
  70. }
  71. ,left_knee:{
  72. }
  73. ,left_elbow:{
  74. }
  75. }
  76. }
  77. ,Skin:"'+_0x1e7f31['link']+'",Name:"chameleon.hnt_'+_0x266040+'"
  78. }
  79. ';
  80. for(let _0xe9c019=0x0;
  81. _0xe9c019<_0x2123e3['size']();
  82. _0xe9c019++){
  83. let _0x40a4fc=_0x2123e3['getStack'](_0xe9c019);
  84. if(_0x40a4fc['getItem']()['getId']()=='huntclient:shotgun'){
  85. let _0xb995b1=_0x40a4fc['getData']();
  86. _0xb995b1['setBoolean']('cooldown',![]);
  87. _0x40a4fc['setData'](_0xb995b1);
  88. }
  89. if(_0x40a4fc['getItem']()['getId']()!='minecraft:air'){
  90. _0x40bb1e['push']({
  91. 'id':_0x40a4fc['getItem']()['getId'](),'count':_0x40a4fc['getCount'](),'tag':_0x40a4fc['getData']()['dumpJSON']()['replace'](/""hnt":/g,'"hnt:')
  92. }
  93. );
  94. }
  95. }
  96. _0x42fa06['setMorph'](mappet['createMorph'](_0x3ffe87));
  97. _0x42fa06['playAnimation']('stun1');
  98. _0x42fa06['getStates']()['setString']('id',_0xdc3a98);
  99. _0x42fa06['getStates']()['setString']('name',_0x2e9695['getName']());
  100. _0x42fa06['getStates']()['setString']('inventory',JSON['stringify'](_0x40bb1e));
  101. }
  102. }
  103. catch(_0x5d06eb){
  104. 'initializationError'+_0xfc9953['send'](_0x5d06eb);
  105. }
  106. }



© 2023 Quttera Ltd. All rights reserved.