
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
toluol-wasm
Advanced tools
Send DOH queries with the binary "content-type": "application/dns-message" and decode the response in the browser!
Send DOH queries with the binary "content-type": "application/dns-message" and decode the response in the browser!
import * as toluol from "../pkg/wasm_dns";
const f = fetch;
const publicResolvers = [
"https://cloudflare-dns.com",
"https://dns.digitale-gesellschaft.ch",
"https://google.dns",
"http://[::]"
];
const resolver = publicResolvers[3];
const post = async query => {
const res = await f(`${resolver}/dns-query`, {
headers: {
"content-type": "application/dns-message"
},
credentials: "omit",
method: "POST",
body: query
});
return new Uint8Array(await res.arrayBuffer());
};
const get = async query => {
const q = Buffer.from(query).toString("base64").replace(/\+/g, "-").replace(/\//g, "_");
const res = await f(`${resolver}/dns-query?dns=${q.replace(/=/g, "")}`, {
headers: {
accept: "application/dns-message"
},
credentials: "omit"
});
return new Uint8Array(await res.arrayBuffer());
};
(async () => {
toluol.init_panic_hook();
const query = toluol.new_query("pektin.xyz", "A");
const res = await get(query);
const parsed = toluol.parse_answer(res);
console.log(parsed);
})();
FAQs
Send DOH queries with the binary "content-type": "application/dns-message" and decode the response in the browser!
The npm package toluol-wasm receives a total of 0 weekly downloads. As such, toluol-wasm popularity was classified as not popular.
We found that toluol-wasm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.