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.
A timer that provides an event based interface to hook into for your app. In addition, the back end timer can be swapped out, so for testing, you can control the passage of time.
require 'rubygems'
require 'dilation'
class WakeHandler
def call
puts 'awake'
end
end
def stop_handler
puts 'stop'
end
c = Dilation::Core.new
trap 'INT' do
c.stop
abort
end
c.listen_for :start do puts 'start' end
c.listen_for :stop, method(:stop_handler)
c.listen_for :sleep, lambda { puts 'sleep' }
c.listen_for :wake, WakeHandler.new
c.listen_for :tick, lambda { puts 'tick' }
puts 'sleeping'
c.sleep 5
puts 'starting'
counter = 0
c.listen_for :tick, lambda { counter += 1 }
c.start
while counter < 5
end
c.stop
puts 'ok'
TODO
Add this line to your application's Gemfile:
gem 'dilation'
And then execute:
$ bundle
Or install it yourself as:
$ gem install dilation
The rubydoc.info docs contain API documentation. The API docs contain detailed info about all of Dilation's public API.
Dilation follows the principles of semantic versioning. The API documentation define Dilation's public API. Patch level releases contain only bug fixes. Minor releases contain backward-compatible new features. Major new releases contain backwards-incompatible changes to the public API.
Dilation has been tested on the following ruby interpreters:
yard server --reload
Copyright (c) 2010-2012 Jim Deville. Released under the terms of the MIT license. See LICENSE for details.
FAQs
Unknown package
We found that dilation 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.