Skip to content

Commit

Permalink
Reverted and merged code
Browse files Browse the repository at this point in the history
  • Loading branch information
hollow87 committed Oct 18, 2018
2 parents cc84e0b + 70131eb commit c1ace17
Show file tree
Hide file tree
Showing 5 changed files with 165 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ConsoleApp1/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.7.1"/>
</startup>
</configuration>
61 changes: 61 additions & 0 deletions ConsoleApp1/ConsoleApp1.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?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>{2392E6EA-36EB-4D26-8C21-69A982461E23}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>ConsoleApp1</RootNamespace>
<AssemblyName>ConsoleApp1</AssemblyName>
<TargetFrameworkVersion>v4.7.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<TargetFrameworkProfile />
</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>
<Prefer32Bit>true</Prefer32Bit>
<LangVersion>7.2</LangVersion>
</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="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.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Memory\Memory.csproj">
<Project>{9abf5742-7489-455c-b94a-3a85725d939a}</Project>
<Name>Memory</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
44 changes: 44 additions & 0 deletions ConsoleApp1/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
using Memory;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
class Program
{



static async Task Main(string[] args)
{
Mem mem = new Mem();
var isOpen = mem.OpenProcess("so2game.exe");

Console.WriteLine($"isOpen = {isOpen}");

if (!isOpen)
return;

List<long> addr = new List<long>();
addr.AddRange(await mem.AoBScan("38 12 72 00 27 27 00 00 ?? 00 00 00 2C 01", true));

if (!addr.Any())
{
Console.WriteLine("No Results Found!");
return;
}


foreach (var addy in addr.ToArray())
{
Console.WriteLine(addy.ToString("X"));
}

}
}
}
36 changes: 36 additions & 0 deletions ConsoleApp1/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("ConsoleApp1")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ConsoleApp1")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[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("2392e6ea-36eb-4d26-8c21-69a982461e23")]

// 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")]
19 changes: 18 additions & 1 deletion Memory.sln
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2017
# Visual Studio 15
VisualStudioVersion = 15.0
MinimumVisualStudioVersion = 15.0
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Memory", "Memory\Memory.csproj", "{9ABF5742-7489-455C-B94A-3A85725D939A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1\ConsoleApp1.csproj", "{2392E6EA-36EB-4D26-8C21-69A982461E23}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -27,8 +29,23 @@ Global
{9ABF5742-7489-455C-B94A-3A85725D939A}.Release|x64.Build.0 = Release|x64
{9ABF5742-7489-455C-B94A-3A85725D939A}.Release|x86.ActiveCfg = Release|x86
{9ABF5742-7489-455C-B94A-3A85725D939A}.Release|x86.Build.0 = Release|x86
{2392E6EA-36EB-4D26-8C21-69A982461E23}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2392E6EA-36EB-4D26-8C21-69A982461E23}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2392E6EA-36EB-4D26-8C21-69A982461E23}.Debug|x64.ActiveCfg = Debug|Any CPU
{2392E6EA-36EB-4D26-8C21-69A982461E23}.Debug|x64.Build.0 = Debug|Any CPU
{2392E6EA-36EB-4D26-8C21-69A982461E23}.Debug|x86.ActiveCfg = Debug|Any CPU
{2392E6EA-36EB-4D26-8C21-69A982461E23}.Debug|x86.Build.0 = Debug|Any CPU
{2392E6EA-36EB-4D26-8C21-69A982461E23}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2392E6EA-36EB-4D26-8C21-69A982461E23}.Release|Any CPU.Build.0 = Release|Any CPU
{2392E6EA-36EB-4D26-8C21-69A982461E23}.Release|x64.ActiveCfg = Release|Any CPU
{2392E6EA-36EB-4D26-8C21-69A982461E23}.Release|x64.Build.0 = Release|Any CPU
{2392E6EA-36EB-4D26-8C21-69A982461E23}.Release|x86.ActiveCfg = Release|Any CPU
{2392E6EA-36EB-4D26-8C21-69A982461E23}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {CC7D8B41-F3BA-4752-9921-135B7EFE803A}
EndGlobalSection
EndGlobal

0 comments on commit c1ace17

Please sign in to comment.