mirror of
https://github.com/Schmenn/discord-exploits.git
synced 2024-12-22 20:05:34 +00:00
e840303ea6
[-]skipArgs as it does not work [^] moved smaller functions to /modules [+] zerovideo mode [+] negativevideo mode [^] made virusimage prettier
20 lines
365 B
Go
20 lines
365 B
Go
package modules
|
|
|
|
import(
|
|
"math/rand"
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
// CreateName generates a random file name
|
|
func CreateName(extension string) string {
|
|
charset := "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
|
|
b := make([]byte, 6)
|
|
rand.Seed(time.Now().Unix())
|
|
for i := range b {
|
|
b[i] = charset[rand.Intn(len(charset))]
|
|
}
|
|
return string(b)+"."+extension
|
|
}
|