Skip to content

Commit 41385f3

Browse files
committed
add grpc 2022-11-26
1 parent 5890c91 commit 41385f3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+939
-43
lines changed

brute/dicts/filedic.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/Login.jsp
22
/login.jsp
3-
.*org/login
3+
/.well-known/security.txt
44
../../../../../../../../../../../../../../../../../../usr/local/cpanel/logs/login_log%00
55
../../../../../../../../../../../../../../../../../../usr/local/cpanel/logs/login_log
66
../../../../../../../../../../../../../../../../../usr/local/cpanel/logs/login_log
@@ -3703,7 +3703,6 @@ $metadata
37033703
/.web
37043704
/.well-known/acme-challenge/
37053705
/.well-known/apple-app-site-association
3706-
/.well-known/security.txt
37073706
/.workspace/
37083707
/.wp-config.php.swp
37093708
/.www_acl

config/config.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@
1212
"-c",20,
1313
"-o","{PWD}/logs"
1414
],
15+
"uncover": [
16+
"-q","",
17+
"-e","shodan",
18+
"-pc","{PWD}/config/uncover/provider-config.yaml",
19+
"-config","{PWD}/config/uncover/config.yaml",
20+
"-f","ip,port,host",
21+
"-json","-o",""
22+
],
1523
"ffuf": [
1624
"-u","",
1725
"-w","{PWD}/brute/dicts/filedic.txt",
@@ -77,7 +85,8 @@
7785
"-silent","-nc","-json", "-o", ""
7886
],
7987
"shuffledns": [
80-
"-r", "",
88+
"-d", "",
89+
"-r","{PWD}/config/resolvers.txt",
8190
"-w","{PWD}/config/database/subdomain.txt",
8291
"-silent","-nc","-json", "-o", ""
8392
],
@@ -152,7 +161,7 @@
152161
],
153162
"naabu":[
154163
"-l", "",
155-
"-port", "1-65535",
164+
"-top-ports", "http",
156165
"-iv", "4,6",
157166
"-scan-type", "s",
158167
"-sa","-silent","-nc",
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

config/resolvers.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
8.8.8.8
2+
114.114.114.114
3+
1.1.1.1
4+
2409:8062:2000:1::1
5+
2409:8062:2000:1::2

config/scan4all_db.db

156 KB
Binary file not shown.

doNaabu_test.go

Lines changed: 136 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,39 @@
11
package main
22

33
import (
4+
"github.com/hktalent/ProScan4all/lib/util"
45
"github.com/hktalent/ProScan4all/pkg/xcmd"
5-
util "github.com/hktalent/go-utils"
6+
"log"
7+
"strings"
68
"testing"
79
)
810

11+
func DoInitAll() {
12+
util.DoInit(&config)
13+
}
14+
15+
func TestDoUncover(t *testing.T) {
16+
DoInitAll()
17+
a := strings.Split(`'ssl:"China Lodging Group"'
18+
'ssl:"huazhu"'
19+
'ssl:"huazhu.com"'
20+
'ssl:"alipay.com"'
21+
'ssl:"hackerone.com"'
22+
'ssl:"paypal.com"'
23+
'ssl:"PayPal, Inc."'
24+
'ssl:"tencent"'
25+
'ssl:"paypal"'
26+
'ssl:"paypal.com"'`, "\n")
27+
for _, x := range a {
28+
if got := xcmd.DoUncover(x); got != "" {
29+
log.Println(got)
30+
}
31+
}
32+
util.Wg.Wait()
33+
util.CloseAll()
34+
}
935
func TestDoAmass(t *testing.T) {
10-
util.DoInitAll()
36+
DoInitAll()
1137
type args struct {
1238
s string
1339
}
@@ -29,7 +55,7 @@ func TestDoAmass(t *testing.T) {
2955
util.CloseAll()
3056
}
3157
func TestDoSubfinder(t *testing.T) {
32-
util.DoInitAll()
58+
DoInitAll()
3359
type args struct {
3460
s string
3561
}
@@ -51,7 +77,7 @@ func TestDoSubfinder(t *testing.T) {
5177
util.CloseAll()
5278
}
5379
func TestDoShuffledns(t *testing.T) {
54-
util.DoInitAll()
80+
DoInitAll()
5581
type args struct {
5682
s string
5783
}
@@ -60,20 +86,20 @@ func TestDoShuffledns(t *testing.T) {
6086
args args
6187
want string
6288
}{
63-
{"shuffledns", args{"www.sina.com.cn\nhttps://ww.baidu.com:443\n"}, ""},
89+
{"shuffledns", args{"huazhu.com"}, ""},
6490
}
6591
for _, tt := range tests {
6692
t.Run(tt.name, func(t *testing.T) {
6793
if got := xcmd.DoShuffledns(tt.args.s); got != tt.want {
68-
t.Errorf("DoNaabu() = %v, want %v", got, tt.want)
94+
t.Errorf("DoShuffledns() = %v, want %v", got, tt.want)
6995
}
7096
})
7197
}
7298
util.Wg.Wait()
7399
util.CloseAll()
74100
}
75101
func TestDoKatana(t *testing.T) {
76-
util.DoInitAll()
102+
DoInitAll()
77103
type args struct {
78104
s string
79105
}
@@ -95,7 +121,7 @@ func TestDoKatana(t *testing.T) {
95121
util.CloseAll()
96122
}
97123
func TestDoTlsx(t *testing.T) {
98-
util.DoInitAll()
124+
DoInitAll()
99125
type args struct {
100126
s string
101127
}
@@ -104,20 +130,116 @@ func TestDoTlsx(t *testing.T) {
104130
args args
105131
want string
106132
}{
107-
{"tlsx", args{"www.sina.com.cn\nhttps://ww.baidu.com:443\n"}, ""},
133+
{"tlsx", args{`mercure.huazhu.com
134+
wifi.huazhu.com
135+
checkin.huazhu.com
136+
cdn.huazhu.com
137+
img3.huazhu.com
138+
ota.huazhu.com
139+
sms.huazhu.com
140+
hms.huazhu.com
141+
ehk.huazhu.com
142+
stalker.huazhu.com
143+
msoid.huazhu.com
144+
ssl.huazhu.com
145+
zzyg.huazhu.com
146+
p.huazhu.com
147+
homs.huazhu.com
148+
ir.huazhu.com
149+
d.huazhu.com
150+
fuli.huazhu.com
151+
mail2.huazhu.com
152+
benefit.huazhu.com
153+
excashier.huazhu.com
154+
track.huazhu.com
155+
mms.huazhu.com
156+
seal.huazhu.com
157+
vip.huazhu.com
158+
fr.huazhu.com
159+
srm.huazhu.com
160+
career.huazhu.com
161+
edm.huazhu.com
162+
img2.huazhu.com
163+
campus.huazhu.com
164+
tqm.huazhu.com
165+
gpn.huazhu.com
166+
yiqi.huazhu.com
167+
mx3.huazhu.com
168+
smarthome.huazhu.com
169+
ccapi.huazhu.com
170+
appservice.huazhu.com
171+
cc.huazhu.com
172+
webmail.huazhu.com
173+
mas.huazhu.com
174+
av.huazhu.com
175+
h5.huazhu.com
176+
bm.huazhu.com
177+
mt.huazhu.com
178+
rms.huazhu.com
179+
mbs.huazhu.com
180+
mobile.huazhu.com
181+
wso.huazhu.com
182+
fuli.huazhu.com
183+
track.huazhu.com
184+
mobile.huazhu.com
185+
assist.huazhu.com
186+
booking.huazhu.com
187+
i.huazhu.com
188+
my.huazhu.com
189+
ygg.huazhu.com
190+
gslb.huazhu.com
191+
hxr.huazhu.com
192+
qa.huazhu.com
193+
epos.huazhu.com
194+
research.huazhu.com
195+
web.huazhu.com
196+
hotels.huazhu.com
197+
m.huazhu.com
198+
appapi.huazhu.com
199+
passport.huazhu.com
200+
wxapi.huazhu.com
201+
nexus.huazhu.com
202+
api.huazhu.com
203+
upload.huazhu.com
204+
webcs2.huazhu.com
205+
app6.huazhu.com
206+
app.huazhu.com
207+
promotion.huazhu.com
208+
customer.huazhu.com
209+
hud.huazhu.com
210+
kaifa.huazhu.com
211+
hpd.huazhu.com
212+
hec.huazhu.com
213+
gw.huazhu.com
214+
idp.huazhu.com
215+
breakfast.huazhu.com
216+
vat.huazhu.com
217+
signin.huazhu.com
218+
cashier.huazhu.com
219+
inside.huazhu.com
220+
shop.huazhu.com
221+
hsc.huazhu.com
222+
mx13.huazhu.com
223+
mx15.huazhu.com
224+
mx14.huazhu.com
225+
mx11.huazhu.com
226+
power.huazhu.com
227+
hfs.huazhu.com
228+
services.huazhu.com
229+
hos.huazhu.com`}, ""},
108230
}
109231
for _, tt := range tests {
110232
t.Run(tt.name, func(t *testing.T) {
111233
if got := xcmd.DoTlsx(tt.args.s); got != tt.want {
112-
t.Errorf("DoNaabu() = %v, want %v", got, tt.want)
234+
t.Errorf("DoTlsx() = %v, want %v", got, tt.want)
113235
}
114236
})
115237
}
116238
util.Wg.Wait()
117239
util.CloseAll()
118240
}
119241
func TestDoDnsx(t *testing.T) {
120-
util.DoInitAll()
242+
DoInitAll()
121243
type args struct {
122244
s string
123245
}
@@ -139,7 +261,7 @@ func TestDoDnsx(t *testing.T) {
139261
util.CloseAll()
140262
}
141263
func TestDoNuclei(t *testing.T) {
142-
util.DoInitAll()
264+
DoInitAll()
143265
type args struct {
144266
s string
145267
}
@@ -161,7 +283,7 @@ func TestDoNuclei(t *testing.T) {
161283
util.CloseAll()
162284
}
163285
func TestDoHttpx(t *testing.T) {
164-
util.DoInitAll()
286+
DoInitAll()
165287
type args struct {
166288
s string
167289
}
@@ -184,7 +306,7 @@ func TestDoHttpx(t *testing.T) {
184306
}
185307

186308
func TestDoNaabu(t *testing.T) {
187-
util.DoInitAll()
309+
DoInitAll()
188310
type args struct {
189311
s string
190312
}

go.mod

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ require (
1919
github.com/projectdiscovery/networkpolicy v0.0.2-0.20220925181336-68b15b6cbe8c
2020
github.com/remeh/sizedwaitgroup v1.0.0
2121
go.uber.org/ratelimit v0.2.0
22-
golang.org/x/net v0.1.0
23-
golang.org/x/sys v0.1.0
22+
golang.org/x/net v0.2.0
23+
golang.org/x/sys v0.2.0
2424
)
2525

2626
require (
@@ -135,7 +135,7 @@ require (
135135
golang.org/x/crypto v0.0.0-20221012134737-56aed061732a
136136
golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1
137137
golang.org/x/time v0.0.0-20220922220347-f3bd1da661af
138-
google.golang.org/genproto v0.0.0-20220916172020-2692e8806bfa
138+
google.golang.org/genproto v0.0.0-20221118155620-16455021b5e6
139139
google.golang.org/protobuf v1.28.1
140140
gopkg.in/irc.v3 v3.1.4
141141
gorm.io/driver/sqlite v1.4.3
@@ -277,6 +277,7 @@ require (
277277
github.com/hktalent/bleve-mapping-ui v0.4.1 // indirect
278278
github.com/hktalent/go-utils v0.0.0-20221022101117-e2abdad71ff5 // indirect
279279
github.com/hktalent/goxml2json v0.0.0-20221020100654-3af6886de60c // indirect
280+
github.com/hktalent/gson v0.0.0-20221118090607-68e4c7359da2 // indirect
280281
github.com/hktalent/jaeles v1.0.1 // indirect
281282
github.com/hktalent/kvDb v0.0.0-20221117003327-e25054351180 // indirect
282283
github.com/hktalent/websocket v0.0.0-20220908204337-b4a81b861976 // indirect
@@ -411,9 +412,10 @@ require (
411412
golang.org/x/exp v0.0.0-20221018221608-02f3b879a704 // indirect
412413
golang.org/x/mod v0.6.0-dev.0.20221005201717-2666ed6287c1 // indirect
413414
golang.org/x/sync v0.0.0-20220907140024-f12130a52804 // indirect
414-
golang.org/x/term v0.1.0 // indirect
415+
golang.org/x/term v0.2.0 // indirect
415416
golang.org/x/tools v0.1.12 // indirect
416417
google.golang.org/appengine v1.6.7 // indirect
418+
google.golang.org/grpc v1.51.0 // indirect
417419
gopkg.in/alecthomas/kingpin.v2 v2.2.6 // indirect
418420
gopkg.in/corvus-ch/zbase32.v1 v1.0.0 // indirect
419421
gopkg.in/ini.v1 v1.67.0 // indirect

go.sum

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,8 @@ github.com/hktalent/go-utils v0.0.0-20221022101117-e2abdad71ff5 h1:BLippEkuknXco
773773
github.com/hktalent/go-utils v0.0.0-20221022101117-e2abdad71ff5/go.mod h1:+xqUvKeUpQPRGzg9m5uMDKTOHv0RRDIw5K4JCUKzClA=
774774
github.com/hktalent/goxml2json v0.0.0-20221020100654-3af6886de60c h1:cSXjPYq2VBEoM14sPKuqA8yL7en7A1oYz+K6Gc+LmW4=
775775
github.com/hktalent/goxml2json v0.0.0-20221020100654-3af6886de60c/go.mod h1:ADjILrqfUYHa7t3yutaiNXwsVnxkMd1xXTLa8Dq4d4o=
776+
github.com/hktalent/gson v0.0.0-20221118090607-68e4c7359da2 h1:+yV5XQgBCnLsDrFUpCl/SAUx/nanMoXzBk42ifrEo2Q=
777+
github.com/hktalent/gson v0.0.0-20221118090607-68e4c7359da2/go.mod h1:vty8KnMAKpulzEMEWYfzIs18v0WdYTjLSGOyEfPj6Bw=
776778
github.com/hktalent/jaeles v0.0.0-20220729035545-f2032a5ed55a h1:L27LVsVowwKSeiZWk9PMk4RdEyR4YDPSbcu5zdzK4cc=
777779
github.com/hktalent/jaeles v0.0.0-20220729035545-f2032a5ed55a/go.mod h1:MEcxgmTrrmSoLf9sytrXJH8WcWmrICB6jsU1/27e0BI=
778780
github.com/hktalent/jaeles v1.0.1 h1:kv3T1lVFTbUCaSaLLOM12DAblZVn9Pxv7oSBxZv145w=
@@ -1931,6 +1933,8 @@ golang.org/x/net v0.0.0-20221004154528-8021a29435af h1:wv66FM3rLZGPdxpYL+ApnDe2H
19311933
golang.org/x/net v0.0.0-20221004154528-8021a29435af/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk=
19321934
golang.org/x/net v0.1.0 h1:hZ/3BUoy5aId7sCpA/Tc5lt8DkFgdVS2onTpJsZ/fl0=
19331935
golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco=
1936+
golang.org/x/net v0.2.0 h1:sZfSu1wtKLGlWI4ZZayP0ck9Y73K1ynO6gqzTdBVdPU=
1937+
golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY=
19341938
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
19351939
golang.org/x/oauth2 v0.0.0-20181106182150-f42d05182288/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
19361940
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
@@ -2069,6 +2073,8 @@ golang.org/x/sys v0.0.0-20221006211917-84dc82d7e875/go.mod h1:oPkhp1MJrh7nUepCBc
20692073
golang.org/x/sys v0.0.0-20221010170243-090e33056c14/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
20702074
golang.org/x/sys v0.1.0 h1:kunALQeHf1/185U1i0GOB/fy1IPRDDpuoOOqRReG57U=
20712075
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
2076+
golang.org/x/sys v0.2.0 h1:ljd4t30dBnAvMZaQCevtY0xLLD0A+bRZXbgLMLU1F/A=
2077+
golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
20722078
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
20732079
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
20742080
golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
@@ -2077,6 +2083,7 @@ golang.org/x/term v0.0.0-20220722155259-a9ba230a4035 h1:Q5284mrmYTpACcm+eAKjKJH4
20772083
golang.org/x/term v0.0.0-20220722155259-a9ba230a4035/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
20782084
golang.org/x/term v0.1.0 h1:g6Z6vPFA9dYBAF7DWcH6sCcOntplXsDKcliusYijMlw=
20792085
golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
2086+
golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc=
20802087
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
20812088
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
20822089
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
@@ -2259,6 +2266,8 @@ google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxH
22592266
google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24=
22602267
google.golang.org/genproto v0.0.0-20220916172020-2692e8806bfa h1:VWkrxnAx2C2hirAP+W5ADU7e/+93Yhk//ioKd2XFyDI=
22612268
google.golang.org/genproto v0.0.0-20220916172020-2692e8806bfa/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo=
2269+
google.golang.org/genproto v0.0.0-20221118155620-16455021b5e6 h1:a2S6M0+660BgMNl++4JPlcAO/CjkqYItDEZwkoDQK7c=
2270+
google.golang.org/genproto v0.0.0-20221118155620-16455021b5e6/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg=
22622271
google.golang.org/grpc v1.12.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw=
22632272
google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs=
22642273
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
@@ -2285,6 +2294,8 @@ google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAG
22852294
google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU=
22862295
google.golang.org/grpc v1.36.1/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU=
22872296
google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM=
2297+
google.golang.org/grpc v1.51.0 h1:E1eGv1FTqoLIdnBCZufiSHgKjlqG6fKFf6pPWtMTh8U=
2298+
google.golang.org/grpc v1.51.0/go.mod h1:wgNDFcnuBGmxLKI/qn4T+m5BtEBYXJPvibbUPsAIPww=
22882299
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
22892300
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
22902301
google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=

0 commit comments

Comments
 (0)