Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
= igp ... It goes PING!
igp arrived as an idea to have a simple commmand line utility for testing services supporting a range of common protocols: TCP, HTTP/S, LDAP/S and so on. This is nothing new, but in the past -- when testing a new load balancer for example -- I always reached for a bunch of trusty (and rusty) shell scripts. Wouldn't it be nice if there was a simple tool that had no other dependency than ruby?
Thankfully, most of the work has already been done by the {net-ping library}[https://github.com/djberg96/net-ping]. igp just provides a nice command-line wrapper.
== How to use it
Install:
gem install igp
Then you are ready to go. To test some common protocols, just provide a suitable URI. Protocols currently supported are: icmp, http, https, ldap, ldaps, tcp, udp. If you don't specify a port in the URI, the default well-known port will be assumed if possible e.g. port 80 for HTTP.
igp my.server.com
igp icmp://my.server.com
igp http://my.insecure.server.com igp http://my.insecure.server-hiding-on-a-funny-port.com:8080/javascripts/all.js
igp https://my.secure.server.com igp https://my.secure.server-hiding-on-a-funny-port.com:4443
igp tcp://my.tcp-service.com:9091 igp udp://my.tcp-service.com:123
igp ldap://my.insecure.ldap.server.com igp ldaps://my.secure.ldap.server.com
Of course, you can use IP addresses too:
igp tcp://127.0.0.1:22
== Command-line Options
=== Interval The default interval between pings is 5 seconds. You can change this with the -i or --interval parameter.
igp my.server.com -i 10 igp my.server.com --interval=10
=== Limit +igp+ will ping to the end of time if you let it. To limit the number of ping tests, use the -l or --limit parameter.
igp my.server.com -l 5 igp my.server.com --limit=5
== Output format Any messages or warnings are sent to stderr. Actual ping results are written to stdout.
Ping results are written as a comma-separated record with 4 components:
Examples:
2011-05-07T03:34:08.078Z,true,0.006508,
2011-05-07T03:31:17.173Z,false,,ping: cannot resolve my.server.com: Unknown host
== Contributing to igp You're welcome to fork/borrow/copy the source. If you come up with any improvements though, I welcome your contributions back even more.
== Copyright
Copyright (c) 2011 Paul Gallagher. See LICENSE.txt for further details.
FAQs
Unknown package
We found that igp 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.