
Research
/Security News
60 Malicious Ruby Gems Used in Targeted Credential Theft Campaign
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
github.com/caseyh/twilio
Simple Twilio API wrapper in Go. Forked from subosito/twilio to allow better credential hygiene.
As usual you can go get
the twilio package by issuing:
$ go get github.com/caseyh/twilio
Then you can use it on your application:
package main
import (
"log"
"net/url"
"github.com/caseyh/twilio"
)
var (
AccountSid = "AC5ef8732a3c49700934481addd5ce1659"
AuthToken = "2ecaf0108548e09a74387cbb28456aa2"
)
func main() {
// Initialize twilio client
c := twilio.NewClient(AccountSid, AuthToken, nil)
// You can set custom Client, eg: you're using `appengine/urlfetch` on Google's appengine
// a := appengine.NewContext(r) // r is a *http.Request
// f := urlfetch.Client(a)
// c := twilio.NewClient(AccountSid, AuthToken, f)
// Send Message
params := twilio.MessageParams{
Body: "Hello Go!",
}
s, response, err := c.Messages.Send("+15005550006", "+62801234567", params)
if err != nil {
log.Fatal(s, response, err)
}
// You can also using lower level function: Create
s, response, err = c.Messages.Create(url.Values{
"From": {"+15005550006"},
"To": {"+62801234567"},
"Body": {"Hello Go!"},
})
if err != nil {
log.Fatal(s, response, err)
}
}
FAQs
Unknown package
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
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.