Skip to content

Commit

Permalink
More Code Updates
Browse files Browse the repository at this point in the history
-Implemented Logging
-Reworked keygen engine
  • Loading branch information
RiisDev committed Apr 17, 2023
1 parent 927f3e1 commit 7bb677c
Show file tree
Hide file tree
Showing 41 changed files with 269 additions and 208 deletions.
Binary file not shown.
Binary file not shown.
Binary file modified IrisRobloxMultiTool/.vs/IrisRobloxMultiTool/v17/.suo
Binary file not shown.
10 changes: 10 additions & 0 deletions IrisRobloxMultiTool/IrisRobloxMultiTool/Classes/GlobalCalls.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
Expand All @@ -17,5 +18,14 @@ public void SafeShutdown()
Process.GetCurrentProcess().Kill();
}

public void HandleException(Exception ex)
{
try
{
using (StreamWriter logWriter = new StreamWriter($"{Program.Directory}\\bin\\cache\\Log_{Program.logId}.txt")) logWriter.WriteLine(ex.ToString());
}
catch { }
}

}
}
78 changes: 41 additions & 37 deletions IrisRobloxMultiTool/IrisRobloxMultiTool/Forms/WeAreDevsKeygen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace IrisRobloxMultiTool.Forms
public partial class WeAreDevsKeygen : Form
{
private int retryStartingBrowser = 0;
private bool DebugBrowser = false;
private bool DebugBrowser = true;
private static readonly HttpClient Client = new HttpClient();

Dictionary<string, bool> Downloads = new Dictionary<string, bool>()
Expand All @@ -48,21 +48,13 @@ public WeAreDevsKeygen()
};
}

public static bool IsEdgeDriverPortTaken()
private static int GetFreeTcpPort()
{

try
{
using (TcpClient tcpClient = new TcpClient())
{
tcpClient.Connect("localhost", 9515);
return true;
}
}
catch (SocketException)
{
return false;
}
var l = new TcpListener(IPAddress.Loopback, 0);
l.Start();
int port = ((IPEndPoint)l.LocalEndpoint).Port;
l.Stop();
return port;
}

private string GetExploitReturnMethod()
Expand All @@ -75,6 +67,7 @@ private string GetExploitReturnMethod()

return toReturn;
}

private void DoVertiseRedirect(int What, int OutaWhat, int WaitTime, string AdditionalInfo = "")
{
Program.LogInterface.DoLog(LogBox, LogInterface.LogType.System, $"Linkvertise {What}/{OutaWhat} Started {AdditionalInfo}...");
Expand Down Expand Up @@ -203,8 +196,9 @@ private void DoKrnlBypass()

Driver.Quit();
}
catch (NullReferenceException)
catch (NullReferenceException ex)
{
Program.Global.HandleException(ex);
MessageBox.Show("Please do not close edge while the bypasser is running...", "IRMT", MessageBoxButtons.OK, MessageBoxIcon.Error);
Environment.Exit(-1);
}
Expand Down Expand Up @@ -304,10 +298,9 @@ private void guna2Button2_Click(object sender, EventArgs e)
}
} catch (WebDriverException ex)
{
Program.Global.HandleException(ex);
if (ex.ToString().Contains("Reached error"))
{
MessageBox.Show("Page URL Invalid", "Iris Roblox MutliTool", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
else
{
MessageBox.Show("Unknown error occured while bypassing, please restart the application!", "Iris Roblox MutliTool", MessageBoxButtons.OK, MessageBoxIcon.Error);
Expand Down Expand Up @@ -363,11 +356,7 @@ private void KillEdgeProcessesAsync(bool ask = true)
if (MessageBox.Show("Microsoft edge process is about to be killed, if you use it please save your data and exit safely and click OK.", "IRMT", MessageBoxButtons.OKCancel, MessageBoxIcon.Information) == DialogResult.Cancel) return;
Process.GetProcessesByName("msedge").ToList().ForEach(Proc => Proc.Kill());
}
else
{
Process.GetProcessesByName("msedge").ToList().ForEach(Proc => Proc.Kill());
}

else Process.GetProcessesByName("msedge").ToList().ForEach(Proc => Proc.Kill());
}

private void CheckEdgeInstallationAsync()
Expand All @@ -392,6 +381,7 @@ private async void DownloadRequiredFilesAsync()
KillEdgeProcessesAsync(false);
Directory.Delete($"{Program.Directory}\\bin\\drivers", true);
Directory.CreateDirectory($"{Program.Directory}\\bin\\drivers");

foreach (string DownUrl in Downloads.Keys.ToList())
{
string FileName = DownUrl.Substring(DownUrl.LastIndexOf("/") + 1);
Expand All @@ -416,22 +406,28 @@ private async void DownloadRequiredFilesAsync()
await Task.Delay(1);
} while (!Downloads[DownUrl]);
}
catch
catch (Exception ex)
{
Program.Global.HandleException(ex);
MessageBox.Show("An error occurred while trying to download required files. Please reinstall and or restart computer!", "Iris Roblox MutliTool", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}

private async void RunEdgeDriver()
{
while (IsEdgeDriverPortTaken()) KillEdgeProcessesAsync(false);

Program.Global.HandleException(new Exception("BEGIN LOG"));
KillEdgeProcessesAsync(false);
try
{
EdgeDriverService edgeDriverService = EdgeDriverService.CreateDefaultService($"{Program.Directory}\\bin\\drivers", $"{Directory.GetFiles($"{Program.Directory}\\bin\\drivers").First()}");
EdgeDriverService edgeDriverService = EdgeDriverService.CreateDefaultService($"{Program.Directory}\\bin\\drivers");
EdgeOptions edgeOptions = new EdgeOptions();

edgeDriverService.Port = GetFreeTcpPort();
edgeDriverService.LogPath = $"{Program.Directory}\\bin\\cache\\Log_{Program.logId}.txt";
edgeDriverService.EnableAppendLog = true;
edgeDriverService.HideCommandPromptWindow = true;

edgeOptions.AddArgument("--window-size=1920x1080");
edgeOptions.AddArgument("--no-sandbox");
edgeOptions.AddArgument("--disable-dev-shm-usage");
Expand All @@ -443,44 +439,50 @@ private async void RunEdgeDriver()
edgeOptions.AddAdditionalOption("useAutomationExtension", false);
edgeOptions.AddAdditionalOption("disable-infobars", false);

edgeDriverService.HideCommandPromptWindow = true;
await Task.Delay(750);

Driver = new EdgeDriver(edgeDriverService, edgeOptions);

await Task.Delay(750);

Driver.ExecuteCdpCommand("Network.setUserAgentOverride", new Dictionary<string, object>() { { "userAgent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:107.0) Gecko/20100101 Firefox/107.0" } });

if (!DebugBrowser)
Driver.Manage().Window.Position = new(-2000, -2000);
}
catch (WebDriverException ex)
{
Program.Global.HandleException(ex);
KillEdgeProcessesAsync(false);

if (ex.ToString().Contains("cannot find"))
{
MessageBox.Show($"Edge cannot be found, is it installed?", "Iris Roblox MutliTool", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
else if (ex.ToString().Contains("not connected to"))
{
MessageBox.Show("Please check if edge is updated:\n1) Open Edge\n2) Put this into the url 'edge://settings/help'\n3) Update");
}
}
catch (Win32Exception ex)
{
Program.Global.HandleException(ex);
KillEdgeProcessesAsync(false);

if (retryStartingBrowser > 4)
{
Clipboard.SetText(ex.ToString());
MessageBox.Show("An error occured while launching the bypasser, please restart computer and disable any antivirus.", "IRMT", MessageBoxButtons.OK, MessageBoxIcon.Error);
Environment.Exit(-1);
}
else
{
retryStartingBrowser++;
Program.LogInterface.DoLog(LogBox, LogInterface.LogType.Error, $"Failed to start browser, retrying... {retryStartingBrowser}/5");
DownloadRequiredFilesAsync();
await Task.Delay(1000);
RunEdgeDriver();
}
}
catch (Exception ex)
{
Program.Global.HandleException(ex);
}

if (!DebugBrowser)
Driver.Manage().Window.Position = new(-2000, -2000);
Expand Down Expand Up @@ -546,8 +548,9 @@ private string GetLinkvertiseRedirect(string url)

return JsonData["destination"].ToString();
}
catch
catch (Exception ex)
{
Program.Global.HandleException(ex);
MessageBox.Show($"Failed to bypass please submit an issue request on github!", "Iris Roblox MutliTool", MessageBoxButtons.OK, MessageBoxIcon.Error);
Driver.Quit();
return string.Empty;
Expand All @@ -565,14 +568,14 @@ private string ExecuteJavaScript(string script)
{
try
{
Console.WriteLine(script);
object Data = (Driver as IJavaScriptExecutor).ExecuteScript(script);

if (Data != null) return Data.ToString();
else return "";
}
catch (Exception ex)
{
Program.Global.HandleException(ex);
if (ex.ToString().Contains("document.body is null"))
ExecuteJavaScript(script);
else if (ex.ToString().Contains("Cannot set properties of undefined (setting 'style')") && SelectedExploit.SelectedText == "Krnl")
Expand All @@ -592,13 +595,14 @@ private string GetUrl()
{
try
{
if (Driver.WindowHandles == null)
if (Driver == null || Driver.WindowHandles == null)
return "";

return Driver.SwitchTo().Window(Driver.WindowHandles.Last()).Url;
}
catch
catch (Exception ex)
{
Program.Global.HandleException(ex);
return "";
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@
<Private>True</Private>
</Reference>
<Reference Include="System.Core" />
<Reference Include="System.Diagnostics.DiagnosticSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Diagnostics.DiagnosticSource.7.0.0\lib\net462\System.Diagnostics.DiagnosticSource.dll</HintPath>
<Reference Include="System.Diagnostics.DiagnosticSource, Version=7.0.0.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Diagnostics.DiagnosticSource.7.0.2\lib\net462\System.Diagnostics.DiagnosticSource.dll</HintPath>
</Reference>
<Reference Include="System.Diagnostics.Tracing, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Diagnostics.Tracing.4.3.0\lib\net462\System.Diagnostics.Tracing.dll</HintPath>
Expand Down
1 change: 1 addition & 0 deletions IrisRobloxMultiTool/IrisRobloxMultiTool/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ namespace IrisRobloxMultiTool
{
internal static class Program
{
public static string logId = Guid.NewGuid().ToString();
public static string Directory = AppDomain.CurrentDomain.BaseDirectory;
public static GlobalCalls Global = new();
public static DataHandler DataHandler = new();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("IrisRobloxMultiTool")]
[assembly: AssemblyCopyright("Copyright © 2022")]
[assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -32,5 +32,5 @@
// 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("8.0.2.0")]
[assembly: AssemblyFileVersion("8.0.2.0")]
[assembly: AssemblyVersion("9.0.0.0")]
[assembly: AssemblyFileVersion("9.0.0.0")]
4 changes: 2 additions & 2 deletions IrisRobloxMultiTool/IrisRobloxMultiTool/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<package id="Costura.Fody" version="5.7.0" targetFramework="net48" developmentDependency="true" />
<package id="DotNetSeleniumExtras.WaitHelpers" version="3.11.0" targetFramework="net48" />
<package id="Fody" version="6.5.5" targetFramework="net48" developmentDependency="true" />
<package id="Microsoft.NETCore.Platforms" version="7.0.0" targetFramework="net48" />
<package id="Microsoft.NETCore.Platforms" version="7.0.2" targetFramework="net48" />
<package id="Microsoft.Web.WebView2" version="1.0.1722.45" targetFramework="net48" />
<package id="Microsoft.Win32.Primitives" version="4.3.0" targetFramework="net48" />
<package id="NETStandard.Library" version="2.0.3" targetFramework="net48" />
Expand All @@ -16,7 +16,7 @@
<package id="System.Collections.Concurrent" version="4.3.0" targetFramework="net48" />
<package id="System.Console" version="4.3.1" targetFramework="net48" />
<package id="System.Diagnostics.Debug" version="4.3.0" targetFramework="net48" />
<package id="System.Diagnostics.DiagnosticSource" version="7.0.0" targetFramework="net48" />
<package id="System.Diagnostics.DiagnosticSource" version="7.0.2" targetFramework="net48" />
<package id="System.Diagnostics.Tools" version="4.3.0" targetFramework="net48" />
<package id="System.Diagnostics.Tracing" version="4.3.0" targetFramework="net48" />
<package id="System.Globalization" version="4.3.0" targetFramework="net48" />
Expand Down
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 7bb677c

Please sign in to comment.