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.
Utilities built on redis-rb for using Redis Lua scripting.
Add this line to your application's Gemfile:
gem 'redis-scripting'
And then execute:
$ bundle
Or install it yourself as:
$ gem install redis-scripting
Given a directory of lua scripts, you can create an object to run those scripts with:
> redis = Redis.new()
> scripts = Redis::Scripting::Module.new(redis, "/path/to/myscripts")
Then you can run a script "do_work.lua" with:
> scripts.run(:do_work, [keys], [argv])
See http://redis.io/commands/eval for details on the keys and argv params, along with more details on lua in redis. To save bandwidth this will use evalsha to run the script, and fallback to eval if the script is not yet loaded in redis.
If your scripts directory "myscripts" has a "myscripts/includes" subdirectory, any .lua files in that subdirectory will be prepended to every .lua script in "myscripts" as a primitive form of extracting library code. For instance if your folder structure is:
- myscripts/
- script1.lua
- script2.lua
- includes/
- common.lua
- more.lua
Then script1 and script2 will automatically have common.lua and then more.lua prepended to it.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that redis-scripting 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.