From 541ab73e1f1881940bb1f8995293123bc7a0446b Mon Sep 17 00:00:00 2001
From: vysion <77179954+vysiondev@users.noreply.github.com>
Date: Wed, 19 May 2021 00:29:40 -0700
Subject: [PATCH] ran gofmt to tidy code
---
.idea/.gitignore | 8 ++++++++
.idea/discord-exploits.iml | 8 ++++++++
.idea/modules.xml | 8 ++++++++
.idea/vcs.xml | 6 ++++++
exploits/expanding-video.go | 14 +++++++-------
exploits/negative-video.go | 14 +++++++-------
exploits/virus-image.go | 2 +-
exploits/zero-video.go | 16 ++++++++--------
modules/ffmpeg-check.go | 2 +-
modules/transcode.go | 2 +-
10 files changed, 55 insertions(+), 25 deletions(-)
create mode 100644 .idea/.gitignore
create mode 100644 .idea/discord-exploits.iml
create mode 100644 .idea/modules.xml
create mode 100644 .idea/vcs.xml
diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..73f69e0
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
+# Editor-based HTTP Client requests
+/httpRequests/
diff --git a/.idea/discord-exploits.iml b/.idea/discord-exploits.iml
new file mode 100644
index 0000000..c956989
--- /dev/null
+++ b/.idea/discord-exploits.iml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..40a3b49
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..94a25f7
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/exploits/expanding-video.go b/exploits/expanding-video.go
index 36ef2a7..1072abc 100644
--- a/exploits/expanding-video.go
+++ b/exploits/expanding-video.go
@@ -18,13 +18,13 @@ func RunExpandingVideoTask(fileName string) {
return
}
- data[index+3] = 63
- data[index+4] = 240
- data[index+5] = 0
- data[index+6] = 0
- data[index+7] = 0
- data[index+8] = 0
- data[index+9] = 0
+ data[index+3] = 63
+ data[index+4] = 240
+ data[index+5] = 0
+ data[index+6] = 0
+ data[index+7] = 0
+ data[index+8] = 0
+ data[index+9] = 0
data[index+10] = 0
name := modules.CreateName("webm")
diff --git a/exploits/negative-video.go b/exploits/negative-video.go
index 5867326..2a57eb2 100644
--- a/exploits/negative-video.go
+++ b/exploits/negative-video.go
@@ -19,13 +19,13 @@ func RunNegativeVideoTask(fileName string) {
return
}
- data[index+3] = 66
- data[index+4] = 255
- data[index+5] = 176
- data[index+6] = 96
- data[index+7] = 0
- data[index+8] = 0
- data[index+9] = 0
+ data[index+3] = 66
+ data[index+4] = 255
+ data[index+5] = 176
+ data[index+6] = 96
+ data[index+7] = 0
+ data[index+8] = 0
+ data[index+9] = 0
data[index+10] = 0
name := modules.CreateName("webm")
diff --git a/exploits/virus-image.go b/exploits/virus-image.go
index bd05608..0db3ee9 100644
--- a/exploits/virus-image.go
+++ b/exploits/virus-image.go
@@ -12,7 +12,7 @@ var (
vpng1 []byte
//go:embed virus2.txt
vpng2 []byte
- vpng = append(vpng1, vpng2...)
+ vpng = append(vpng1, vpng2...)
)
// RunVirusImageTask edits file
diff --git a/exploits/zero-video.go b/exploits/zero-video.go
index 96f1c0f..556eacc 100644
--- a/exploits/zero-video.go
+++ b/exploits/zero-video.go
@@ -19,18 +19,18 @@ func RunZeroVideoTask(fileName string) {
return
}
- data[index+3] = 0
- data[index+4] = 0
- data[index+5] = 0
- data[index+6] = 0
- data[index+7] = 0
- data[index+8] = 0
- data[index+9] = 0
+ data[index+3] = 0
+ data[index+4] = 0
+ data[index+5] = 0
+ data[index+6] = 0
+ data[index+7] = 0
+ data[index+8] = 0
+ data[index+9] = 0
data[index+10] = 0
name := modules.CreateName("webm")
- fmt.Println("Saved video to: "+name)
+ fmt.Println("Saved video to: " + name)
err = os.WriteFile(name, data, os.FileMode(0777))
if err != nil {
diff --git a/modules/ffmpeg-check.go b/modules/ffmpeg-check.go
index fe0f9e7..2be4aa7 100644
--- a/modules/ffmpeg-check.go
+++ b/modules/ffmpeg-check.go
@@ -7,7 +7,7 @@ import (
)
// CheckForFFmpeg looks for ffmpeg in the path
-func CheckForFFmpeg() (string) {
+func CheckForFFmpeg() string {
path, err := exec.LookPath("ffmpeg")
if err != nil {
diff --git a/modules/transcode.go b/modules/transcode.go
index deae91c..d200571 100644
--- a/modules/transcode.go
+++ b/modules/transcode.go
@@ -16,7 +16,7 @@ func Transcode(input string, to string) string {
Check(err)
fmt.Println("temporarily saving transcoded file to " + output)
-
+
return output
}