Skip to content

Commit

Permalink
dll file finding. thanks @talha
Browse files Browse the repository at this point in the history
  • Loading branch information
musana committed Nov 20, 2022
1 parent 0dc99dc commit ffd9b6c
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions fuzzuli.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
var urls, paths, methods []string

var options *Options
var extensions = []string{".rar", ".zip", ".tar.gz", ".tar", ".gz", ".jar", ".7z", ".bz2", ".sql", ".backup", ".war", ".bak"}
var extensions = []string{".rar", ".zip", ".tar.gz", ".tar", ".gz", ".jar", ".7z", ".bz2", ".sql", ".backup", ".war", ".bak", ".dll"}

var mime_types = []string{
"application/octet-stream",
Expand All @@ -36,18 +36,17 @@ var mime_types = []string{
"application/x-tar",
"application/zip",
"application/x-7z-compressed",
"application/x-msdownload",
"application/x-msdos-program",
}

var bar = progressbar.Default(-1, "request count")

func main() {

options = ParseOptions()
banner()

if options.banner {
banner()
os.Exit(0)
}
options = ParseOptions()

if options.file != "" {
readFromFile()
Expand Down Expand Up @@ -341,7 +340,7 @@ func headRequest(domain string, word string) {
content_type := resp.Header["Content-Type"][0]
is_found := contains(mime_types, content_type)
if content_length > options.min_content_length && is_found && resp.StatusCode == options.status_code {
info := fmt.Sprintf("[+] Possible sensitive file was found. URL: [%s] CT: [%s] CL: [%d] SC: [%d]", url, content_type, content_length, resp.StatusCode)
info := fmt.Sprintf("\n[+] Possible sensitive file was found. URL: [%s] CT: [%s] CL: [%d] SC: [%d]", url, content_type, content_length, resp.StatusCode)
fmt.Println(string("\033[32m")+info, string("\033[0m"))
}
}
Expand Down Expand Up @@ -376,7 +375,6 @@ type Options struct {
domain_length int
min_content_length int
version bool
banner bool
print bool
help bool
}
Expand All @@ -392,8 +390,6 @@ func ParseOptions() *Options {
flagSet.StringVar(&options.paths, "pt", "/", "paths. separate with commas to use multiple paths. e.g. /,/db/,/old/"),
flagSet.BoolVar(&options.print, "p", false, "print urls that is sent request"),
flagSet.BoolVar(&options.version, "v", false, "print version"),
flagSet.BoolVar(&options.help, "help", false, "print this"),
flagSet.BoolVar(&options.banner, "banner", false, "print banner"),
)

createGroup(flagSet, "wordlist options", "WORDLIST OPTIONS",
Expand Down Expand Up @@ -425,7 +421,7 @@ func ParseOptions() *Options {

_ = flagSet.Parse()

Version := "v1.1.1"
Version := "v1.1.2"
if options.version {
fmt.Println("Current Version:", Version)
os.Exit(0)
Expand All @@ -451,6 +447,6 @@ func banner() {
|_| \__,_| /___| /___| \__,_| |_| |_|
musana.net | @musana
-------------------------------------------- `)
--------------------------------------------`)

}

0 comments on commit ffd9b6c

Please sign in to comment.