added Gameserver and privkey
This commit is contained in:
parent
d940c04094
commit
373ff1bbcf
|
|
@ -0,0 +1,3 @@
|
|||
-----BEGIN RSA PRIVATE KEY-----
|
||||
MIICXQIBAAKBgQDAWrd/TwGJULsVRo06rCpznNmW4zLJK6LwkfTvG3wURFFBj9E9zuaKAOzHVRrHsWKJhq2BxSUze7OClgzgzFLRQHhRQFKn/skLPrV85bFakoK/dnt9h/Jyn2cD2A8Za6q90O3h9FSy9mLvCN07g07IXtauYZfOXvqyqOn4rAeUJQIDAQABAoGBAISbxddZo0iERIW1XtXtLVMI9iUEutVfZPSO2xogi5j5RD97o5gF1H+dhZ8iN9UloDYJiAJn5G6qwCWtxnEPy6NO4lMDgFMQtlpIIW9mafZ7m+AueYJtgO5elLUnFbOA39OcvFUleL9ded42yuB2wfsGdKl85+mHvn8j4zTmT0+9AkEA3H7NBFhIVf3Vj6iLXwPmamhou8T8b+HSXop0krrP/jDw/wHbl0DEJbQv+ypYdoXJo8XS2Hs39z20pCEsUo2/NwJBAN9T5aWXmVnymbdNUCDMjjer2d6Ey9ARyFgB07xHSod+HWlSCES8pcWwZZrP/I4cf2CEiAInfgak0kNNWLOWnYMCQDJEoj7UVaFtHiwDM8r0m6o0pXPxY8+p/wjYrdzpxBNiWv74EHT6Kf2ih7HOJJ7Yv3Cb4AbEiKzQH4evnGgxsp8CQQDRPK+ad/DLn0p5vMvoDv7oFfCoVM8IAMEuA3g3nKutSnGP7bWlgQHnuB9Z7qf3FagZ69HqAspGu0HsoJkMmX61AkAO5wTd+rja0MP7rT5xNVYBALtdYLWowBov4NCN7BVDkd0JzeTjMtDerirvEDuzDBrbyFtKV5rZjZpuotFc+5/t
|
||||
-----END RSA PRIVATE KEY-----
|
||||
|
|
@ -0,0 +1,81 @@
|
|||
<?php
|
||||
|
||||
header("content-type:text/plain");
|
||||
|
||||
$port = addslashes($_GET["port"]);
|
||||
ob_start();
|
||||
?>
|
||||
game:Load('rbxasset://temp.rbxl')
|
||||
local assetPropertyNames = {"Texture", "TextureId", "SoundId", "MeshId", "SkyboxUp", "SkyboxLf", "SkyboxBk", "SkyboxRt", "SkyboxFt", "SkyboxDn", "PantsTemplate", "ShirtTemplate", "Graphic", "Frame", "ImageLabel", "GuiMain", "Image", "LinkedSource", "AnimationId"}
|
||||
local variations = {"http://www%.roblox%.com/asset/%?id=", "http://www%.roblox%.com/asset%?id=", "http://%.roblox%.com/asset/%?id=", "http://%.roblox%.com/asset%?id="}
|
||||
|
||||
function GetDescendants(o)
|
||||
local allObjects = {}
|
||||
function FindChildren(Object)
|
||||
for _,v in pairs(Object:GetChildren()) do
|
||||
table.insert(allObjects,v)
|
||||
FindChildren(v)
|
||||
end
|
||||
end
|
||||
FindChildren(o)
|
||||
return allObjects
|
||||
end
|
||||
|
||||
local replacedProperties = 0--Amount of properties changed
|
||||
|
||||
for i, v in pairs(GetDescendants(game)) do
|
||||
for _, property in pairs(assetPropertyNames) do
|
||||
pcall(function()
|
||||
if v[property] and not v:FindFirstChild(property) then --Check for property, make sure we're not getting a child instead of a property
|
||||
assetText = string.lower(v[property])
|
||||
for _, variation in pairs(variations) do
|
||||
v[property], matches = string.gsub(assetText, variation, "http://www%.morblox%.us/asset/%?id=")
|
||||
if matches > 0 then
|
||||
replacedProperties = replacedProperties + 1
|
||||
print("Replaced " .. property .. " asset link for " .. v.Name)
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
||||
print("DONE! Replaced " .. replacedProperties .. " properties")
|
||||
game:GetService("NetworkServer"):Start(<?php echo $port; ?>)
|
||||
game:GetService("RunService"):Run()
|
||||
game.Lighting.GlobalShadows = true
|
||||
game.Players.PlayerAdded:connect(function(plr)
|
||||
Player.Changed:connect(function(Property)
|
||||
if (Property=="Character") and (Player.Character~=nil) then
|
||||
local Character=Player.Character
|
||||
local Humanoid=Character:FindFirstChild("Humanoid")
|
||||
if (Humanoid~=nil) then
|
||||
Humanoid.Died:connect(function() delay(RespawnTime,function() Player:LoadCharacter() LoadCharacterNew(newWaitForChild(Player,"Appearance"),Player.Character,Player.Backpack) end) end)
|
||||
end
|
||||
end
|
||||
end)
|
||||
end)
|
||||
game.Players.PlayerAdded:connect(onJoined)
|
||||
game:GetService("NetworkServer"):Start(<?php echo $port; ?>)
|
||||
game:GetService("RunService"):Run()
|
||||
game.Lighting.GlobalShadows = true
|
||||
game.Players.PlayerAdded:connect(function(plr)
|
||||
Player.Changed:connect(function(Property)
|
||||
if (Property=="Character") and (Player.Character~=nil) then
|
||||
local Character=Player.Character
|
||||
local Humanoid=Character:FindFirstChild("Humanoid")
|
||||
if (Humanoid~=nil) then
|
||||
Humanoid.Died:connect(function() delay(RespawnTime,function() Player:LoadCharacter() LoadCharacterNew(newWaitForChild(Player,"Appearance"),Player.Character,Player.Backpack) end) end)
|
||||
end
|
||||
end
|
||||
end)
|
||||
end)
|
||||
game.Players.PlayerAdded:connect(onJoined)
|
||||
<?php
|
||||
$data = ob_get_clean();
|
||||
$signature;
|
||||
$key = file_get_contents("./GameRBLX/PrivKey.pem");
|
||||
openssl_sign($data, $signature, $key, OPENSSL_ALGO_SHA1);
|
||||
echo "" . sprintf("%%%s%%%s", base64_encode($signature), $data);
|
||||
?>
|
||||
Loading…
Reference in New Issue