mirror of
https://github.com/Schmenn/discord-exploits.git
synced 2024-12-22 21:45: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
|
*.png
|
||||||
|
|
||||||
*.bat
|
*.bat
|
||||||
|
|
||||||
|
discord-exploits
|
||||||
|
|
||||||
|
discord-exploits-linux-32bit
|
||||||
|
|
||||||
|
discord-exploits-linux-64bit
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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)))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -15,5 +15,4 @@ func Welcome() {
|
||||||
fmt.Println(" \\___/_/\\_\\ .__/|_|\\___/|_|\\__|___/")
|
fmt.Println(" \\___/_/\\_\\ .__/|_|\\___/|_|\\__|___/")
|
||||||
fmt.Println(" | |")
|
fmt.Println(" | |")
|
||||||
fmt.Println(" |_|")
|
fmt.Println(" |_|")
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue