Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
123Studios authored Dec 27, 2021
1 parent f1411ce commit 2c38b2e
Show file tree
Hide file tree
Showing 11 changed files with 239 additions and 90 deletions.
6 changes: 6 additions & 0 deletions BatchIDE/BatchIDE.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="DiscordRichPresence">
<Version>1.0.175</Version>
</PackageReference>
<PackageReference Include="MaterialSkin">
<Version>0.2.1</Version>
</PackageReference>
<PackageReference Include="MaterialSkin.2">
<Version>2.3.1</Version>
</PackageReference>
Expand Down
181 changes: 110 additions & 71 deletions BatchIDE/Form1.Designer.cs

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

27 changes: 23 additions & 4 deletions BatchIDE/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ private void materialSwitch1_CheckedChanged(object sender, EventArgs e)

private void button1_Click_1(object sender, EventArgs e)
{
string enc = "";
try
{
if (textBox2.Text == "")
Expand Down Expand Up @@ -96,16 +97,34 @@ private void button1_Click_1(object sender, EventArgs e)
s1 = "@echo off\nCERTUTIL -f -decode \"%~f0\" \"%Temp%/test.bat\" >nul 2>&1 \ncls\n\"%Temp%/test.bat\"\nExit\n-----BEGIN CERTIFICATE-----\n" + outy + "\n-----END CERTIFICATE-----";
File.WriteAllText(Environment.CurrentDirectory + "/" + textBox2.Text + ".bat", s1);
output = s1;
enc = s1;


}
if (materialRadioButton1.Checked == true) { CompileToCS(); MessageBox.Show("Successfully Generated C# File. Now Making Batch File.", "Success!" + MessageBoxIcon.Information);}
else if (materialRadioButton2.Checked == true)
if (materialCheckbox2.Checked == true)
{
var unicodeHeader = new byte[] { 0xFF, 0xFE, 0x0D, 0x0A }; //Code script from BatchProtector
var obfuscatedCodeByteArray = new byte[] { };
obfuscatedCodeByteArray = Encoding.ASCII.GetBytes("cls" + Environment.NewLine + enc);
var concatenatedByteArray = new byte[unicodeHeader.Length + obfuscatedCodeByteArray.Length + 1];
unicodeHeader.CopyTo(concatenatedByteArray, 0);
obfuscatedCodeByteArray.CopyTo(concatenatedByteArray, unicodeHeader.Length);

File.WriteAllBytes(Environment.CurrentDirectory + "/" + textBox2.Text + ".bat", concatenatedByteArray);

}
if (optionCompileCS.Checked == true) { CompileToCS(); MessageBox.Show("Successfully Generated C# File. Now Making Batch File.", "Success!" + MessageBoxIcon.Information);}
else if (optionCompileExe.Checked == true)
{
CompileToCS();
MessageBox.Show("If the executable compile process not work you may not have Dotnet Developer Tools installed.", "Disclaimer!!!" + MessageBoxIcon.Information);

Process.Start(Environment.CurrentDirectory +"/csc/csc.exe",Environment.CurrentDirectory + "/" + textBox2.Text + ".cs");
ProcessStartInfo ps = new ProcessStartInfo();
ps.Arguments = Environment.CurrentDirectory + "/" + textBox2.Text + ".cs";
ps.FileName = Environment.CurrentDirectory + "/csc/csc.exe";
ps.WindowStyle = ProcessWindowStyle.Hidden;
Process.Start(ps);
System.Threading.Thread.Sleep(3000);
File.Delete(Environment.CurrentDirectory + $"/{textBox2.Text}.cs");
}

}
Expand Down
Binary file modified BatchIDE/bin/Debug/BatchObfuscator.exe
Binary file not shown.
Binary file modified BatchIDE/bin/Debug/BatchObfuscator.pdb
Binary file not shown.
Binary file added BatchIDE/bin/Debug/DiscordRPC.dll
Binary file not shown.
Binary file added BatchIDE/bin/Debug/DiscordRPC.pdb
Binary file not shown.
Binary file added BatchIDE/bin/Debug/Newtonsoft.Json.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion BatchIDE/bin/Debug/config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ using System.Threading.Tasks;
using System.Diagnostics;
using System.IO;

namespace ObfuscatedWithBatchObfuscator //Modifying This File Can Break The Obfuscator
namespace Protected_By_Bat2Exe_By_123Studios //Modifying This File Can Break The Obfuscator
{
class Program
{
Expand Down
Loading

0 comments on commit 2c38b2e

Please sign in to comment.