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.
screencap-stream
Advanced tools
Take a screencap and return it as a stream. Today OSX. Tomorrow, CROSS PLATFORM!!!
var screencap = require('screencap-stream')
screencap.createReadStream()
.on('error', function(err) {
process.stderr.write(err.toString())
process.exit(-1)
})
.pipe(process.stdout)
var screencap = require('screencap-stream')
screencap(function(err, readStream) {
...
})
screencap
binaryInstall it:
npm install -g screencap-stream
Take a screenshot (png) and output to stdout:
screencap
And now add it to ipfs:
screencap | ipfs add
And for a publish one-liner
echo "http://gateway.ipfs.io/ipfs/"$(screencap | ipfs add -q)
ipfs-cap
binaryCapture screenshots, publish them to IPFS, and copy the link to the clipboard.
Examples:
# default name based on date
> ipfs-cap
http://gateway.ipfs.io/ipfs/QmfV9gpmi9yT4J4fWWJH2xdrAUYbmn3JYZPWCN5hsMnA9A/screencap.2015-07-04T01:21:00Z.png
# name argument
> ipfs-cap laser-raptor.png
http://gateway.ipfs.io/ipfs/QmdCcY49eXipYJQpZL2yAuu2Jv8QbddJE2Zub3cfwc3aPz/laser-raptor.png
# verbose
> ipfs-cap -v hacking-too-much-time.png
capturing screen... QmRT4WfAYmt6EQmSWLNwjk9TU75ENV3JZum2PtGPq5V63R
constructing dir... Qmao3bK722MJ1eur89caxvJZ32FChyvRPi6QyBsibuKVEg
copying url to clipboard... copied
http://gateway.ipfs.io/ipfs/Qmao3bK722MJ1eur89caxvJZ32FChyvRPi6QyBsibuKVEg/hacking-too-much-time.png
Install it with:
npm install -g screencap-stream
FAQs
screen capture streams
We found that screencap-stream 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.