mirror of
https://github.com/Schmenn/discord-exploits.git
synced 2024-12-22 15:55:30 +00:00
cleaned up code
This commit is contained in:
parent
54932c1711
commit
661d499d7d
6
.gitignore
vendored
6
.gitignore
vendored
|
@ -20,3 +20,9 @@
|
|||
*.png
|
||||
|
||||
*.bat
|
||||
|
||||
discord-exploits
|
||||
|
||||
discord-exploits-linux-32bit
|
||||
|
||||
discord-exploits-linux-64bit
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -20,7 +20,6 @@ func RunNegativeVideoTask(fileName string) {
|
|||
return
|
||||
}
|
||||
|
||||
|
||||
data[index+3] = 66
|
||||
data[index+4] = 255
|
||||
data[index+5] = 176
|
||||
|
|
|
@ -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)))
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -3,10 +3,8 @@ package modules
|
|||
import (
|
||||
"math/rand"
|
||||
"time"
|
||||
|
||||
)
|
||||
|
||||
|
||||
// CreateName generates a random file name
|
||||
func CreateName(extension string) string {
|
||||
charset := "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
|
||||
|
|
|
@ -15,5 +15,4 @@ func Welcome() {
|
|||
fmt.Println(" \\___/_/\\_\\ .__/|_|\\___/|_|\\__|___/")
|
||||
fmt.Println(" | |")
|
||||
fmt.Println(" |_|")
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue