From f9351eaa1432ed2dedff83ce69bbd9fcb86a918b Mon Sep 17 00:00:00 2001 From: nolanwhy Date: Sun, 5 Feb 2023 14:18:07 +0100 Subject: [PATCH] add joinscript + private key to edit in config.php --- core/config.php | 4 +++ game/Join.php | 76 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 game/Join.php diff --git a/core/config.php b/core/config.php index 00c7d8e..47692d3 100644 --- a/core/config.php +++ b/core/config.php @@ -13,6 +13,10 @@ if($devmode) { error_reporting(E_ALL); } +$gameSettings = [ + "privatekey" => "" +]; + $site = [ "url" => "http://".$_SERVER["HTTP_HOST"] ]; diff --git a/game/Join.php b/game/Join.php new file mode 100644 index 0000000..e230985 --- /dev/null +++ b/game/Join.php @@ -0,0 +1,76 @@ + rand(1,getrandmax()), + "username" => "User".rand(1,getrandmax()), + "mship" => "None" +]; + +$place = [ + "id" => $_GET["gameid"] +]; + +$placeCreator = [ + "id" => 6945435215, + "username" => "PlaceCreator", +]; + +$charapp = $site["url"]."/v1.1/avatar-fetch?userId=".$joinUser["id"]."&placeId=".$place["id"]; + +$server = [ + "ip" => $_GET["ip"], + "port" => $_GET["port"] +]; + +$joinscript = [ + "ClientPort" => 0, + "MachineAddress" => $server["ip"], + "ServerPort" => $server["port"], + "PingUrl" => "", + "PingInterval" => 20, + "UserName" => $joinUser["username"], + "SeleniumTestMode" => false, + "UserId" => $joinUser["id"], + "SuperSafeChat" => false, + "CharacterAppearance" => $charapp, + "ClientTicket" => "", + "GameId" => $place["id"], + "PlaceId" => $place["id"], + "MeasurementUrl" => "", // No telemetry here :) + "WaitingForCharacterGuid" => "26eb3e21-aa80-475b-a777-b43c3ea5f7d2", + "BaseUrl" => $site["url"]."/", + "ChatStyle" => "ClassicAndBubble", + "VendorId" => "0", + "ScreenShotInfo" => "", + "VideoInfo" => "", + "CreatorId" => $placeCreator["id"], + "CreatorTypeEnum" => "User", + "MembershipType" => $joinUser["mship"], + "AccountAge" => 3000000, + "CookieStoreFirstTimePlayKey" => "rbx_evt_ftp", + "CookieStoreFiveMinutePlayKey" => "rbx_evt_fmp", + "CookieStoreEnabled" => true, + "IsRobloxPlace" => false, + "GenerateTeleportJoin" => false, + "IsUnknownOrUnder13" => false, + "SessionId" => "", + "DataCenterId" => 0, + "UniverseId" => 3, + "BrowserTrackerId" => 0, + "UsePortraitMode" => false, + "FollowUserId" => 0, + "characterAppearanceId" => $joinUser["id"] +]; + +$data = json_encode($joinscript, JSON_UNESCAPED_SLASHES | JSON_NUMERIC_CHECK); +$signature = sign("\r\n" . $data, $gameSettings["privatekey"]); +exit("--rbxsig%". $signature . "%\r\n" . $data); +?> \ No newline at end of file