Skip to content

Commit d2188ed

Browse files
author
Rocket Programmer
committed
features: Add bytecode extract
1 parent a85315d commit d2188ed

6 files changed

Lines changed: 35 additions & 3 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
build-*
22
*.user
33
pyloader/.vs/*
4-
pyloader/Debug/*
4+
pyloader/Debug/*
5+
pyloader/Release/*

Scripts.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,12 @@ import urllib
3434
response = urllib.urlopen('http://download.sunrise.games/hax/Buttons/TeamLegend.txt')
3535
code = response.read()
3636
exec(code)
37-
)";
37+
)";
38+
39+
inline const char *extractBytecode = R"(
40+
import urllib
41+
42+
response = urllib.urlopen('http://download.sunrise.games/hax/Bytecode/Extract.txt')
43+
code = response.read()
44+
exec(code)
45+
)";

injector.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,3 +211,10 @@ void Injector::on_actionTeam_Legend_triggered()
211211
// While this works, ideally we'd be calling PyRun_SimpleStringFlags instead.
212212
this->sendPythonPayload(teamLegendButtons);
213213
}
214+
215+
void Injector::on_actionBytecode_Extract_triggered()
216+
{
217+
// While this works, ideally we'd be calling PyRun_SimpleStringFlags instead.
218+
this->sendPythonPayload(extractBytecode);
219+
}
220+

injector.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ private slots:
2626
void on_Clear_clicked();
2727
void on_actionTeam_Legend_triggered();
2828

29+
void on_actionBytecode_Extract_triggered();
30+
2931
private:
3032
Ui::Injector *ui;
3133
};

injector.ui

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,16 @@
7373
</property>
7474
<addaction name="actionTeam_Legend"/>
7575
</widget>
76+
<widget class="QMenu" name="menuTools">
77+
<property name="title">
78+
<string>Tools</string>
79+
</property>
80+
<addaction name="actionBytecode_Extract"/>
81+
</widget>
7682
<addaction name="separator"/>
7783
<addaction name="PhaseCheck"/>
7884
<addaction name="menuButtons"/>
85+
<addaction name="menuTools"/>
7986
</widget>
8087
<widget class="QMenu" name="About">
8188
<property name="title">
@@ -102,6 +109,14 @@
102109
<string>Team Legend</string>
103110
</property>
104111
</action>
112+
<action name="actionBytecode_Extract">
113+
<property name="checkable">
114+
<bool>true</bool>
115+
</property>
116+
<property name="text">
117+
<string>Extract Bytecode</string>
118+
</property>
119+
</action>
105120
</widget>
106121
<resources/>
107122
<connections/>

pyloader/dllmain.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ def InjServer():
108108
conn.close()
109109
110110
def hax():
111-
print('jwcotejr on your runtime')
112111
exec(open('C:/scripts/hax.py').read(), globals())
113112
114113
base.accept('f1', hax)

0 commit comments

Comments
 (0)