
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Node wrapper for the ICMP protocol.
npm install icmp
On Windows, Windows Build Tools are required: npm install -g windows-build-tools
The requested HOST (can be an IP)
The requested IP, when host parameter is given to the constructor, the DNS will be resolved to get this IP adress
This property will be true
or false
, depending on the ping response
ICMP response type, will be one from this array:
['REPLY', 'NA', 'NA', 'DESTINATION_UNREACHABLE', 'SOURCE_QUENCH', 'REDIRECT']
ICMP response code, will be one from this array:
['NET', 'HOST', 'PROTOCOL', 'PORT', 'FRAGMENTATION', 'ROUTE_FAILED', 'NET_UNKNOWN', 'HOST_UNKNOWN', 'HOST_ISOLATED', 'NET_PROHIBITED', 'HOST_PROHIBITED', 'NET_UNREACHABLE', 'HOST_UNREACHABLE', 'COMM_PROHIBITED', 'HOST_PRECEDENCE', 'PRECEDENCE_CUTOFF', 'NETWORK', 'HOST', 'SERVICE_NETWORK', 'HOST_NETWORK']
Note: default timeout
of each methods is 5000ms
.
Send a ping to a specific host. Returns a Promise resolving an ICMP instance and rejecting an Error.
Send a ping to the defined ICMP instance's host. Returns a Promise, resolving nothing and rejecting an Error.
Send data to a specific host through ICMP. Returns a Promise resolving an ICMP instance and rejecting an Error.
icmp.send('10.43.65.9', "Hey, I'm sending a message!")
.then(obj => {
console.log(obj.open ? 'Done' : 'Failed')
})
.catch(err => console.log(err));
Send data to the defined ICMP instance's host. Returns a Promise resolving nothing and rejecting an Error.
Listen to incomming ICMP requests.
Listen to incomming ICMP requests.
Close the raw socket stream. Can be used to stop a request.
👤 Nathanael Demacon
Give a ⭐️ if this project helped you!
FAQs
Internet Control Message Protocol in Node
The npm package icmp receives a total of 87 weekly downloads. As such, icmp popularity was classified as not popular.
We found that icmp 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 uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.