
Research
5 Malicious Chrome Extensions Enable Session Hijacking in Enterprise HR and ERP Systems
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.
vimagination.zapto.org/textmagic
Advanced tools
-- import "github.com/MJKWoolnough/textmagic"
Package textmagic wraps the API for textmagic.com
type APIError struct {
Cmd string
Code int `json:"error_code"`
Message string `json:"error_message"`
}
APIError is an error returned when the incorrect or unexpected data is received
func (a APIError) Error() string
type DeliveryNotificationCode string
DeliveryNotificationCode is a representation of the status of a delivery
func (d DeliveryNotificationCode) Status() string
Status returns the type of status based on the code
func (d DeliveryNotificationCode) String() string
type JSONError struct {
Cmd string
Err error
}
JSONError is an error that wraps a JSON error
func (j JSONError) Error() string
type Message struct {
ID uint64 `json:"message_id"`
From string `json:"from"`
Timestamp int64 `json:"timestamp"`
Text string `json:"text"`
}
Message represents the information about a received message
type Number struct {
Price float32 `json:"price"`
Country string `json:"country"`
}
Number represents the information about a phone number
type Option func(u url.Values)
Option is a type representing a message sending option
func CutExtra() Option
CutExtra sets the option to automatically trim overlong messages
func From(from string) Option
From is an option to modify the sender of a message
func MaxLength(length uint64) Option
MaxLength is an option to limit the length of a message
func SendTime(t time.Time) Option
SendTime sets the option to schedule the sending of a message for a specific time
type RequestError struct {
Cmd string
Err error
}
RequestError is an error which wraps an error that occurs while making an API call
func (r RequestError) Error() string
type Status struct {
Text string `json:"text"`
Status DeliveryNotificationCode `json:"status"`
Created int64 `json:"created_time"`
Reply string `json:"reply_number"`
Cost float32 `json:"credits_cost"`
Completed int64 `json:"completed_time"`
}
Status represents all of the information about a sent/pending message
type StatusError struct {
Cmd string
StatusCode int
}
StatusError is an error that is returned when a non-200 OK http response is received
func (s StatusError) Error() string
type TextMagic struct {
}
TextMagic contains the data necessary for performing API requests
func New(username, password string) TextMagic
New constructs a new TextMagic session
func (t TextMagic) Account() (float32, error)
Account returns the balance of the given TextMagic account
func (t TextMagic) CheckNumber(numbers []string) (map[string]Number, error)
CheckNumber is used to get the cost and country for the given phone numbers
func (t TextMagic) DeleteReply(ids []string) ([]string, error)
DeleteReply will simple delete message replies with the given ids
func (t TextMagic) MessageStatus(ids []string) (map[string]Status, error)
MessageStatus gathers information about the messages with the given ids
func (t TextMagic) Receive(lastRetrieved uint64) (uint64, []Message, error)
Receive will retrieve the number of unread messages and the 100 latest replies
func (t TextMagic) Send(message string, to []string, options ...Option) (map[string]string, string, uint, error)
Send will send a message to the given recipients. It takes options to modify the scheduling. sender and length of the message
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
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.

Research
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.

Research
/Security News
A malicious Chrome extension steals newly created MEXC API keys, exfiltrates them to Telegram, and enables full account takeover with trading and withdrawal rights.