Skip to content

Commit 387be05

Browse files
author
Quaxdrone
authored
Merge pull request #1 from GangOfFloppa/InjectorMain
InjectorMain
2 parents f332bb6 + 67de3ad commit 387be05

File tree

7 files changed

+52
-0
lines changed

7 files changed

+52
-0
lines changed
123 KB
Binary file not shown.

DearPyInjectorRustClient/Inject.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import dearpygui.dearpygui as x
2+
from pymem.process import inject_dll #Injecting DLL
3+
import pymem as p
4+
5+
class Injector:
6+
def InjectDLL(path: str):
7+
pymem_rust = p.Pymem("RustClient.exe")
8+
vbb = bytes(path)
9+
return inject_dll(pymem_rust.process_handle, vbb)
10+
def GetValue_Tag(tag: str):
11+
return x.get_value(tag)
12+
def CheckIfRustExists():
13+
pymnx = p.Pymem("RustClient.exe")
14+
if pymnx.process_id == 0:
15+
raise Exception("RustClient.exe is not Launched")

DearPyInjectorRustClient/Main.pyw

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import Window as w
2+
import tkinter.messagebox as msg
3+
import Inject as x_inject
4+
5+
def WelcomeBox():
6+
return msg.showinfo(title="DearPyInjector", message="Welcome to my New Injector for Game RustClient")
7+
def MainThread():
8+
WelcomeBox()
9+
w.Window.MainWindow()
10+
if __name__ == "__main__":
11+
#x_inject.Injector.CheckIfRustExists()
12+
MainThread()

DearPyInjectorRustClient/Window.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import dearpygui.dearpygui as x
2+
import Inject as ix
3+
import os
4+
class Window:
5+
def MainWindow():
6+
x.create_context()
7+
with x.font_registry():
8+
comic_sans = x.add_font(file="{}".format(os.getcwd() + "\\ComicSansMS.ttf"), size=16)
9+
with x.window(label="DearPyInjector", height=500, width=500, no_move=True, no_collapse=True, no_close=True) as xsl:
10+
x.add_text("It's My First Injector on Python", color=[200, 45, 155])
11+
x.add_input_text(label="Path", tag="input_path")
12+
x.add_button(label="Inject", callback=Window.Inject)
13+
x.create_viewport(title='DearPyInjector(RustClient) by GangOfFloppa', width=500, height=500, clear_color=[230, 155, 58])
14+
x.bind_font(comic_sans)
15+
x.setup_dearpygui()
16+
x.set_primary_window(xsl, True)
17+
x.show_viewport()
18+
x.start_dearpygui()
19+
x.destroy_context()
20+
def Inject():
21+
str_path = x.get_value("input_path")
22+
return ix.Injector.InjectDLL(str_path)
1.49 KB
Binary file not shown.
2.79 KB
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@echo off
2+
python Main.pyw
3+
timeout 15

0 commit comments

Comments
 (0)