Skip to content

Commit

Permalink
skip admin brute
Browse files Browse the repository at this point in the history
  • Loading branch information
veo committed Dec 30, 2021
1 parent 003a804 commit fa86ac0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions brute/admin_brute.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import (
"strings"
)

var SkipAdminBrute bool

func getinput(inputurl string) (usernamekey string, passwordkey string, loginurl string, ismd5 bool) {
usernamekey = "username"
passwordkey = "password"
Expand Down Expand Up @@ -71,6 +73,9 @@ func getinput(inputurl string) (usernamekey string, passwordkey string, loginurl
}

func Admin_brute(u string) (username string, password string, loginurl string) {
if SkipAdminBrute {
return "", "", ""
}
usernamekey, passwordkey, loginurl, ismd5 := getinput(u)
var (
adminfalsedata = fmt.Sprintf("%s=admin&%s=Qweasd123admin", usernamekey, passwordkey)
Expand Down
4 changes: 4 additions & 0 deletions pkg/naabu/runner/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ type Options struct {
ExcludeCDN bool // Excludes ip of knows CDN ranges for full port scan
Nmap bool // Invoke nmap detailed scan on results
InterfacesList bool // InterfacesList show interfaces list
SkipAdminBrute bool
Proxy string
LocalJndiAddress string
CeyeApi string
CeyeDomain string
Retries int // Retries is the number of retries for the port
Expand Down Expand Up @@ -88,6 +90,8 @@ func ParseOptions() *Options {

createGroup(flagSet, "config", "Configuration",
flagSet.StringVar(&options.Proxy, "proxy", "", "HTTP Proxy, eg (http://127.0.0.1:8080|socks5://127.0.0.1:1080)"),
flagSet.BoolVar(&options.SkipAdminBrute, "skip-admin-brute", false, "Skip brute admin password"),
flagSet.StringVar(&options.LocalJndiAddress, "local-jndi", "", "Local Jndi Server and Port (eg: 8.8.8.8:1234)"),
flagSet.StringVar(&options.CeyeApi, "ceyeapi", "", "ceye.io api key"),
flagSet.StringVar(&options.CeyeDomain, "ceyedomain", "", "ceye.io subdomain"),
flagSet.BoolVar(&options.ScanAllIPS, "scan-all-ips", false, "Scan all the ips"),
Expand Down
2 changes: 1 addition & 1 deletion pocs_go/tomcat/CVE_2020_1938.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func makePayload(host string, port int16) []byte {
ajp_msg_append_int8(&payloadBuffer, 2)
ajp_msg_append_int8(&payloadBuffer, 2)
ajp_msg_append_string(&payloadBuffer, "HTTP/1.1") //protocol
ajp_msg_append_string(&payloadBuffer, "/vscan") //req_uri
ajp_msg_append_string(&payloadBuffer, "/vtest") //req_uri
ajp_msg_append_string(&payloadBuffer, host) //remote_addr (client)
ajp_msg_append_string(&payloadBuffer, "") //remote_host (client)
ajp_msg_append_string(&payloadBuffer, host) //server_name (server)
Expand Down

0 comments on commit fa86ac0

Please sign in to comment.