Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
695 changes: 674 additions & 21 deletions LICENSE

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
# RobloxLauncher
A RobloxLauncher made using the RobloxProxy.dll. and Launch ROBLOX without the website, given the Place ID.
A RobloxLauncher made using the RobloxProxy.dll.

## Notes
This is probably not officialy supported by ROBLOX, so this could change at **any time**. This could break tomorrow for all I know.
Sometimes it'll not launch at first, try and launch again and it should work.

I'm not reponsible for any damage caused by this program.
36 changes: 36 additions & 0 deletions RobloxLauncher.BETA.Wrapper/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("RobloxLauncher.BETA.Wrapper")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("RobloxLauncher.BETA.Wrapper")]
[assembly: AssemblyCopyright("Copyright © Microsoft 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("09930f8e-74b1-492a-8e51-07261c8211f8")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
77 changes: 77 additions & 0 deletions RobloxLauncher.BETA.Wrapper/RobloxLauncher.BETA.Wrapper.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{2A2D0AD9-C822-4C09-8AA4-38E7B00B410D}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>RobloxLauncher.BETA.Wrapper</RootNamespace>
<AssemblyName>RobloxLauncher.BETA.Wrapper</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="Newtonsoft.Json, Version=8.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Newtonsoft.Json.8.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
4 changes: 4 additions & 0 deletions RobloxLauncher.BETA.Wrapper/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Newtonsoft.Json" version="8.0.2" targetFramework="net45" />
</packages>
38 changes: 38 additions & 0 deletions RobloxLauncher.BETA.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.21005.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RobloxLauncher.BETA", "RobloxLauncher.BETA\RobloxLauncher.BETA.csproj", "{0AD2A684-B913-460C-96B0-5D679C1E091B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RobloxLauncher.BETA.Wrapper", "RobloxLauncher.BETA.Wrapper\RobloxLauncher.BETA.Wrapper.csproj", "{2A2D0AD9-C822-4C09-8AA4-38E7B00B410D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{0AD2A684-B913-460C-96B0-5D679C1E091B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0AD2A684-B913-460C-96B0-5D679C1E091B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0AD2A684-B913-460C-96B0-5D679C1E091B}.Debug|x86.ActiveCfg = Debug|x86
{0AD2A684-B913-460C-96B0-5D679C1E091B}.Debug|x86.Build.0 = Debug|x86
{0AD2A684-B913-460C-96B0-5D679C1E091B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0AD2A684-B913-460C-96B0-5D679C1E091B}.Release|Any CPU.Build.0 = Release|Any CPU
{0AD2A684-B913-460C-96B0-5D679C1E091B}.Release|x86.ActiveCfg = Release|x86
{0AD2A684-B913-460C-96B0-5D679C1E091B}.Release|x86.Build.0 = Release|x86
{2A2D0AD9-C822-4C09-8AA4-38E7B00B410D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2A2D0AD9-C822-4C09-8AA4-38E7B00B410D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2A2D0AD9-C822-4C09-8AA4-38E7B00B410D}.Debug|x86.ActiveCfg = Debug|x86
{2A2D0AD9-C822-4C09-8AA4-38E7B00B410D}.Debug|x86.Build.0 = Debug|x86
{2A2D0AD9-C822-4C09-8AA4-38E7B00B410D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2A2D0AD9-C822-4C09-8AA4-38E7B00B410D}.Release|Any CPU.Build.0 = Release|Any CPU
{2A2D0AD9-C822-4C09-8AA4-38E7B00B410D}.Release|x86.ActiveCfg = Release|x86
{2A2D0AD9-C822-4C09-8AA4-38E7B00B410D}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
6 changes: 6 additions & 0 deletions RobloxLauncher.BETA/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
</configuration>
106 changes: 106 additions & 0 deletions RobloxLauncher.BETA/CookieAwareWebClient.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using System.Drawing;

namespace RobloxLauncher.BETA
{

public class CookieAwareWebClient : WebClient
{

public class RobloxLoginRequest
{
public string username;
public string password;
public bool isCaptchaOn = false;
public string challenge = "";
public string captchaResponse = "";
}


public class UserInfo
{
public int UserID { get; set; }
public string UserName { get; set; }
public int RobuxBalance { get; set; }
public int TicketsBalance { get; set; }
public string ThumbnailUrl { get; set; }
public bool IsAnyBuildersClubMember { get; set; }


}

public class LoginResponse
{
public string Status { get; set; }
public UserInfo UserInfo { get; set; }
public object PunishmentInfo { get; set; }
[JsonIgnore]
public string Raw { get; set; }
}

public void GetCaptchaChallengeImage()
{

}

public LoginResponse Login(NetworkCredential cred)
{
RobloxLoginRequest loginData = new RobloxLoginRequest();
loginData.username = cred.UserName;
loginData.password = cred.Password;
CookieContainer container;

var request = (HttpWebRequest)WebRequest.Create("https://www.roblox.com/MobileAPI/Login");

request.Method = "POST";
request.ContentType = "application/json";
var buffer = Encoding.ASCII.GetBytes(JsonConvert.SerializeObject(loginData));
request.ContentLength = buffer.Length;
var requestStream = request.GetRequestStream();
requestStream.Write(buffer, 0, buffer.Length);
requestStream.Close();

container = request.CookieContainer = new CookieContainer();

var response = request.GetResponse();
LoginResponse resp = new LoginResponse();
string raw = "";
using (StreamReader reader = new StreamReader(response.GetResponseStream()))
{
raw = reader.ReadToEnd();
resp = JsonConvert.DeserializeObject<LoginResponse>(raw);
resp.Raw = raw;
}
response.Close();
CookieContainer = container;

return resp;
}

public CookieAwareWebClient(CookieContainer container)
{
CookieContainer = container;
}

public CookieAwareWebClient()
: this(new CookieContainer())
{ }

public CookieContainer CookieContainer { get; set; }

protected override WebRequest GetWebRequest(Uri address)
{
var request = (HttpWebRequest)base.GetWebRequest(address);
request.CookieContainer = CookieContainer;
return request;
}
}
}
Loading