From 686187a008023edb14d4b4dd7fa0f628990b9db4 Mon Sep 17 00:00:00 2001 From: Alex Childs Date: Tue, 22 Oct 2019 14:48:25 -0500 Subject: [PATCH] gfuzz: update to 0.2 added gfuzz name patches --- srcpkgs/gfuzz/patches/helper-gofuzz.patch | 28 +++++++++++++++++++++++ srcpkgs/gfuzz/patches/main-gofuzz.patch | 11 +++++++++ srcpkgs/gfuzz/template | 4 ++-- 3 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/gfuzz/patches/helper-gofuzz.patch create mode 100644 srcpkgs/gfuzz/patches/main-gofuzz.patch diff --git a/srcpkgs/gfuzz/patches/helper-gofuzz.patch b/srcpkgs/gfuzz/patches/helper-gofuzz.patch new file mode 100644 index 00000000000..83c8d775753 --- /dev/null +++ b/srcpkgs/gfuzz/patches/helper-gofuzz.patch @@ -0,0 +1,28 @@ +--- libgrequest/helper.go ++++ libgrequest/helper.go +@@ -123,9 +123,9 @@ + + // PrintHelp : cli help info + func PrintHelp() { +- fmt.Printf("[+] Author: brax (https://github.com/braaaax/gofuzz)\n") +- fmt.Printf("\nUsage: gofuzz [options] \n") +- fmt.Printf("Keyword: FUZZ, ..., FUZnZ wherever you put these keywords gofuzz will replace them with the values of the specified payload.\n\n") ++ fmt.Printf("[+] Author: brax (https://github.com/braaaax/gfuzz)\n") ++ fmt.Printf("\nUsage: gfuzz [options] \n") ++ fmt.Printf("Keyword: FUZZ, ..., FUZnZ wherever you put these keywords gfuzz will replace them with the values of the specified payload.\n\n") + fmt.Printf("Options:\n") + fmt.Println("-h/--help : This help.") + fmt.Println("-w wordlist : Specify a wordlist file (alias for -z file,wordlist).") +@@ -146,8 +146,8 @@ + fmt.Println("-k : Strict TLS connections (skip verify=false).") + fmt.Println("-q : No output.") + fmt.Printf("\n") +- fmt.Println("Examples: gofuzz -w users.txt -w pass.txt --sc 200 http://www.site.com/log.asp?user=FUZZ&pass=FUZ2Z") +- fmt.Println(" gofuzz -z file,default/common.txt -z list,-.php http://somesite.com/FUZZFUZ2Z") +- fmt.Println(" gofuzz -t 32 -w somelist.txt https://someTLSsite.com/FUZZ") +- fmt.Println(" gofuzz --print-body --sc 200 --post-form \"name=FUZZ\" -z file,somelist.txt http://somesite.com/form") ++ fmt.Println("Examples: gfuzz -w users.txt -w pass.txt --sc 200 http://www.site.com/log.asp?user=FUZZ&pass=FUZ2Z") ++ fmt.Println(" gfuzz -z file,default/common.txt -z list,-.php http://somesite.com/FUZZFUZ2Z") ++ fmt.Println(" gfuzz -t 32 -w somelist.txt https://someTLSsite.com/FUZZ") ++ fmt.Println(" gfuzz --print-body --sc 200 --post-form \"name=FUZZ\" -z file,somelist.txt http://somesite.com/form") + } diff --git a/srcpkgs/gfuzz/patches/main-gofuzz.patch b/srcpkgs/gfuzz/patches/main-gofuzz.patch new file mode 100644 index 00000000000..0db31b1b0ab --- /dev/null +++ b/srcpkgs/gfuzz/patches/main-gofuzz.patch @@ -0,0 +1,11 @@ +--- main.go ++++ main.go +@@ -7,7 +7,7 @@ + "strings" + "time" + +- "github.com/braaaax/gofuzz/libgrequest" ++ "github.com/braaaax/gfuzz/libgrequest" + ) + + // ParseCmdLine : eval cmdline arguments diff --git a/srcpkgs/gfuzz/template b/srcpkgs/gfuzz/template index 6df0db9c47e..a51ea912896 100644 --- a/srcpkgs/gfuzz/template +++ b/srcpkgs/gfuzz/template @@ -1,6 +1,6 @@ # Template file for 'gfuzz' pkgname=gfuzz -version=0.1 +version=0.2 revision=1 wrksrc="gfuzz-${version}" build_style=go @@ -11,4 +11,4 @@ maintainer="Alex Childs " license="Apache-2.0" homepage="https://github.com/braaaax/gfuzz" distfiles="https://github.com/braaaax/gfuzz/archive/v${version}.tar.gz" -checksum=9e5b371d4b571fa9970e7678090f010d9adf23eb4f0f3c90da9b64b452f99e63 +checksum=054163243181db528715bf904ee7656aa0a12e9feb120c8afbfd43bd6504ccd1