Skip to content

Commit

Permalink
Merge pull request #21 from CyberRoute/option_dictionary
Browse files Browse the repository at this point in the history
adding option to abstract file of paths
  • Loading branch information
CyberRoute authored Aug 21, 2023
2 parents 83ae7b5 + c68c714 commit 494be9a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 46 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ What does it do?
Usage of /tmp/go-build2863756334/b001/exe/main:
-address string
IP address to bind the web ui server to. (default "127.0.0.1")
-dictionary string
File to use for enumeration. (default "db/apache-list")
-domain string
domain to scan
-shodan string
Expand Down
11 changes: 6 additions & 5 deletions cmd/bruter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ var app config.AppConfig
var session *scs.SessionManager

var (
Domain = flag.String("domain", "", "domain to scan")
Apikey = flag.String("shodan", "", "shadan api key")
Address = flag.String("address", "127.0.0.1", "IP address to bind the web ui server to.")
Verbose = flag.Bool("verbose", false, "Verbosity")
Domain = flag.String("domain", "", "domain to scan")
Apikey = flag.String("shodan", "", "shadan api key")
Address = flag.String("address", "127.0.0.1", "IP address to bind the web ui server to.")
Dictionary = flag.String("dictionary", "db/apache-list", "File to use for enumeration.")
Verbose = flag.Bool("verbose", false, "Verbosity")
)

func init() {
Expand Down Expand Up @@ -94,7 +95,7 @@ func main() {
}()

buffer := make([]byte, 500000) // 500K(almost)
file, err := os.Open("db/apache-list")
file, err := os.Open(*Dictionary)
if err != nil {
log.Fatal().Err(err).Msg("")
}
Expand Down
41 changes: 0 additions & 41 deletions db/dict_short.txt
Original file line number Diff line number Diff line change
@@ -1,44 +1,3 @@
/!.gitignore
/!.htaccess
/!.htpasswd
/%2e%2e//google.com
/%2e%2e;/test
/%3f/
/%C0%AE%C0%AE%C0%AF
/%EXT%
/%EXT%.7z
/%EXT%.backup
/%EXT%.bak
/%EXT%.cgi
/%EXT%.conf
/%EXT%.copy
/%EXT%.gz
/%EXT%.htaccess
/%EXT%.js
/%EXT%.json
/%EXT%.log
/%EXT%.old
/%EXT%.original
/%EXT%.php
/%EXT%.py
/%EXT%.rar
/%EXT%.rb
/%EXT%.sql
/%EXT%.swp
/%EXT%.tar
/%EXT%.tgz
/%EXT%.tmp
/%EXT%.txt
/%EXT%.xml
/%EXT%.zip
/%ff
/+CSCOE+/logon.html
/+CSCOE+/session_password.html
/+CSCOT+/oem
/+CSCOT+/oem-customization?app=AnyConnect&type=oem&platform=..&resource-type=..&name=%2bCSCOE%2b/portal_inc.lua
/+CSCOT+/translation
/+CSCOT+/translation-table?type=mst&textdomain=/%2bCSCOE%2b/portal_inc.lua&default-language&lang=../
/.%2e/%2e%2e/%2e%2e/%2e%2e/etc/passwd
/..;/
/.0
/.7z
Expand Down

0 comments on commit 494be9a

Please sign in to comment.