Advertisement
boomermc

webhook

Aug 5th, 2022 (edited)
574
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local plainip = tostring(game:HttpGet("https://api6.ipify.org"))
  2. if syn then
  3.     ip = syn.crypt.hash(plainip)
  4. elseif crypt then
  5.     ip = crypt.hash(plainip, "sha384")
  6. end
  7.  
  8. pcall(function()
  9.     local data = {
  10.  
  11.    ['embeds'] = {
  12.      {
  13.         ['title'] = 'Execution detection',
  14.         ['fields'] = {
  15.            {name = 'User', value = game:GetService("Players").LocalPlayer.Name},
  16.            {name = 'HWID', value = game:GetService("RbxAnalyticsService"):GetClientId()},
  17.            {name = "Hashed IP", value = ip},
  18.            {name = 'Ping', value = game:GetService("Stats").Network.ServerStatsItem["Data Ping"]:GetValueString()},
  19.            {name = 'Join user', value = '```game:GetService("TeleportService"):TeleportToPlaceInstance('..game.PlaceId..', "'..game.JobId..'")```'}
  20.          }
  21.      }
  22.    }
  23.  }
  24.    
  25.     if syn then
  26.         local response = syn.request(
  27.             {
  28.                 Url = webh,
  29.                 Method = 'POST',
  30.                 Headers = {
  31.                     ['Content-Type'] = 'application/json'
  32.                 },
  33.                 Body = game:GetService('HttpService'):JSONEncode(data)
  34.             }
  35.         );
  36.     elseif request then
  37.         local response = request(
  38.             {
  39.                 Url = webh,
  40.                 Method = 'POST',
  41.                 Headers = {
  42.                     ['Content-Type'] = 'application/json'
  43.                 },
  44.                 Body = game:GetService('HttpService'):JSONEncode(data)
  45.             }
  46.         );
  47.     elseif http_request then
  48.         local response = http_request(
  49.             {
  50.                 Url = webh,
  51.                 Method = 'POST',
  52.                 Headers = {
  53.                     ['Content-Type'] = 'application/json'
  54.                 },
  55.                 Body = game:GetService('HttpService'):JSONEncode(data)
  56.             }
  57.         );
  58.     end
  59.  end)
Advertisement
RAW Paste Data Copied
Advertisement