
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
phaser-capture
Advanced tools
Phaser plugin for easily capturing screenshots (PNG, JPEG) and videos (GIF, WebM).
Although each OS has their own set of tools for screenshots and video capture, I wanted something platform agnostic that I could simply plug into whatever web-based game I was making. This also lets me collect captures on computers that I don't have software installation rights on.
I chose Phaser in particular only because it's what I'm already using most of the time, but I would like to eventually include a more minimal module that does the core screenshot/recording work without being coupled to Phaser.
The plugin is packaged via UMD, meaning it'll
work happily used if included browser globally (via <script src="phaser-capture.js">
) or if you prefer Node or
Browserify.
Unfortunately Phaser plugins
are not very well documented, and most rely on their own ad-hoc documentation to
instruct their users. For now, phaser-capture
is no different:
// var PhaserCapture = require('phaser-capture'); // For Node/Browserify users
var playState = {
create: function() {
game.capture = game.plugins.add(Phaser.Plugin.Capture);
// game.capture = game.plugins.add(PhaserCapture); // Node/Browserify
// Take a screenshot every 5 seconds.
setInterval(function() {
game.capture.screenshot(function(dataUrl) {
// Outputs a data-url of the image (default image/png).
console.log(dataUrl);
});
}, 5000);
},
};
game = new Phaser.Game(800, 600);
game.state.add('play', playState);
game.state.start('play');
The resultant plugin exposes only one method currently:
screenshot(callback, opts)
callback
is the function that will be called once the screenshot render is
complete. It assumes its only argument will be a data-url.options
is an object that may contain:
format
, either image/png
or image/jpeg
FAQs
Phaser plugin for easily capturing screenshots (PNG, JPEG) and videos (GIF, WebM).
We found that phaser-capture 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.