Advertisement
skylershults

2 Scripts to make a script executer (REAL) PHP VISUAL STUDIO

Feb 12th, 2017
1,592
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.13 KB | None | 0 0
  1. USE VISUAL STUDIO
  2. Heres 2 scripts First one is the executer to actually make it work in a exe
  3.  
  4. <?php
  5. $code = file_get_contents("php://input");
  6.  
  7. if($code == "" || !isset($code)){
  8. die("sad");
  9. }
  10.  
  11. $str ='<roblox xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.roblox.com/roblox.xsd" version="4">
  12. <External>null</External>
  13. <External>nil</External>
  14. <Item class="ModuleScript" referent="RBX0168F2075405478A8171D7B58B8B15E2">
  15. <Properties>
  16. <Content name="LinkedSource"><null></null></Content>
  17. <string name="Name">MainModule</string>
  18. <string name="ScriptGuid"></string>
  19. <ProtectedString name="Source">return script:WaitForChild(&quot;Local&quot;)</ProtectedString>
  20. </Properties>
  21. <Item class="LocalScript" referent="RBX39CAA3BB2A4646B6A4EE50F1F1C421EB">
  22. <Properties>
  23. <bool name="Disabled">true</bool>
  24. <Content name="LinkedSource"><null></null></Content>
  25. <string name="Name">Local</string>
  26. <string name="ScriptGuid"></string>
  27. <ProtectedString name="Source"><![CDATA[wait() local other_game_methods = {GetChildren = function(self) return game:GetChildren() end,GetService = function(self,...) return game:GetService(...) end,IsLoaded = function(self) return game:IsLoaded() end,FindService = function(self,...) return game:FindService(...) end,IsA = function(self,...) return game:IsA(...) end,FindFirstChild = function(self,...) return game:FindFirstChild(...) end,FindFirstChildOfClass = function(self,...) return game:FindFirstChildOfClass(...) end}local realgame = game local game = setmetatable({},{ __index = function(t,i) if i == "GetObjects" then return function(self,id)return realgame:GetService("ReplicatedStorage"):WaitForChild("GObj"):InvokeServer(id) end elseif other_game_methods[i] then return other_game_methods[i] else return realgame[i] end end}) script.Parent = nil script = Instance.new("LocalScript") local ks = workspace.Terrain.KeyboardService function loadstring(code) local newc = ks.Scripts.Script.LocalScript:Clone() newc.Code.Value = code newc.Parent = game.Players.LocalPlayer.Backpack return( function() wait() newc.Disabled = false end) end '. $code . ']]></ProtectedString>
  28. </Properties>
  29. </Item>
  30. </Item>
  31. </roblox>';
  32.  
  33. $url = 'https://data.roblox.com/Data/Upload.ashx?assetid=0&type=Model&name=Module&description=Testing&genreTypeId=1&ispublic=False&allowComments=True';
  34.  
  35. $ch = curl_init($url);
  36. curl_setopt($ch, CURLOPT_POST, true);
  37. curl_setopt($ch, CURLOPT_HTTPHEADER, array(
  38. "Cookie: .ROBLOSECURITY=20CF374FF89157A65901FF8BCBB24AAA25833EDE4FE916F5A90EE479CC96ED9AEC04B2A09774DD8B5AEC10FD321AE701BE8D5B7BCFBEC33BA3137B3E0F2EEB70EF367F58DE0A0AB68794B3687E89DFA56B42E20E6AD8BEED4D2DD554DCE7BAEC57EDB05E49C05AEFB9D7EEFB4B8003C298D7165887ED7ACECE4A68A67612E343718B8FC847CA9C278011080A27CED0FD991C16BDE2B52F78381E747242258E34FE73F8C043047C0DE4564D50D5845358AB4C5B865D4F868EE4543BEAD46F8D995ABD49EB66B05C271E405ACA0D157EE36A09411AFB6243F8A498B4FBA5D11E2C019FA5701B6DB88504218F9D1DE4F714480CE12475730AF01B3A9B16EC4EF4F05C67B6BC",
  39. "User-Agent: Roblox/WinInet",
  40. "Content-Type: application/xml"
  41. ));
  42. curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
  43. curl_setopt($ch,CURLOPT_POSTFIELDS,$str);
  44. $ret = curl_exec($ch);
  45. $fp = fopen('Script.lua', 'w');
  46. fwrite($fp, $ret);;
  47. fclose($fp);
  48.  
  49.  
  50.  
  51. ---This one is the GetObjects script
  52.  
  53. <?php
  54. /**
  55. * Created by PhpStorm.
  56. * User: Moon Love
  57. * Date: 2017-02-04
  58. * Time: 6:43 PM
  59. */
  60.  
  61. $id = json_decode(file_get_contents("php://input"),true)["Id"];
  62. $gzip = json_decode(file_get_contents("php://input"),true)["GZip"];
  63.  
  64. if($id == "" || !isset($id)){
  65. die("kms");
  66. }
  67.  
  68. $geturl = "http://assetgame.roblox.com/asset/?id=".$id;
  69. $ch = curl_init($geturl);
  70. curl_setopt($ch, CURLOPT_USERAGENT, "Roblox/WinInet");
  71. curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
  72. $content = curl_exec($ch);
  73.  
  74. $capture1 = strpos($content,"\"");
  75. $capture2 = strpos(substr($content,$capture1+1),"\"");
  76. $asseturl = substr($content,$capture1+1,$capture2);
  77.  
  78. $ch2 = curl_init($asseturl);
  79. curl_setopt($ch2,CURLOPT_RETURNTRANSFER,true);
  80. $assetcontent = curl_exec($ch2);
  81. if(isset($gzip)){
  82. $assetcontent = gzdecode($assetcontent);
  83. }
  84.  
  85. $url = 'https://data.roblox.com/Data/Upload.ashx?assetid=642598491';
  86. $ch = curl_init($url);
  87. curl_setopt($ch, CURLOPT_POST, true);
  88. curl_setopt($ch, CURLOPT_HTTPHEADER, array(
  89. "Cookie: .ROBLOSECURITY=AC96A46D0BF849C417A743CC55CD9076EA0B892C2AE8C0E19AA96DF9967B57E2345BE116D7A2D9ED5ED1B39D58FE0281FA44E35BE1C5DDC5ED05F0A825D4BBC768C857CECCC827E5917A4CBEA9D9F33875DF2FF3AEC364A2FD6247E65B76A0B8806398636B3B162860032F3DCBB13F0946B395C9D49F2B9F2F77E67C2505311F5C86E55B9C8804B9EE6144B82B9E6A9A318073543491E8E2009F35FE2ABC04D69AEE5FDBB3279A51C065B46CD7E37CDE0A75CFEA12F66BF5A270D2F0337511958451902CF2A5A5D3D24A05BECEB362384EBDFB905DA104A9C968CCDF51C99760F08E30C1B6BF9825430D54367007102ED59910951F0C416E6E98949703569BCB5C8312437446202E01EB34DB3CDB4C9C21C8A8F3",
  90. "User-Agent: Roblox/WinInet",
  91. "Content-Type: application/xml"
  92. ));
  93. curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
  94. curl_setopt($ch,CURLOPT_POSTFIELDS,$assetcontent);
  95. $ret = curl_exec($ch);
  96. echo "MYID".$ret;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement