-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. 支持保存爆破结果至文件 2. 支持 socks/http(s) 代理
- Loading branch information
Showing
8 changed files
with
174 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
package lib | ||
|
||
import ( | ||
"os" | ||
"sync" | ||
) | ||
|
||
var ExchangeUrls = map[string]string{ | ||
"autodiscover": "/autodiscover", | ||
"ews": "/ews", | ||
"mapi": "/mapi", | ||
"activesync": "/Microsoft-Server-ActiveSync", | ||
"oab": "/oab/global.asax", | ||
"rpc": "/rpc", | ||
"owa": "/owa/auth.owa", | ||
"powershell": "/powershell", | ||
"ecp": "/owa/auth.owa", | ||
} | ||
|
||
var Log *Logging | ||
|
||
type TaskInfo struct { | ||
targetUrl string | ||
mode string | ||
u string | ||
domain string | ||
task chan []string | ||
done *DoneMap | ||
delay int | ||
proxy string | ||
o string | ||
} | ||
|
||
type DoneMap struct { | ||
mu sync.RWMutex | ||
done map[string]string | ||
} | ||
|
||
func (c *DoneMap) Get(user string) bool { | ||
c.mu.RLock() | ||
defer c.mu.RUnlock() | ||
_, ok := c.done[user] | ||
return ok | ||
} | ||
|
||
func (c *DoneMap) Set(user string, pass string, o string) { | ||
c.mu.Lock() | ||
defer c.mu.Unlock() | ||
c.done[user] = pass | ||
if o != "" { | ||
fp, _ := os.OpenFile(o, os.O_CREATE|os.O_WRONLY|os.O_APPEND|os.O_SYNC, 0644) | ||
defer fp.Close() | ||
fp.WriteString(user + ":" + pass) | ||
fp.WriteString("\n") | ||
} | ||
} | ||
|
||
type BruteWorker func(info *TaskInfo) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.