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.
github.com/jpiontek/go-ip-api
A simple wrapper around the ip-api.com API for IP geolocation information written in Go (golang). Works for both the free API as well as the paid, commercial API if you have purchased a Pro license.
Import and create a new client.
import "github.com/jpiontek/go-ip-api"
client := goip.NewClient()
If you have an api key for a paid account then use
client := goip.NewClientWithApiKey("my-api-key")
Request your current public IP info.
result := client.GetLocation()
Or supply a specific IP address.
result := client.GetLocationForIp("127.0.0.1")
Keep in mind that the free account is limited to 150 requests per minute. If you exceed this limit your IP address is blacklisted from making further requests. To correct this visit this page.
##License
MIT © Jeremiah Piontek
FAQs
Unknown package
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.