Skip to content

Commit

Permalink
v3.3.1 released
Browse files Browse the repository at this point in the history
fixed some bugs in the json payload.
  • Loading branch information
noto-rious committed Jan 3, 2021
1 parent 248d98d commit c7bdc3d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
Binary file modified Nitro.Self-V3.exe
Binary file not shown.
17 changes: 7 additions & 10 deletions sniper.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func getPaymentSourceID() {
id := rePaymentSourceID.FindStringSubmatch(string(body))

if id == nil {
paymentSourceID = ""
paymentSourceID = "null"
}
if len(id) > 1 {
paymentSourceID = id[2]
Expand Down Expand Up @@ -237,7 +237,7 @@ func isLower(s string) bool {
}
func init() {
ClearCLI()
appversion = "v3.3.0"
appversion = "v3.3.1"

if _, err := os.Stat("tokens.txt"); err == nil {
Tokens, err = readLines("tokens.txt")
Expand Down Expand Up @@ -398,7 +398,7 @@ func loadSniper(wg *sync.WaitGroup, str string, id int) {
▓██ ▀█ ██▒▒██▒▒ ▓██░ ▒░▓██ ░▄█ ▒▒██░ ██▒ ░ ▓██▄ ▒███ ▒██░ ▒████ ░
▓██▒ ▐▌██▒░██░░ ▓██▓ ░ ▒██▀▀█▄ ▒██ ██░ ▒ ██▒▒▓█ ▄ ▒██░ ░▓█▒ ░
▒██░ ▓██░░██░ ▒██▒ ░ ░██▓ ▒██▒░ ████▓▒░ ██▓ ▒██████▒▒░▒████▒░██████▒░▒█░
░ ▒░ ▒ ▒ ░▓ ▒ ░░ ░ ▒▓ ░▒▓░░ ▒░▒░▒░ ▒▓▒ ▒ ▒▓▒ ▒ ░░░ ▒░ ░░ ▒░▓v3.3.0
░ ▒░ ▒ ▒ ░▓ ▒ ░░ ░ ▒▓ ░▒▓░░ ▒░▒░▒░ ▒▓▒ ▒ ▒▓▒ ▒ ░░░ ▒░ ░░ ▒░▓v3.3.1
░ ░░ ░ ▒░ ▒ ░ ░ ░▒ ░ ▒░ ░ ▒ ▒░ ░▒ ░ ░▒ ░ ░ ░ ░ ░░ ░ ▒ ░ ░
░ ░ ░ ▒ ░ ░ ░░ ░ ░ ░ ░ ▒ ░ ░ ░ ░ ░ ░ ░ ░ ░
░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░
Expand Down Expand Up @@ -595,19 +595,16 @@ func (e *Thread) MessageCreate(s *discordgo.Session, m *discordgo.MessageCreate)
_, _ = higreen.Print(code[2])
_, _ = higreen.Println("...")

payload := map[string]interface{}{"channel_id": m.ChannelID, "payment_source_id": paymentSourceID}
byts, _ := json.Marshal(payload)

startT = time.Now()
var strRequestURI = []byte("https://discordapp.com/api/v8/entitlements/gift-codes/" + code[2] + "/redeem")
req := fasthttp.AcquireRequest()
req.Header.SetContentType("application/json")
req.Header.Set("Authorization", Token)
req.Header.SetUserAgent("Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) discord/0.0.308 Chrome/78.0.3904.130 Electron/7.3.2 Safari/537.36")
req.SetBody(byts)
req.Header.SetMethodBytes(strPost)
req.Header.Set("authorization", Token)
req.SetBody([]byte(`{"channel_id":` + m.ChannelID + `,"payment_source_id": ` + paymentSourceID + `}`))
req.Header.SetMethodBytes([]byte("POST"))
req.SetRequestURIBytes(strRequestURI)
res := fasthttp.AcquireResponse()

//endT = time.Since(startT)

if err := fasthttp.Do(req, res); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.3.0
v3.3.1

0 comments on commit c7bdc3d

Please sign in to comment.