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.
Search Twitter for specific terms and automatically reply from your bot account.
Please exercise reasonable benevolence with your new powers.
Add this line to your application's Gemfile:
gem 'twitter-bot'
And then execute:
$ bundle
Or install it yourself as:
$ gem install twitter-bot
Using your Twitter bot account:
Go to https://apps.twitter.com/app/new and create an app
Go to the Keys and Access Tokens tab and click "Create my access token" at the bottom.
You will need to save the 2 keypairs on this page (consumer key/secret & token key/secret) to configure your bot.
bot = Twitter::Bot.new(
consumer_key: 'value',
consumer_secret: 'value',
access_token_key: 'value',
access_token_secret: 'value')
bot.search('sneak peak') do |tweet|
'I think you mean "sneak peek"'
end
interval
: seconds to wait between polling requests (default: 5)user_agent
: custom user agent for Twitter API requestsbot.search('"how long is this tweet"') do |tweet|
"@#{tweet.user.screen_name} This is #{tweet.text.size} characters long"
end
bot.search('from:nihilist_arbys "horsey saurce"') { |tweet| 'Yum!' }
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that twitter-bot 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.