
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
ipinfodb-middleware
Advanced tools
An Express middleware to get the client IP & time details from ipinfodb.com
Express Middleware for ipinfodb.com
npm install ipinfodb-middleware
var express = require('express');
var app = express();
var key = 'abcd'; // your ipinfodb.com API key
var ipinfodb = require('ipinfodb-middleware');
app.enable('trust proxy');
app.use(ipinfodb({key: key}));
app.get('/', function (req, res) {
// IP info is now available in req.ipinfo
res.json(req.ipinfo);
});
app.listen(3000);
The req.ipinfo
will contain the following output if things worked fine.
{
"statusCode": "OK",
"statusMessage": "",
"ipAddress": "122.161.60.x",
"countryCode": "IN",
"countryName": "India",
"regionName": "Delhi",
"cityName": "Delhi",
"zipCode": "110008",
"latitude": "28.6667",
"longitude": "77.2167",
"timeZone": "+05:30"
}
Jenil Gogari
FAQs
An Express middleware to get the client IP & time details from ipinfodb.com
The npm package ipinfodb-middleware receives a total of 2 weekly downloads. As such, ipinfodb-middleware popularity was classified as not popular.
We found that ipinfodb-middleware 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.