mirror of
https://github.com/Schmenn/discord-exploits.git
synced 2024-12-22 15:25:27 +00:00
made modes shorter
This commit is contained in:
parent
661d499d7d
commit
4a44c592f7
13
exploits.go
13
exploits.go
|
@ -21,7 +21,6 @@ func main() {
|
||||||
//fmt.Println(quiet)
|
//fmt.Println(quiet)
|
||||||
if !quiet {
|
if !quiet {
|
||||||
modules.Welcome()
|
modules.Welcome()
|
||||||
//exploits.RunExpandingVideoTask()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println("input file: " + inputFile)
|
fmt.Println("input file: " + inputFile)
|
||||||
|
@ -39,9 +38,7 @@ func handleArgs(args []string, quiet *bool) {
|
||||||
for i, s := range args {
|
for i, s := range args {
|
||||||
switch s {
|
switch s {
|
||||||
// quiet
|
// quiet
|
||||||
case "-q":
|
case "-q", "--quiet":
|
||||||
*quiet = true
|
|
||||||
case "--quiet":
|
|
||||||
*quiet = true
|
*quiet = true
|
||||||
|
|
||||||
// Input File
|
// Input File
|
||||||
|
@ -70,7 +67,7 @@ func handleArgs(args []string, quiet *bool) {
|
||||||
func initCommand(inputFile string, mode string) {
|
func initCommand(inputFile string, mode string) {
|
||||||
inputFile = strings.ToLower(inputFile)
|
inputFile = strings.ToLower(inputFile)
|
||||||
switch strings.ToLower(mode) {
|
switch strings.ToLower(mode) {
|
||||||
case "expandingvideo":
|
case "e":
|
||||||
if strings.HasSuffix(inputFile, ".webm") {
|
if strings.HasSuffix(inputFile, ".webm") {
|
||||||
fmt.Println("editing video.")
|
fmt.Println("editing video.")
|
||||||
exploits.RunExpandingVideoTask(inputFile)
|
exploits.RunExpandingVideoTask(inputFile)
|
||||||
|
@ -78,7 +75,7 @@ func initCommand(inputFile string, mode string) {
|
||||||
} else {
|
} else {
|
||||||
fmt.Println("File is not a webm, check -h")
|
fmt.Println("File is not a webm, check -h")
|
||||||
}
|
}
|
||||||
case "negativevideo":
|
case "n":
|
||||||
if strings.HasSuffix(inputFile, ".webm") {
|
if strings.HasSuffix(inputFile, ".webm") {
|
||||||
fmt.Println("editing video.")
|
fmt.Println("editing video.")
|
||||||
exploits.RunNegativeVideoTask(inputFile)
|
exploits.RunNegativeVideoTask(inputFile)
|
||||||
|
@ -86,7 +83,7 @@ func initCommand(inputFile string, mode string) {
|
||||||
} else {
|
} else {
|
||||||
fmt.Println("File is not a webm, check -h")
|
fmt.Println("File is not a webm, check -h")
|
||||||
}
|
}
|
||||||
case "zerovideo":
|
case "0", "z":
|
||||||
if strings.HasSuffix(inputFile, ".webm") {
|
if strings.HasSuffix(inputFile, ".webm") {
|
||||||
fmt.Println("editing video.")
|
fmt.Println("editing video.")
|
||||||
exploits.RunZeroVideoTask(inputFile)
|
exploits.RunZeroVideoTask(inputFile)
|
||||||
|
@ -94,7 +91,7 @@ func initCommand(inputFile string, mode string) {
|
||||||
} else {
|
} else {
|
||||||
fmt.Println("File is not a webm, check -h")
|
fmt.Println("File is not a webm, check -h")
|
||||||
}
|
}
|
||||||
case "virusimage":
|
case "v":
|
||||||
if strings.HasSuffix(inputFile, ".png") {
|
if strings.HasSuffix(inputFile, ".png") {
|
||||||
fmt.Println("editing photo.")
|
fmt.Println("editing photo.")
|
||||||
exploits.RunVirusImageTask(inputFile)
|
exploits.RunVirusImageTask(inputFile)
|
||||||
|
|
|
@ -15,9 +15,9 @@ func Help(progName string) {
|
||||||
fmt.Println("")
|
fmt.Println("")
|
||||||
fmt.Println("modes:")
|
fmt.Println("modes:")
|
||||||
fmt.Println(" video:")
|
fmt.Println(" video:")
|
||||||
fmt.Println(" expandingvideo takes input video (.webm) and edits it so discord will keep making it longer")
|
fmt.Println(" e takes input video (.webm) and edits it so discord will keep making it longer")
|
||||||
fmt.Println(" negativevideo takes input video (.webm) and edits it so discord will think it has got a huge negative duration")
|
fmt.Println(" n takes input video (.webm) and edits it so discord will think it has got a huge negative duration")
|
||||||
fmt.Println(" zerovideo takes input video (.webm) and edits it so discord will think it has got a 0s duration")
|
fmt.Println(" z, 0 takes input video (.webm) and edits it so discord will think it has got a 0s duration")
|
||||||
fmt.Println(" image:")
|
fmt.Println(" image:")
|
||||||
fmt.Println(" virusimage takes an image (.png) and makes other users' windows defender think it's a virus\n ")
|
fmt.Println(" v takes an image (.png) and makes other users' windows defender think it's a virus\n ")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue