Skip to content

Commit

Permalink
DMDGO v1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
V4NSH4J committed Jul 30, 2022
1 parent 5e83bcf commit e498a9c
Show file tree
Hide file tree
Showing 22 changed files with 4,862 additions and 910 deletions.
6 changes: 2 additions & 4 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ proxy_settings:
proxy_from_file: true
proxy_for_captcha: true
use_proxy_for_gateway: false
proxy_protocol: "http"
timeout: 60

scraper_settings:
Expand All @@ -34,18 +33,17 @@ scraper_settings:

captcha_settings:
captcha_api_key: ""
captcha_api: "invisifox.com"
captcha_api: ""
max_captcha_wait: 120
max_captcha_retry_dm: 0
max_captcha_retry_invite: 3

other_settings:
disable_keep_alives: false
constant_cookies: false
censor_token: true
censor_token: false
logs: false
gateway_status: 4
cfbm: false
x_super_properties: ""
useragent: ""

Expand Down
36 changes: 10 additions & 26 deletions discord/dm_react.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ import (
"encoding/json"
"fmt"
"math/rand"
"net/http"
"os"
"os/exec"
"path"
"path/filepath"
"strings"
"time"

"github.com/Danny-Dasilva/CycleTLS/cycletls"
"github.com/V4NSH4J/discord-mass-dm-GO/instance"
"github.com/V4NSH4J/discord-mass-dm-GO/utilities"
)
Expand Down Expand Up @@ -242,17 +242,13 @@ func LaunchDMReact() {
if cfg.ProxySettings.ProxyFromFile {
proxy = proxies[rand.Intn(len(proxies))]
observerInstance.Proxy = proxy
observerInstance.ProxyProt = "http://" + proxy
if !cfg.ProxySettings.GatewayProxy {
proxy = ""
}
observerInstance.GatewayProxy = proxy
}
client, err := instance.InitClient(proxy, cfg)
if err != nil {
utilities.LogWarn("Error while initializing client: %s using default client for observer", err)
client = http.DefaultClient
}
observerInstance.Client = client
observerInstance.Client = cycletls.Init()
observerInstance.Config = cfg
if cfg.DMonReact.ServerID != "" {
r, err := observerInstance.ServerCheck(cfg.DMonReact.ServerID)
Expand Down Expand Up @@ -490,21 +486,21 @@ Token:
}
continue Token
} else {
if r.StatusCode == 204 || r.StatusCode == 200 {
if r.Status == 204 || r.Status == 200 {
utilities.LogSuccess("%v Avatar changed successfully", instance.CensorToken())
if cfg.OtherSettings.Logs {
utilities.WriteLinesPath(logsFile, fmt.Sprintf(`[%v] Token %v changed Avatar to %v`, time.Now().Format("2006-01-02 15:04:05"), instance.CensorToken(), p))
}
instance.ChangedAvatar = true
} else {
utilities.LogErr("%v Error while changing avatar: %v", instance.CensorToken(), r.StatusCode)
utilities.LogErr("%v Error while changing avatar: %v", instance.CensorToken(), r.Status)
if cfg.DMonReact.RotateTokens {
go func() {
tokenPool <- instance
}()
}
if cfg.OtherSettings.Logs {
utilities.WriteLinesPath(logsFile, fmt.Sprintf(`[%v] Token %v failed to change avatar. %v`, time.Now().Format("2006-01-02 15:04:05"), instance.CensorToken(), r.StatusCode))
utilities.WriteLinesPath(logsFile, fmt.Sprintf(`[%v] Token %v failed to change avatar. %v`, time.Now().Format("2006-01-02 15:04:05"), instance.CensorToken(), r.Status))
}
continue Token
}
Expand All @@ -526,34 +522,22 @@ Token:
}
continue Token
}
body, err := utilities.ReadBody(r)
if err != nil {
utilities.LogErr("%v Error while reading body: %v", instance.CensorToken(), err)
if cfg.DMonReact.RotateTokens {
go func() {
tokenPool <- instance
}()
}
if cfg.OtherSettings.Logs {
utilities.WriteLinesPath(logsFile, fmt.Sprintf(`[%v] Token %v failed to change name. Error %v`, time.Now().Format("2006-01-02 15:04:05"), instance.CensorToken(), err))
}
continue Token
}
if r.StatusCode == 200 || r.StatusCode == 204 {
body := r.Body
if r.Status == 200 || r.Status == 204 {
utilities.LogSuccess("%v Changed name successfully", instance.CensorToken())
if cfg.OtherSettings.Logs {
utilities.WriteLinesPath(logsFile, fmt.Sprintf(`[%v] Token %v name changed to %v`, time.Now().Format("2006-01-02 15:04:05"), instance.CensorToken(), p))
}
instance.ChangedName = true
} else {
utilities.LogErr("%v Error while changing name: %v %v", instance.CensorToken(), r.StatusCode, string(body))
utilities.LogErr("%v Error while changing name: %v %v", instance.CensorToken(), r.Status, string(body))
if cfg.DMonReact.RotateTokens {
go func() {
tokenPool <- instance
}()
}
if cfg.OtherSettings.Logs {
utilities.WriteLinesPath(logsFile, fmt.Sprintf(`[%v] Token %v failed to change name. %v %v`, time.Now().Format("2006-01-02 15:04:05"), instance.CensorToken(), r.StatusCode, string(body)))
utilities.WriteLinesPath(logsFile, fmt.Sprintf(`[%v] Token %v failed to change name. %v %v`, time.Now().Format("2006-01-02 15:04:05"), instance.CensorToken(), r.Status, string(body)))
}
continue Token
}
Expand Down
3 changes: 1 addition & 2 deletions discord/friend_spammer.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,12 @@ func LaunchFriendSpammer() {
time.Sleep(time.Duration(delay) * time.Second)
continue
}
if resp.StatusCode == 200 || resp.StatusCode == 204 {
if resp.Status == 200 || resp.Status == 204 {
utilities.LogInfo("Token %s Successfully friended %s#%s", instances[i].CensorToken(), friend.Username, friend.Discrim)
success++
} else {
utilities.LogFailed("Token %s Invalid Status Code %s while friending %s#%s", instances[i].CensorToken(), resp.Status, friend.Username, friend.Discrim)
}
resp.Body.Close()
time.Sleep(time.Duration(delay) * time.Second)
}

Expand Down
9 changes: 2 additions & 7 deletions discord/mass_dm.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,14 +360,9 @@ func LaunchMassDM() {
utilities.LogErr("Error while sending friend request: %v", err)
continue
}
defer resp.Body.Close()
if resp.StatusCode != 204 && err != nil {
if resp.Status != 204 && err != nil {
if !errors.Is(err, io.ErrUnexpectedEOF) {
body, err := utilities.ReadBody(*resp)
if err != nil {
utilities.LogErr("Error while reading body: %v", err)
continue
}
body := resp.Body
utilities.LogFailed("Error while sending friend request: %v", body)
continue
}
Expand Down
31 changes: 9 additions & 22 deletions discord/profile_changer.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,8 @@ func LaunchNameChanger() {
FailedCount++
return
}
body, err := utilities.ReadBody(r)
if err != nil {
utilities.LogErr("Token %v Error while reading body: %v", instances[i].CensorToken(), err)
FailedCount++
return
}
if r.StatusCode == 200 || r.StatusCode == 204 {
body := r.Body
if r.Status == 200 || r.Status == 204 {
utilities.LogSuccess("Token %v Name changed successfully", instances[i].CensorToken())
SuccessCount++
} else {
Expand Down Expand Up @@ -175,11 +170,11 @@ func LaunchAvatarChanger() {
utilities.LogFailed("Token %v Error while changing avatar: %v", instances[i].CensorToken(), err)
FailedCount++
} else {
if r.StatusCode == 204 || r.StatusCode == 200 {
if r.Status == 204 || r.Status == 200 {
utilities.LogSuccess("Token %v Avatar changed successfully", instances[i].CensorToken())
SuccessCount++
} else {
utilities.LogFailed("Token %v Error while changing avatar: %v", instances[i].CensorToken(), r.StatusCode)
utilities.LogFailed("Token %v Error while changing avatar: %v", instances[i].CensorToken(), r.Status)
FailedCount++
}
}
Expand Down Expand Up @@ -370,7 +365,7 @@ func LaunchTokenChanger() {
if err != nil {
utilities.LogFailed("Token %v Error while changing token: %v", instances[i].CensorToken(), err)
FailedCount++
err := utilities.WriteLine("input/changed_tokens.txt", fmt.Sprintf(`%s:%s:%s`, instances[i].Email, instances[i].Password, instances[i].CensorToken()))
err := utilities.WriteLine("input/changed_tokens.txt", fmt.Sprintf(`%s:%s:%s`, instances[i].Email, instances[i].Password, instances[i].Token))
if err != nil {
utilities.LogErr("Error while writing to file: %v", err)
}
Expand Down Expand Up @@ -435,11 +430,8 @@ func LaunchServerNicknameChanger() {
FailedCount++
return
}
body, err := utilities.ReadBody(r)
if err != nil {
fmt.Println(err)
}
if r.StatusCode == 200 || r.StatusCode == 204 {
body := r.Body
if r.Status == 200 || r.Status == 204 {
utilities.LogSuccess("Token %v Changed nickname successfully", instances[i].CensorToken())
SuccessCount++
} else {
Expand Down Expand Up @@ -494,13 +486,8 @@ func LaunchFriendRequestSpammer() {
FailedCount++
return
}
body, err := utilities.ReadBody(*r)
if err != nil {
utilities.LogErr("Error while reading body: %v", err)
FailedCount++
return
}
if r.StatusCode == 200 || r.StatusCode == 204 {
body := r.Body
if r.Status == 200 || r.Status == 204 {
utilities.LogSuccess("Token %v Sent friend request successfully", instances[i].CensorToken())
SuccessCount++
} else {
Expand Down
25 changes: 19 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,36 @@ require (
github.com/chromedp/cdproto v0.0.0-20220428002153-285dfb42699c
github.com/chromedp/chromedp v0.8.1
github.com/gookit/color v1.5.0
github.com/gorilla/websocket v1.4.2 // direct
github.com/gorilla/websocket v1.5.0 // direct
github.com/zenthangplus/goccm v0.0.0-20211005163543-2f2e522aca15
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
)

require (
github.com/Masterminds/semver v1.5.0
github.com/chromedp/sysutil v1.0.0 // indirect
github.com/corpix/uarand v0.2.0
github.com/gobwas/httphead v0.1.0 // indirect
github.com/gobwas/pool v0.2.1 // indirect
github.com/gobwas/ws v1.1.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.9 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/mssola/user_agent v0.5.3
github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 // indirect
golang.org/x/sys v0.0.0-20220422013727-9388b58f7150 // indirect
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f // indirect
)

require (
golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e // indirect
golang.org/x/net v0.0.0-20220726230323-06994584191e // indirect
)

require github.com/Danny-Dasilva/CycleTLS/cycletls v0.0.0-20220620102923-c84d740b4757

require (
github.com/Danny-Dasilva/fhttp v0.0.0-20220524230104-f801520157d6 // indirect
github.com/Danny-Dasilva/utls v0.0.0-20220604023528-30cb107b834e // indirect
github.com/dsnet/compress v0.0.1 // indirect
github.com/stretchr/testify v1.7.1 // indirect
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/tools v0.1.12 // indirect
)
Loading

0 comments on commit e498a9c

Please sign in to comment.