mirror of
https://github.com/Schmenn/discord-exploits.git
synced 2024-12-22 20:05:34 +00:00
ran gofmt to tidy code
This commit is contained in:
parent
f5f7106c02
commit
541ab73e1f
8
.idea/.gitignore
vendored
Normal file
8
.idea/.gitignore
vendored
Normal file
|
@ -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/
|
8
.idea/discord-exploits.iml
Normal file
8
.idea/discord-exploits.iml
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
8
.idea/modules.xml
Normal file
8
.idea/modules.xml
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/discord-exploits.iml" filepath="$PROJECT_DIR$/.idea/discord-exploits.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
6
.idea/vcs.xml
Normal file
6
.idea/vcs.xml
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
|
@ -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")
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -12,7 +12,7 @@ var (
|
|||
vpng1 []byte
|
||||
//go:embed virus2.txt
|
||||
vpng2 []byte
|
||||
vpng = append(vpng1, vpng2...)
|
||||
vpng = append(vpng1, vpng2...)
|
||||
)
|
||||
|
||||
// RunVirusImageTask edits file
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -16,7 +16,7 @@ func Transcode(input string, to string) string {
|
|||
Check(err)
|
||||
|
||||
fmt.Println("temporarily saving transcoded file to " + output)
|
||||
|
||||
|
||||
return output
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue