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
*.bat
discord-exploits
discord-exploits-linux-32bit
discord-exploits-linux-64bit

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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