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.
reddit-user-dump
Advanced tools
scrapes a reddit user's complete post history
(thanks to max ogden for inspiration https://github.com/maxogden/subreddit-youtubes)
NEW: you can also pass in a second argument that will stop parsing if the comment is older than a given 'created' value
npm install reddit-user-dump
var lastParsed = 0;
function wrapper(username, callback) {
var test = require('../index.js')
console.log(test);
var submissionCount = 0;
var commentCount = 0;
var total = 0;
test(username, lastParsed)
.on('user', function(userObj) {
console.log(userObj);
})
.on('submission', function(submission) {
submissionCount += 1;
})
.on('comment', function(comment) {
//console.log('comment found!');
commentCount += 1;
})
.on('page', function(after, count) {
total += count;
console.log('page complete found',
'submission: ', submissionCount, 'comment', commentCount, 'total', total);
})
.on('data', function(obj) { //this is a comment or submission that is pushed
if (obj.data.created > lastParsed) lastParsed = obj.data.created;
})
.on('end', function() {
console.log('end')
console.log('parse complete found',
'submission: ', submissionCount, 'comment', commentCount, 'total', total);
callback();
})
.on('error', function(err) {
console.log('err', err)
});
}
wrapper('hortinstein', function(e, r) {
wrapper('hortinstein', function() {
});
})
BSD
FAQs
dumps a redditor's history in json
The npm package reddit-user-dump receives a total of 1 weekly downloads. As such, reddit-user-dump popularity was classified as not popular.
We found that reddit-user-dump 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.