forked from wiiudev/pyGecko
/
octoling.py
61 lines (60 loc) · 2.39 KB
/
octoling.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#Codename Octohax
from tcpgecko import TCPGecko
import sys
sys.argv.append("230")
tcp = TCPGecko("192.168.0.8")
if sys.argv[1] == "100": #For 1.0.0-?
tcp.writestr(0x105068F0, b"Tnk_Rvl00")
tcp.writestr(0x1051A500, b"Tnk_Rvl00")
tcp.writestr(0x105DBFE0, b"Rival00")
tcp.writestr(0x105DBFEC, b"Rival00_Hlf")
tcp.writestr(0x105DBFFC, b"Rival_Squid")
#tcp.pokemem(0x12CB05A0, 42069)
elif sys.argv[1] == "130": #for 1.3.0
tcp.writestr(0x105068F0, b"Tnk_Rvl00")
tcp.writestr(0x105D4000, b"Tnk_Rvl00")
tcp.writestr(0x105DC118, b"Rival00")
tcp.writestr(0x105DC124, b"Rival00_Hlf")
tcp.writestr(0x105DC134, b"Rival_Squid")
#tcp.pokemem(0x12CB07A0, 42069)
elif sys.argv[1] == "200": #For 2.0.0
tcp.writestr(0x10506AB0, b"Tnk_Rvl00")
tcp.writestr(0x105E0278, b"Tnk_Rvl00")
tcp.writestr(0x105E85B0, b"Rival00")
tcp.writestr(0x105E85BC, b"Rival00_Hlf")
tcp.writestr(0x105E85CC, b"Rival_Squid")
tcp.writestr(0x12BE2350, b"Tnk_Rvl00")
tcp.writestr(0x12BE239C, b"Tnk_Rvl00")
tcp.writestr(0x12BE23E8, b"Tnk_Rvl00")
elif sys.argv[1] == "210": #For 2.1.0
tcp.writestr(0x10506AF8, b"Tnk_Rvl00")
tcp.writestr(0x105E0350, b"Tnk_Rvl00")
tcp.writestr(0x105E8698, b"Rival00")
tcp.writestr(0x105E86A4, b"Rival00_Hlf")
tcp.writestr(0x105E86B4, b"Rival_Squid")
tcp.writestr(0x12BE2350, b"Tnk_Rvl00")
tcp.writestr(0x12BE239C, b"Tnk_Rvl00")
tcp.writestr(0x12BE23E8, b"Tnk_Rvl00")
tcp.pokemem(0x12CC7C80, 0x00000000) #Enforce Female Inkling
elif sys.argv[1] == "220": #For 2.2.0
tcp.writestr(0x10506AF8, b"Tnk_Rvl00")
tcp.writestr(0x105E0350, b"Tnk_Rvl00")
tcp.writestr(0x105EB040, b"Rival00")
tcp.writestr(0x105EB04C, b"Rival00_Hlf")
tcp.writestr(0x105EB05C, b"Rival_Squid")
tcp.writestr(0x12BE5350, b"Tnk_Rvl00")
tcp.writestr(0x12BE539C, b"Tnk_Rvl00")
tcp.writestr(0x12BE53E8, b"Tnk_Rvl00")
tcp.pokemem(0x12CCAC80, 0x00000000) #Enforce Female Inkling
elif sys.argv[1] == "230": #For 2.3.0
tcp.writestr(0x10506AF8, b"Tnk_Rvl00")
tcp.writestr(0x105E3BB8, b"Tnk_Rvl00")
tcp.writestr(0x105EBF98, b"Rival00")
tcp.writestr(0x105EBFA4, b"Rival00_Hlf")
tcp.writestr(0x105EBFB4, b"Rival_Squid")
tcp.writestr(0x12BE6350, b"Tnk_Rvl00")
tcp.writestr(0x12BE639C, b"Tnk_Rvl00")
tcp.writestr(0x12BE63E8, b"Tnk_Rvl00")
tcp.pokemem(0x12CCBB90, 0x00000000) #Enforce Female Inkling
tcp.s.close()
print("Done.")