hacking in hashengine is easy.
parent
f616d1daa4
commit
334abf15d3
|
@ -1,6 +1,24 @@
|
||||||
import sys
|
import sys
|
||||||
# Justus Jan Nico Wolff
|
# Justus Jan Nico Wolff
|
||||||
sys.dont_write_bytecode = True
|
sys.dont_write_bytecode = True
|
||||||
|
import subprocess
|
||||||
|
import pkg_resources
|
||||||
|
import ast
|
||||||
|
|
||||||
|
required = open("requirements.txt", 'r')
|
||||||
|
required = ast.literal_eval(required.read())
|
||||||
|
installed = {pkg.key for pkg in pkg_resources.working_set}
|
||||||
|
missing = required - installed
|
||||||
|
|
||||||
|
if missing:
|
||||||
|
while True:
|
||||||
|
ans = input(f"Einige benötigte Module sind nicht installiert ({missing}), installieren per pip? Y/N ")
|
||||||
|
if ans == "y":
|
||||||
|
python = sys.executable
|
||||||
|
subprocess.check_call([python, '-m', 'pip', 'install', *missing], stdout=subprocess.DEVNULL)
|
||||||
|
break
|
||||||
|
elif ans == "n":
|
||||||
|
exit()
|
||||||
import mtTkinter as tk
|
import mtTkinter as tk
|
||||||
from tkinter import ttk as tkk
|
from tkinter import ttk as tkk
|
||||||
from tkinter import messagebox
|
from tkinter import messagebox
|
||||||
|
@ -34,8 +52,6 @@ else:
|
||||||
if len(sys.argv) == 2:
|
if len(sys.argv) == 2:
|
||||||
if sys.argv[1] == "NOLANG":
|
if sys.argv[1] == "NOLANG":
|
||||||
replacelh()
|
replacelh()
|
||||||
import ast
|
|
||||||
import subprocess
|
|
||||||
import time
|
import time
|
||||||
import shutil
|
import shutil
|
||||||
import os
|
import os
|
||||||
|
@ -765,6 +781,7 @@ def build():
|
||||||
print(f"copying {i}...")
|
print(f"copying {i}...")
|
||||||
shutil.copyfile(i, target+"/"+i)
|
shutil.copyfile(i, target+"/"+i)
|
||||||
shutil.copyfile(__file__, target+"/"+"player.py")
|
shutil.copyfile(__file__, target+"/"+"player.py")
|
||||||
|
shutil.copyfile("requirements.txt", target+"/"+"requirements.txt")
|
||||||
file = open(target+"/main.py", 'w')
|
file = open(target+"/main.py", 'w')
|
||||||
file.write("""
|
file.write("""
|
||||||
import player
|
import player
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
{"easygui", "simpleaudio"}
|
|
@ -0,0 +1,15 @@
|
||||||
|
#written as proof that hacking in hashengine is easy.
|
||||||
|
from tkinter import filedialog
|
||||||
|
from tkinter import messagebox
|
||||||
|
import ast
|
||||||
|
#{'id': 'script', 'name': 'mainhack', 'SID': 'TPaPheoLAzSDfjYwRXCQawPUJbCLghRFwUdSuUbBtkNStsUsjzYjUpDzKTpjlJAUAVFJNmrpFEgmBckKiHaRpkeZPamYgOmdsgIAZTTanbrujQUsOstXltiTwTigfKUbbFmjfHRhaKqCpEyahwgAeYjOedngzPiZySvbrBpFtfSImXRzQYyhbYkkpCzOEMhFiqTnpuUkJTAwwdKBXXWehrzVfbeUwNcBzqGSxniKEdxfJAFUjPxuYLTpZpgwibI', 'args': {'code': 'import tkinter as tk\ncontainer = tk.Tk()\nentry = tk.Entry(container)\nentry.grid()\ndef inject(entry, runningdir):\n\ttarget = entry.get()\n\texec(target, runningdir)\ninjectb = tk.Button(container, text="Inject!", command=lambda: inject(entry, globals()))\ninjectb.grid()\ncontainer.mainloop()\n'}}
|
||||||
|
messagebox.showinfo("pls", "select hashengine 2.2 game.")
|
||||||
|
file = filedialog.askopenfilename()
|
||||||
|
if not file: exit()
|
||||||
|
handler = open(file, 'r').read()
|
||||||
|
handler = ast.literal_eval(handler)
|
||||||
|
handler[0].append({'id': 'script', 'name': 'mainhack', 'SID': 'TPaPheoLAzSDfjYwRXCQawPUJbCLghRFwUdSuUbBtkNStsUsjzYjUpDzKTpjlJAUAVFJNmrpFEgmBckKiHaRpkeZPamYgOmdsgIAZTTanbrujQUsOstXltiTwTigfKUbbFmjfHRhaKqCpEyahwgAeYjOedngzPiZySvbrBpFtfSImXRzQYyhbYkkpCzOEMhFiqTnpuUkJTAwwdKBXXWehrzVfbeUwNcBzqGSxniKEdxfJAFUjPxuYLTpZpgwibI', 'args': {'code': 'import tkinter as tk\ncontainer = tk.Tk()\nentry = tk.Entry(container)\nentry.grid()\ndef inject(entry, runningdir):\n\ttarget = entry.get()\n\texec(target, runningdir)\ninjectb = tk.Button(container, text="Inject!", command=lambda: inject(entry, globals()))\ninjectb.grid()\ncontainer.mainloop()\n'}})
|
||||||
|
file = open(file, 'w')
|
||||||
|
file.write(str(handler))
|
||||||
|
file.close()
|
||||||
|
messagebox.showinfo("yes", "success")
|
1
main.py
1
main.py
|
@ -781,6 +781,7 @@ def build():
|
||||||
print(f"copying {i}...")
|
print(f"copying {i}...")
|
||||||
shutil.copyfile(i, target+"/"+i)
|
shutil.copyfile(i, target+"/"+i)
|
||||||
shutil.copyfile(__file__, target+"/"+"player.py")
|
shutil.copyfile(__file__, target+"/"+"player.py")
|
||||||
|
shutil.copyfile("requirements.txt", target+"/"+"requirements.txt")
|
||||||
file = open(target+"/main.py", 'w')
|
file = open(target+"/main.py", 'w')
|
||||||
file.write("""
|
file.write("""
|
||||||
import player
|
import player
|
||||||
|
|
Loading…
Reference in New Issue