
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
dns_lookup_plugin
Advanced tools
This will allow you to do a DNS lookup for any Domain, and will provide you with a JSON output.
awk
jq
& dig
installed.user@DESKTOP:/mnt/e/Github/dns_lookup_plugin$ node test.js
[ { Name: 'divine.games.',
TTL: '0',
Class: 'IN',
Type: 'TXT',
IpAddress: '"heritage=external-dns,external-dns/owner=test,external-dns/resource=service/default/nginx"' } ]
Example Usage
var dns = require('dns_lookup_plugin');
var domain = "divine.games";
var type = "txt";
dns.lookup(domain,type).then((data) => {
console.log(data);
}).catch((err) => {
console.error(err);
})
Install Required Applications
sudo apt-get install jq
sudo apt-get install gawk
sudo apt-get install dig
Notes
Regex used for Domain Validation
/(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/
Supported DNS Record Types:
// #INFO List of DNS Record Types
// #URL https://en.wikipedia.org/wiki/List_of_DNS_record_types
const record_types = [
//Resource Records
'a',
'aaaa',
'afsdb',
'apl',
'caa',
'cdnskey',
'cds',
'cert',
'cname',
'csync',
'dhcid',
'dlv',
'dname',
'dnskey',
'ds',
'eui48',
'eui64',
'hinfo',
'hip',
'ipseckey',
'key',
'kx',
'loc',
'mx',
'naptr',
'ns',
'nsec',
'nsec3',
'nsec3param',
'openpgpkey',
'ptr',
'rrsig',
'rp',
'sig',
'smimea',
'soa',
'srv',
'sshfp',
'ta',
'tkey',
'tlsa',
'tsig',
'txt',
'uri',
'zonemd',
'svcb',
//Pseudo-RRs Record Types
'*',
'axfr',
'ixfr',
'opt',
//Obsolete Record Types
'md',
'mf',
'maila',
'mb',
'mg',
'mr',
'minfo',
'mailb',
'wks',
'nb',
'nbstat',
'null',
'a6',
'nxt',
'key',
'sig',
'hinfo',
'rp',
'x25',
'isdn',
'rt',
'nsap',
'nsap-ptr',
'px',
'eid',
'nimloc',
'atma',
'apl',
'sink',
'gpos',
'uinfo',
'uid',
'gid',
'unspec',
'spf',
'ninfo',
'rkey',
'talink',
'nid',
'l32',
'l64',
'lp',
'doa'
];
FAQs
Node.js Plugin to Lookup DNS Records.
The npm package dns_lookup_plugin receives a total of 4 weekly downloads. As such, dns_lookup_plugin popularity was classified as not popular.
We found that dns_lookup_plugin 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.