dns.lookup hacking

This commit is contained in:
Cynthia Foxwell 2025-08-14 16:57:06 -06:00
parent 7866f93f1b
commit b0c2c0d39b
Signed by: Cynosphere
SSH key fingerprint: SHA256:H3SM8ufP/uxqLwKSH7xY89TDnbR9uOHzjLoBr0tlajk

View file

@ -1,6 +1,7 @@
const {Client, Collection, Channel, Permission} = require("@projectdysnomia/dysnomia");
const fs = require("node:fs");
const {resolve} = require("node:path");
const dns = require("node:dns");
const sqlite3 = require("sqlite3");
const {instead, before} = require("@marshift/strawberry");
@ -252,6 +253,13 @@ instead(bot.shards, "spawn", function (args, orig) {
return ret;
});
before(dns, "lookup", (args) => {
if (args[0].includes(".discord.media")) {
if (args[1] == null) args[1] = {};
args[1].family = 6;
}
});
process.title = `HiddenPhox`;
bot.connect();