-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.go
77 lines (62 loc) · 4.31 KB
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
package main
import (
"GiveMeMail/src/api"
"GiveMeMail/src/global"
"flag"
"fmt"
"os"
"strconv"
)
func main(){
//set the params from console
DomainTmp:=flag.String("d","","the domain")
ProxyUrlTmp:=flag.String("p","none","the Url of Proxy")
MethodTmp:=flag.String("method","default","the Url of Proxy")
MatchRuleTmp:=flag.String("r","all","the match rule")
flag.Parse()
global.MatchRule=*MatchRuleTmp
global.ProxyUrl=*ProxyUrlTmp
global.Domain=*DomainTmp
global.Method=*MethodTmp
Domain:=global.Domain
ProxyUrl:=global.ProxyUrl
Method:=global.Method
MatchRule:=global.MatchRule
//Output the Params
/**fmt.Print (" ██████╗ ██╗██╗ ██╗███████╗███╗ ███╗███████╗███╗ ███╗ █████╗ ██╗██╗ \n")
fmt.Print ("██╔════╝ ██║██║ ██║██╔════╝████╗ ████║██╔════╝████╗ ████║██╔══██╗██║██║ \n")
fmt.Print ("██║ ███╗██║██║ ██║█████╗ ██╔████╔██║█████╗ ██╔████╔██║███████║██║██║ \n")
fmt.Print ("██║ ██║██║╚██╗ ██╔╝██╔══╝ ██║╚██╔╝██║██╔══╝ ██║╚██╔╝██║██╔══██║██║██║ \n")
fmt.Print ("╚██████╔╝██║ ╚████╔╝ ███████╗██║ ╚═╝ ██║███████╗██║ ╚═╝ ██║██║ ██║██║███████╗\n")
fmt.Print (" ╚═════╝ ╚═╝ ╚═══╝ ╚══════╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚══════╝\n")
fmt.Print (" \n")**/
fmt.Printf("\n")
fmt.Print(" ▄████ ██▓ ██▒ ██▓ ▓██████ ███▄ ▄███▓▓██████ ███▄ ▄███▓ ██ ██▓ ██▓ \n")
fmt.Print(" ██▒ ▀█▒ ▓██▒ ▓██░ █▒ ▓█ ▀ ▓██▒▀█▀ ██▒▓█ ▀ ▓██▒▀█▀ ██▒▒ ██ █▄ ▓██▒▓██▒ \n")
fmt.Print("▒██░▄▄▄░ ▒██▒ ▓██ █▒░ ▒██████ ▓██ ▓██░▒██████ ▓██ ▓██░▒██▄▄▄▄█▄ ▒██▒▒██░ \n")
fmt.Print("░▓█ ██▓ ░██░ ▒██ ██░░ ▒▓█ ▄ ▒██ ▒██ ▓█ ▄ ▒██ ▒██ ░██ ██ ░██░▒██░ \n")
fmt.Print("░▒▓███▀▒ ░██░ ▒▀█ ░▒████▒█ ▒██▒ ░██▒▒████▒█ ▒██▒ ░██▒ ▓█ ▓██▒░██░░██████▒\n")
fmt.Print(" ░▒ ▒ ░▓ ░ ▐░ ░░ ▒░ ░ ░ ▒░ ░░░ ▒░ ░ ░ ▒░ ░ ░ ▒▒ ▓▒█░░▓ ░ ▒░▓ ░\n")
fmt.Print(" ░ ░ ▒ ░ ░ ░░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ▒ ▒▒ ░ ▒ ░░ ░ ▒ ░\n")
fmt.Print("░ ░ ░ ▒ ░ ░░ ░ ░ ░ ░ ░ ░ ░ ▒ ▒ ░ ░ ░ \n")
fmt.Print(" ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░\n")
fmt.Print(" ░ \n")
fmt.Print("V1.1\n")
if Domain==""{
fmt.Print("Error:domain Empty!")
os.Exit(0)
}
fmt.Printf("[+]Domain:%s\n",Domain)
fmt.Printf("[+]Method:%s\n",Method)
fmt.Printf("[+]MatchRule:%s\n",MatchRule)
fmt.Printf("[+]Proxy:%s\n\n",ProxyUrl)
//init the Result map
MailResult := make([]string,0)
Api:=api.NewApiManager(Domain,ProxyUrl,Method)
MailResult=Api.Run()
fmt.Print("\nResult:\n")
for _,mail:=range MailResult{
fmt.Print(mail+"\n")
}
fmt.Print("[+]Find "+strconv.Itoa(len(MailResult))+" emails")
}