From 6a227f605ee7d6c3cee6feff8c515ca9b9a54c6f Mon Sep 17 00:00:00 2001 From: xbjfk Date: Wed, 21 Apr 2021 22:32:11 +1200 Subject: [PATCH 1/2] Do not lowercase the input file (Fixes Linux support) (#13) Linux path names are almost always case sensitive, so this PR removes forcing lowercase file names. --- exploits.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/exploits.go b/exploits.go index 42e20df..5d4f8a6 100644 --- a/exploits.go +++ b/exploits.go @@ -59,8 +59,6 @@ func handleArgs(args []string, quiet *bool) { } func initCommand(inputFile string, mode string) { - inputFile = strings.ToLower(inputFile) - if strings.HasSuffix(inputFile, ".webm") { switch mode { From c4ed04b7e98cc104b84bc349655a927324cbe80b Mon Sep 17 00:00:00 2001 From: Kaden5480 Date: Wed, 21 Apr 2021 17:51:26 +0100 Subject: [PATCH 2/2] reordered ffmpeg params to fix issue #16 (#17) --- exploits/crash-video.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exploits/crash-video.go b/exploits/crash-video.go index 87949c9..51fd53b 100644 --- a/exploits/crash-video.go +++ b/exploits/crash-video.go @@ -22,7 +22,7 @@ func RunCrashVideoTask(filename string) { err = os.WriteFile(binname, bin, 0777) modules.Check(err) modules.CheckForFFmpeg() - cmd := exec.Command("ffmpeg", "-f", "concat", "-i", txtname, "-y", "-safe", "0", "-c", "copy", outname) + cmd := exec.Command("ffmpeg", "-f", "concat", "-safe", "0", "-i", txtname, "-y", "-c", "copy", outname) err = cmd.Run() modules.Check(err)