Skip to content

Commit 64de983

Browse files
committed
Use proxy for azure user enumeration
1 parent f062f61 commit 64de983

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/modules/azure/userEnum.go

+8-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package azure
33
import (
44
"GoMapEnum/src/utils"
55
"bytes"
6+
"crypto/tls"
67
"encoding/xml"
78
"fmt"
89
"io/ioutil"
@@ -56,6 +57,13 @@ func UserEnum(optionsInterface *interface{}, username string) bool {
5657
options.Log.Error("Only email format is supported, skipping " + username)
5758
return false
5859
}
60+
client := &http.Client{
61+
62+
Transport: &http.Transport{
63+
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
64+
Proxy: options.Proxy,
65+
},
66+
}
5967
domain := strings.Split(username, "@")[1]
6068
// Random password for authentication
6169
password := utils.RandomString(10)
@@ -68,7 +76,6 @@ func UserEnum(optionsInterface *interface{}, username string) bool {
6876
dataToSend := fmt.Sprintf(BASE_XML, created, expired, username, password)
6977
url := fmt.Sprintf(AZURE_URL, domain, uuid)
7078
req, _ := http.NewRequest("POST", url, bytes.NewBufferString(dataToSend))
71-
client := &http.Client{}
7279
resp, err := client.Do(req)
7380
if err != nil {
7481
options.Log.Error("Error on response.\n[ERRO] - " + err.Error())

0 commit comments

Comments
 (0)