
Research
wget to Wipeout: Malicious Go Modules Fetch Destructive Payload
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
minecraft-java-server-query
Advanced tools
Module to gather basic information from a Minecraft Java server directly.
Module to gather basic (MOTD, favicon, player count, version) information from Minecraft Java servers.
First, import the module:
// Using CommonJS
const { query } = require("minecraft-java-server-query");
// Using TypeScript or ESM
import { query } from "minecraft-java-server-query";
Then, call the query
function by passing the server's information:
// Using Hypixel information
const options = {
host: "mc.hypixel.net",
timeout: 15_000
};
// Using promises
query(options).then(response => {
console.log(response);
});
// Using async/await
const response = await query(options);
console.log(response);
query(options: JavaStatusOptions) => Promise<JavaStatusResponse>
Fetch information of a Minecraft server.
string
): IP address of the server.number
): Port of the server. Defaults to 25565
.number
): Maximum time in milliseconds to disconnect due to inactivity. Defaults to 30_000
.Returns a Promise
with the information of the server as a JavaStatusResponse
object, or throws an error if something happened with the socket, fetching the data or because of timeout.
{ protocol: number, name: string }
): Information about the version of Minecraft that the server is running.players: { max: number, online: number, sample?: { name: string, id: string }[] }
): Online players, maximum amount of players that the server is capable of having, and an optional sample of players that are online (missing most of the times).string
): MOTD (Message of the day) of the server.{ buffer: Buffer, mimeType: string } | null
): Buffer and Media type (Mime type) of the server's icon/image.FAQs
Module to gather basic information from a Minecraft Java server directly.
The npm package minecraft-java-server-query receives a total of 7 weekly downloads. As such, minecraft-java-server-query popularity was classified as not popular.
We found that minecraft-java-server-query demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.
Product
We redesigned Socket's first logged-in page to display rich and insightful visualizations about your repositories protected against supply chain threats.