Skip to content

Commit

Permalink
chore: added readme
Browse files Browse the repository at this point in the history
  • Loading branch information
myinusa committed Sep 30, 2024
1 parent 05964b1 commit 6cd416c
Show file tree
Hide file tree
Showing 3 changed files with 125 additions and 2 deletions.
35 changes: 35 additions & 0 deletions .vscode/Processory.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"folders": [
{
"path": ".."
}
],
"settings": {
"dotnet.defaultSolution": "Processory.sln",
"workbench.colorCustomizations": {
"dotnetAcquisitionExtension.enableTelemetry": true,
"dotnet.backgroundAnalysis.analyzerDiagnosticsScope": "openFiles",
"cSpell.words": [
"appsettings"
],
"activityBar.activeBackground": "#0d4572",
"activityBar.background": "#0d4572",
"activityBar.foreground": "#e7e7e7",
"activityBar.inactiveForeground": "#e7e7e799",
"activityBarBadge.background": "#000000",
"activityBarBadge.foreground": "#e7e7e7",
"commandCenter.border": "#e7e7e799",
"sash.hoverBorder": "#0d4572",
"statusBar.background": "#082944",
"statusBar.foreground": "#e7e7e7",
"statusBarItem.hoverBackground": "#0d4572",
"statusBarItem.remoteBackground": "#082944",
"statusBarItem.remoteForeground": "#e7e7e7",
"titleBar.activeBackground": "#082944",
"titleBar.activeForeground": "#e7e7e7",
"titleBar.inactiveBackground": "#08294499",
"titleBar.inactiveForeground": "#e7e7e799"
},
"peacock.color": "#082944",
}
}
3 changes: 2 additions & 1 deletion Processory/Processory.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@
<Title>Processory</Title>
</PropertyGroup>

<!--
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<WarningLevel>0</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<WarningLevel>0</WarningLevel>
</PropertyGroup>
</PropertyGroup> -->

<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Exec Command="powershell -File Utilities\UpdateAssemblyVersion.ps1" />
Expand Down
89 changes: 88 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,88 @@
# Processory
# Processory

## Description

Processory is a `.NET` library designed to facilitate interaction with processes and memory management on Windows systems. It provides functionalities for reading process memory, managing CSV data offsets, and interacting with the system through pointer chains and memory reads. This library aims to simplify the process of accessing information from running processes by providing a set of tools that can be easily integrated into applications.

## Usage/Getting Started

To get started with Processory, follow these steps:

1. **Install the Library**: You can install the Processory package via [NuGet](https://www.nuget.org/packages/Processory) Package Manager Console using the following command:

```Powershell
Install-Package Processory
```

or by using the following command in the`.NET` CLI:

```Powershell
dotnet add package Processory
```

2. **Create a ProcessoryClient Instance**: Initialize the `ProcessoryClient` class with the name of the process you want to interact with. For example:

```csharp
var processory = new ProcessoryClient("process_name");
```

3. **Read Memory**: Use the `MemoryReader` class to read memory from the target process. Here's a basic example of reading an integer value at a specific offset:

```csharp
var baseAddress = processory.ProcessService.ProcessHandle?.MainModule?.BaseAddress;
if (baseAddress == null) {
Console.WriteLine("Could not find process");
return;
}
var screenClient = (ulong)(baseAddress + 0x4C7FF08);
var deferAdd = processory.PointerChainFollower.DereferencePointer(screenClient);
var screenClientValue = processory.MemoryReader.Read<uint>(deferAdd);
Console.WriteLine("Screen client: {0:X}", screenClient);
Console.WriteLine("Screen client value: {0}", screenClientValue);
```

## FAQ

### Q1: How do I handle exceptions in Processory?

A1: Exceptions can be handled using standard C# try-catch blocks. For example:

```csharp
try {
var processory = new ProcessoryClient("process_name");
} catch (Exception ex) {
Console.WriteLine($"An error occurred: {ex.Message}");
}
```

### Q2: Can I read memory from a 64-bit application?

A2: Yes, Processory supports reading memory from both `32-bit` and 64-bit applications. The library dynamically adjusts its operations based on the architecture of the target process.

## Resources

For additional resources and support, you can visit the following links:

- **GitHub Repository**: [Processory GitHub](https://github.com/myinusa/processory)
- **Documentation**: Comprehensive documentation is available in the repository's Wiki section.

## Configuration

The library does not require extensive configuration. However, ensure that you have the necessary permissions to read memory from the target process. You may need to run your application with elevated privileges if access is restricted.

## Features

- **Memory Reading**: Read raw bytes and structured data from a running process's memory.
- **Pointer Chaining**: Follow complex pointer chains to retrieve values at specific addresses.
- **CSV Data Management**: Manage `csv` files for storing and retrieving offsets used in pointer chaining.
- **Process Interaction**: Open, read, and close processes safely using Windows API functions.

## Topics

- **Memory Security**: Be mindful of the security implications when accessing memory from other processes.
- **Performance Considerations**: Reading large amounts of data may impact performance; consider optimizing your access patterns.

## Considerations

- **Legal and Ethical Use**: Ensure that you have permission to use Processory on any target machine, especially if it is not your own. Unauthorized monitoring can be illegal.
- **Error Handling**: Implement robust error handling in your application to manage unexpected issues gracefully.

0 comments on commit 6cd416c

Please sign in to comment.