Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
xbmc_sql is a Rails engine for interacting with the XBMC/Kodi database directly. It can also update .nfo files as it makes changes to the database.
Special thanks to Rocketmade for development resources.
In your database.yml, set up an xbmc_development
(or whatever environment) seperate than the other database:
development:
adapter: mysql2
database: some_other_database
username: boring_stuff
password: foo
xbmc_development:
adapter: mysql2
database: xbmc
username: xbmc_user
password: xbmc_pass
XbmcSql.setup do |x|
# Write .nfo files when matching db record is updated
x.write_nfo_files = true # Defaults to false
# Setup a path mapping
#
# This is useful if you use have the movies mounted in share
# By default there are no mappings mapped
x.path_mappings = {
'smb://my_nas/' => '/Volumes/Video'
}
end
movie = XbmcSql::Movie.first
movie.title # -> "Seven Samurai"
movie.genre # -> "Action / Drama"
movie.genre = "Action / Drama / History"
movie.save!
# At this point, the movie is updated in the database.
# If write .nfo files are on, the .nfo file would also be updated
set = XbmcSql::Set.first
set.name # -> "AK100"
set.movies.map { |movie| movie.name } # -> ["Seven Samurai", "Yojimbo",... ]
There are a couple of useful rake tasks:
# Update the imdb top 250 status of all movies:
rake xbmc_sql:update:top_250
# Update the imdb rating for all movies:
rake xbmc_sql:update:ratings
MIT
FAQs
Unknown package
We found that xbmc-sql 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.