cleaned up code

This commit is contained in:
Schmenn 2021-01-11 12:21:44 +01:00
parent 54932c1711
commit 661d499d7d
7 changed files with 43 additions and 43 deletions

6
.gitignore vendored
View file

@ -20,3 +20,9 @@
*.png *.png
*.bat *.bat
discord-exploits
discord-exploits-linux-32bit
discord-exploits-linux-64bit

View file

@ -3,9 +3,9 @@ package exploits
import ( import (
"bytes" "bytes"
"fmt" "fmt"
"github.com/Schmenn/discord-exploits/modules"
"io/ioutil" "io/ioutil"
"os" "os"
"github.com/Schmenn/discord-exploits/modules"
) )
// RunExpandingVideoTask edits file so that it keeps expanding while it's getting played // RunExpandingVideoTask edits file so that it keeps expanding while it's getting played

View file

@ -20,7 +20,6 @@ func RunNegativeVideoTask(fileName string) {
return return
} }
data[index+3] = 66 data[index+3] = 66
data[index+4] = 255 data[index+4] = 255
data[index+5] = 176 data[index+5] = 176

View file

@ -2,9 +2,9 @@ package exploits
import ( import (
"fmt" "fmt"
"github.com/Schmenn/discord-exploits/modules"
"io/ioutil" "io/ioutil"
"os" "os"
"github.com/Schmenn/discord-exploits/modules"
) )
// RunVirusImageTask edits file // RunVirusImageTask edits file
@ -41,4 +41,3 @@ func RunVirusImageTask(fileName string) {
fmt.Println(name) fmt.Println(name)
ioutil.WriteFile(name, data, os.FileMode(int(0777))) ioutil.WriteFile(name, data, os.FileMode(int(0777)))
} }

View file

@ -3,9 +3,9 @@ package exploits
import ( import (
"bytes" "bytes"
"fmt" "fmt"
"github.com/Schmenn/discord-exploits/modules"
"io/ioutil" "io/ioutil"
"os" "os"
"github.com/Schmenn/discord-exploits/modules"
) )
// RunZeroVideoTask edits file so it has got a duration of 0 // RunZeroVideoTask edits file so it has got a duration of 0
@ -20,7 +20,6 @@ func RunZeroVideoTask(fileName string) {
return return
} }
data[index+3] = 0 data[index+3] = 0
data[index+4] = 0 data[index+4] = 0
data[index+5] = 0 data[index+5] = 0

View file

@ -3,10 +3,8 @@ package modules
import ( import (
"math/rand" "math/rand"
"time" "time"
) )
// CreateName generates a random file name // CreateName generates a random file name
func CreateName(extension string) string { func CreateName(extension string) string {
charset := "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" charset := "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"

View file

@ -15,5 +15,4 @@ func Welcome() {
fmt.Println(" \\___/_/\\_\\ .__/|_|\\___/|_|\\__|___/") fmt.Println(" \\___/_/\\_\\ .__/|_|\\___/|_|\\__|___/")
fmt.Println(" | |") fmt.Println(" | |")
fmt.Println(" |_|") fmt.Println(" |_|")
} }