-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
已加入yaml解析引擎,支持xray的Poc,默认使用所有Poc(已对xray的poc进行了筛选),可以使用-pocname weblog…
…ic,只使用某种或某个poc。需要go版本1.16以上,只能自行编译最新版go来进行测试
- Loading branch information
shadow1ng
committed
Dec 12, 2020
1 parent
c27eccb
commit 7742b1f
Showing
15 changed files
with
190 additions
and
77 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
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
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,9 +1,42 @@ | ||
package WebScan | ||
|
||
import ( | ||
"embed" | ||
"github.com/shadow1ng/fscan/WebScan/lib" | ||
"github.com/shadow1ng/fscan/common" | ||
"net/http" | ||
"time" | ||
) | ||
|
||
//go:embed pocs | ||
var Pocs embed.FS | ||
|
||
func WebScan(info *common.HostInfo) { | ||
Shiro(info) | ||
} | ||
info.PocInfo.Target = info.Url | ||
Execute(info.PocInfo) | ||
} | ||
|
||
func Execute(PocInfo common.PocInfo) error { | ||
//PocInfo.Proxy = "http://127.0.0.1:8080" | ||
err := lib.InitHttpClient(PocInfo.Num, PocInfo.Proxy, time.Duration(PocInfo.Timeout)*time.Second) | ||
if err != nil { | ||
return err | ||
} | ||
req, err := http.NewRequest("GET", PocInfo.Target, nil) | ||
req.Header.Set("User-agent", "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1468.0 Safari/537.36") | ||
if err != nil { | ||
return err | ||
} | ||
if PocInfo.Cookie != "" { | ||
req.Header.Set("Cookie", PocInfo.Cookie) | ||
} | ||
|
||
//PocInfo.PocName = "weblogic-cve-2017-10271.yml" | ||
if PocInfo.PocName != "" { | ||
lib.CheckMultiPoc(req, Pocs, PocInfo.Num, PocInfo.PocName) | ||
} else { | ||
lib.CheckMultiPoc(req, Pocs, PocInfo.Num, "") | ||
} | ||
|
||
return nil | ||
} |
This file was deleted.
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
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,12 +1,20 @@ | ||
module github.com/shadow1ng/fscan | ||
|
||
go 1.13 | ||
go 1.15 | ||
|
||
require ( | ||
github.com/antlr/antlr4 v0.0.0-20200503195918-621b933c7a7f // indirect | ||
github.com/denisenkom/go-mssqldb v0.9.0 | ||
github.com/go-sql-driver/mysql v1.5.0 | ||
github.com/golang/protobuf v1.4.1 | ||
github.com/google/cel-go v0.4.2 | ||
github.com/jlaffaye/ftp v0.0.0-20201112195030-9aae4d151126 | ||
github.com/lib/pq v1.8.0 | ||
github.com/stacktitan/smb v0.0.0-20190531122847-da9a425dceb8 | ||
golang.org/x/crypto v0.0.0-20201116153603-4be66e5b6582 | ||
golang.org/x/net v0.0.0-20200505041828-1ed23360d12c // indirect | ||
golang.org/x/sys v0.0.0-20200501145240-bc7a7d42d5c3 // indirect | ||
google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84 | ||
google.golang.org/grpc v1.29.1 // indirect | ||
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 | ||
) |
Oops, something went wrong.