-
Notifications
You must be signed in to change notification settings - Fork 659
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,224 changed files
with
21,446 additions
and
102,570 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Submodule fuzzing-templates
updated
5 files
+2 −0 | .github/workflows/cve-annotate.yml | |
+23 −0 | README.md | |
+4 −1 | crlf/cookie-injection.yaml | |
+43 −4 | crlf/crlf-injection.yaml | |
+86 −12 | redirect/open-redirect.yaml |
Submodule nuclei-templates
updated
679 files
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
shodan: | ||
- FfH1z0IR5MiktkLbfMlQD93M3lPe32vH | ||
- ZRSzvyQ1GiKZkK0JfSZJKH4ucv8u1ude | ||
censys: [] | ||
fofa: [] |
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 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,25 @@ | ||
package util | ||
|
||
import ( | ||
"fmt" | ||
"sync" | ||
"time" | ||
) | ||
|
||
var lk sync.Mutex | ||
|
||
// 全局统一锁,避免相同目标、相同任务重复执行 | ||
// 库级:不重复 | ||
// 执行第一次,就进行标记,第二次返回true | ||
func IsDoIt(s string, nType int) bool { | ||
lk.Lock() | ||
defer lk.Unlock() | ||
k := fmt.Sprintf("IsDo%s_%d", s, nType) | ||
if o := clientHttpCc.Get(k); nil != o { | ||
if v, ok := o.Value().(bool); ok && v { | ||
return v | ||
} | ||
} | ||
clientHttpCc.Set(k, true, time.Hour*24) | ||
return false | ||
} |
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,37 @@ | ||
package util | ||
|
||
import ( | ||
"github.com/panjf2000/ants/v2" | ||
"time" | ||
) | ||
|
||
const ( | ||
// DefaultAntsPoolSize sets up the capacity of worker pool, 256 * 1024. | ||
DefaultAntsPoolSize = 1 << 18 | ||
|
||
// ExpiryDuration is the interval time to clean up those expired workers. | ||
ExpiryDuration = 10 * time.Second | ||
|
||
// Nonblocking decides what to do when submitting a new task to a full worker pool: waiting for a available worker | ||
// or returning nil directly. | ||
Nonblocking = true | ||
) | ||
|
||
// Pool is the alias of ants.Pool. | ||
type Pool = ants.Pool | ||
|
||
var DefaultPool *Pool | ||
|
||
func create() *Pool { | ||
options := ants.Options{ExpiryDuration: ExpiryDuration, Nonblocking: Nonblocking} | ||
defaultAntsPool, _ := ants.NewPool(DefaultAntsPoolSize, ants.WithOptions(options)) | ||
return defaultAntsPool | ||
} | ||
|
||
func init() { | ||
RegInitFunc4Hd(func() { | ||
// It releases the default pool from ants. | ||
ants.Release() | ||
DefaultPool = create() | ||
}) | ||
} |
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,24 @@ | ||
package util | ||
|
||
type VulnInfo struct { | ||
Name string | ||
VulID []string | ||
Version string | ||
Author string | ||
VulDate string | ||
References []string | ||
AppName string | ||
AppPowerLink string | ||
AppVersion string | ||
VulType string | ||
Description string | ||
Category string | ||
Dork QueryDork | ||
} | ||
|
||
type QueryDork struct { | ||
Fofa string | ||
Quake string | ||
Zoomeye string | ||
Shodan string | ||
} |
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
Oops, something went wrong.