Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
CabboShiba authored Feb 12, 2023
1 parent 4a6338c commit 11b145e
Show file tree
Hide file tree
Showing 28 changed files with 29,786 additions and 0 deletions.
25 changes: 25 additions & 0 deletions VMPBypass.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.4.33213.308
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VMPBypass", "VMPBypass\VMPBypass.csproj", "{A7713AEF-8416-4C15-8A6E-BF7F3A69BFA6}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{A7713AEF-8416-4C15-8A6E-BF7F3A69BFA6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A7713AEF-8416-4C15-8A6E-BF7F3A69BFA6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A7713AEF-8416-4C15-8A6E-BF7F3A69BFA6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A7713AEF-8416-4C15-8A6E-BF7F3A69BFA6}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {5813EA02-C8F3-4E3B-8578-B9F334CC128A}
EndGlobalSection
EndGlobal
6 changes: 6 additions & 0 deletions VMPBypass/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.8.1" />
</startup>
</configuration>
31 changes: 31 additions & 0 deletions VMPBypass/Bypass/MarshalHook.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using HarmonyLib;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VMPBypass.Bypass
{
internal class MarshalHook
{
[HarmonyPatch(typeof(System.Runtime.InteropServices.Marshal), nameof(System.Runtime.InteropServices.Marshal.AllocHGlobal), new[] { typeof(int) })]
class FixEnvironmentExit
{
[STAThread]
static bool Prefix(int cb)
{
try
{
cb--;
}
catch (Exception ex)
{
Program.Log($"Error during AntiDBG Bypass:\n{ex.Message}", "ERROR", ConsoleColor.Red);
cb = 1;
}
return false;
}
}
}
}
60 changes: 60 additions & 0 deletions VMPBypass/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
using HarmonyLib;
using System;
using System.IO;
using System.Reflection;
using System.Windows.Forms;
namespace VMPBypass
{
internal class Program
{
private static string AssemblyLoad = "";
static void Main(string[] args)
{
try
{
AssemblyLoad = args[0];
}
catch(Exception ex)
{
while (!File.Exists(AssemblyLoad) || new FileInfo(AssemblyLoad).Extension != ".exe")
{
Console.Clear();
Log("Please provide a valid executable File [.EXE]: ", "CONFIG", ConsoleColor.Cyan);
AssemblyLoad = Console.ReadLine();
}
Console.Clear();
}
try
{
object[] parameters = null;
var assembly = Assembly.LoadFile(Path.GetFullPath(AssemblyLoad));
var paraminfo = assembly.EntryPoint.GetParameters();
parameters = new object[paraminfo.Length];
Harmony patch = new Harmony("VMPRotectAntiDebuggerBypass_https://github.com/CabboShiba");
patch.PatchAll(Assembly.GetExecutingAssembly());
assembly.EntryPoint.Invoke(null, parameters);
}
catch (Exception ex)
{
Log($"Could not load {AssemblyLoad}\n{ex}", "ERROR", ConsoleColor.Red);
}

Console.ReadLine();
}

private static bool WinForm = false;
public static void Log(string Data, string Type, ConsoleColor Color)
{
if (WinForm == true)
{
MessageBox.Show(Data, Type, MessageBoxButtons.OK, MessageBoxIcon.Information);
}
else
{
Console.ForegroundColor = Color;
Console.WriteLine($"[{DateTime.Now.ToString("HH:mm:ss")} - {Type}] {Data}");
Console.ResetColor();
}
}
}
}
36 changes: 36 additions & 0 deletions VMPBypass/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;

// Le informazioni generali relative a un assembly sono controllate dal seguente
// set di attributi. Modificare i valori di questi attributi per modificare le informazioni
// associate a un assembly.
[assembly: AssemblyTitle("VMPBypass")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("VMPBypass")]
[assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Se si imposta ComVisible su false, i tipi in questo assembly non saranno visibili
// ai componenti COM. Se è necessario accedere a un tipo in questo assembly da
// COM, impostare su true l'attributo ComVisible per tale tipo.
[assembly: ComVisible(false)]

// Se il progetto viene esposto a COM, il GUID seguente verrà utilizzato come ID della libreria dei tipi
[assembly: Guid("a7713aef-8416-4c15-8a6e-bf7f3a69bfa6")]

// Le informazioni sulla versione di un assembly sono costituite dai seguenti quattro valori:
//
// Versione principale
// Versione secondaria
// Numero di build
// Revisione
//
// È possibile specificare tutti i valori oppure impostare valori predefiniti per i numeri relativi alla revisione e alla build
// usando l'asterisco '*' come illustrato di seguito:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
59 changes: 59 additions & 0 deletions VMPBypass/VMPBypass.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" 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>{A7713AEF-8416-4C15-8A6E-BF7F3A69BFA6}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>VMPBypass</RootNamespace>
<AssemblyName>VMPBypass</AssemblyName>
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<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' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="0Harmony, Version=2.2.2.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Lib.Harmony.2.2.2\lib\net48\0Harmony.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Bypass\MarshalHook.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
Binary file added VMPBypass/bin/Debug/0Harmony.dll
Binary file not shown.
Binary file added VMPBypass/bin/Debug/VMPBypass.exe
Binary file not shown.
4 changes: 4 additions & 0 deletions VMPBypass/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="Lib.Harmony" version="2.2.2" targetFramework="net481" />
</packages>
Binary file added packages/Lib.Harmony.2.2.2/HarmonyLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions packages/Lib.Harmony.2.2.2/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2017 Andreas Pardeike

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 11b145e

Please sign in to comment.