Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Install: npm install insubnet
This project is Unlicensed. In other words, I don't care what you do with it. However, if you make something interesting, I would like to check it out.
Browser example at http://louist.github.io/inSubnet/example.html.
Examples in `./examples/` folder.
inSubnet.Auto(ip, subnet[, mask]) - Check to find out if <ip> is in <subnet>. Works with IPv4 and IPv6. Returns true or false.
Examples: inSubnet.Auto('1.2.3.4','1.2.0.0/16'); OR inSubnet.Auto('1.2.3.4','1.2.0.0','16');
inSubnet.IPv4(ip, subnet[, mask]) - Same as "Auto()" but for IPv4 only. - Returns true or false.
Examples: inSubnet.IPv4('1.2.3.4','1.2.0.0/16'); OR inSubnet.IPv4('1.2.3.4','1.2.0.0','16');
inSubnet.IPv6(ip, subnet[, mask]) - Same as "Auto()" but for IPv6 only. - Returns true or false.
Examples: inSubnet.IPv6('2400:cb00::123','2400:cb00::/32'); OR inSubnet.IPv6('2400:cb00::123','2400:cb00::','32');
inSubnet.isIP(string) - Check if <string> is an IP address. Works for IPv6 and IPv4. - Returns true or false.
Examples: inSubnet.isIP("127.0.0.1"); OR inSubnet.isIP("afd::1");
inSubnet.isIPv4(string) - Same as "isIP()" but for IPv4 only. - Returns true or false.
Example: inSubnet.isIPv4("127.0.0.1");
inSubnet.isIPv6(string) - Same as "isIP()" but for IPv6 only. - Returns true or false.
Example: inSubnet.isIPv6("adf::1");
inSubnet.Expand(ipv6) - Expands an IPv6. - Returns IPv6 or false.
Example: inSubnet.expand("afd::1");
inSubnet.Validate(ip) - Check against an array of subnets set by "setSubnet()". - Returns true or false.
Example: inSubnet.Validate("192.168.1.3");
inSubnet.setSubnets(subnets) - Set a list of subnets for "Validate()". - Returns true or false.
Example: inSubnet.setSubnets(["192.168.1.0/30","::1/32"]);
FAQs
Check an IP(v4 or v6) against a subnet.
The npm package insubnet receives a total of 87 weekly downloads. As such, insubnet popularity was classified as not popular.
We found that insubnet 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 uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.