mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-22 03:10:42 +08:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
276b446e0c | ||
|
|
15cdc19097 |
@@ -11,6 +11,7 @@ builds:
|
|||||||
- linux
|
- linux
|
||||||
- darwin
|
- darwin
|
||||||
- freebsd
|
- freebsd
|
||||||
|
- solaris
|
||||||
goarch:
|
goarch:
|
||||||
- amd64
|
- amd64
|
||||||
- "386"
|
- "386"
|
||||||
|
|||||||
+1
-1
@@ -17,7 +17,7 @@ func Scan(info common.HostInfo) {
|
|||||||
fmt.Println("len(hosts)==0", err)
|
fmt.Println("len(hosts)==0", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
lib.Inithttp(common.Pocinfo)
|
lib.Inithttp()
|
||||||
var ch = make(chan struct{}, common.Threads)
|
var ch = make(chan struct{}, common.Threads)
|
||||||
var wg = sync.WaitGroup{}
|
var wg = sync.WaitGroup{}
|
||||||
web := strconv.Itoa(common.PORTList["web"])
|
web := strconv.Itoa(common.PORTList["web"])
|
||||||
|
|||||||
@@ -25,8 +25,14 @@ var (
|
|||||||
keepAlive = 5 * time.Second
|
keepAlive = 5 * time.Second
|
||||||
)
|
)
|
||||||
|
|
||||||
func Inithttp(PocInfo common.PocInfo) {
|
func Inithttp() {
|
||||||
//PocInfo.Proxy = "http://127.0.0.1:8080"
|
//common.Proxy = "http://127.0.0.1:8080"
|
||||||
|
if common.PocNum == 0 {
|
||||||
|
common.PocNum = 20
|
||||||
|
}
|
||||||
|
if common.WebTimeout == 0 {
|
||||||
|
common.WebTimeout = 5
|
||||||
|
}
|
||||||
err := InitHttpClient(common.PocNum, common.Proxy, time.Duration(common.WebTimeout)*time.Second)
|
err := InitHttpClient(common.PocNum, common.Proxy, time.Duration(common.WebTimeout)*time.Second)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
|
|||||||
Reference in New Issue
Block a user