
Research
Security News
The Landscape of Malicious Open Source Packages: 2025 Mid‑Year Threat Report
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
tcp-listener
Advanced tools
This is a simple TCP listener for data and whatnot.
It only listens and doesn't respond to anything. All it does is recieve data and blurt it out on the screen.
I made it for monitoring and debugging a project that involves networking.
Assuming you have Node.js and NPM installed,
[sudo] npm install -g tcp-listener
Usage: tcp-listener [options]
A simple TCP listener that blurts out whatever it reads.
Options:
-V, --version output the version number
-p, --port <port> Port to listen on
-d, --display <mode> Display mode (text, hex, both)
-e, --encoding <fmt> Encoding ("utf8" is default)
-h, --help output usage information
The --encoding
option takes Node.js encoding identifiers.
If you start the server on port 80 and try connect to it using Firefox, this is what you get (well, it's more colorful IRL).
$ tcp-listener -d text -p 80
Info: Server started on port 80.
Info: Client [::ffff:192.168.1.82]:49643 connected.
[::ffff:192.168.1.82]:49643 ~ 349 bytes.
GET / HTTP/1.1
Host: 192.168.1.25
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:61.0) Gecko/20100101 Firefox/61.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-GB,en-US;q=0.7,en-NZ;q=0.3
Accept-Encoding: gzip, deflate
DNT: 1
Connection: keep-alive
Upgrade-Insecure-Requests: 1
Client disconnected.
FAQs
A simple TCP listener that blurts out whatever it reads.
The npm package tcp-listener receives a total of 3 weekly downloads. As such, tcp-listener popularity was classified as not popular.
We found that tcp-listener 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
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.