File tree 5 files changed +11
-11
lines changed
5 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -1220,15 +1220,15 @@ see [go-cve-dictionary#usage-fetch-jvn-data](https://github.com/kotakanbe/go-cve
1220
1220
**fetchnvd -> fetchjvnの順番で実行すること**
1221
1221
1222
1222
```
1223
- $ for i in { 2002..2016} ; do go-cve-dictionary fetchnvd -years $i; done
1224
- $ for i in { 1998..2016} ; do go-cve-dictionary fetchjvn -years $i; done
1223
+ $ for i in ` seq 2002 $(date +"%Y") ` ; do go-cve-dictionary fetchnvd -years $i; done
1224
+ $ for i in ` seq 1998 $(date +"%Y") ` ; do go-cve-dictionary fetchjvn -years $i; done
1225
1225
```
1226
1226
の順でやった場合、最初のコマンドが15分程度、二つ目のコマンドが10分程度(環境依存)
1227
1227
1228
1228
1229
1229
```
1230
- $ for i in { 1998..2016} ; do go-cve-dictionary fetchjvn -years $i; done
1231
- $ for i in { 2002..2016} ; do go-cve-dictionary fetchnvd -years $i; done
1230
+ $ for i in ` seq 1998 $(date +"%Y") ` ; do go-cve-dictionary fetchjvn -years $i; done
1231
+ $ for i in ` seq 2002 $(date +"%Y") ` ; do go-cve-dictionary fetchnvd -years $i; done
1232
1232
```
1233
1233
の順で行うと、最初のコマンドは1時間くらいで終わるが二つ目のコマンドが21時間かかることもある(環境依存)。
1234
1234
@@ -1261,7 +1261,7 @@ $ git pull
1261
1261
$ mv vendor /tmp/bar
1262
1262
$ make install
1263
1263
```
1264
- - バイナリファイルは`$GOPARH /bin`以下に作成される
1264
+ - バイナリファイルは`$GOPATH /bin`以下に作成される
1265
1265
1266
1266
---
1267
1267
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ $ git clone https://github.com/kotakanbe/go-cve-dictionary.git
168
168
$ cd go-cve-dictionary
169
169
$ make install
170
170
```
171
- The binary was built under ` $GOPARH /bin `
171
+ The binary was built under ` $GOPATH /bin `
172
172
173
173
Fetch vulnerability data from NVD.
174
174
It takes about 10 minutes (on AWS).
@@ -192,7 +192,7 @@ $ git clone https://github.com/future-architect/vuls.git
192
192
$ cd vuls
193
193
$ make install
194
194
```
195
- The binary was built under ` $GOPARH /bin `
195
+ The binary was built under ` $GOPATH /bin `
196
196
197
197
## Step6. Config
198
198
@@ -1224,7 +1224,7 @@ $ git pull
1224
1224
$ mv vendor /tmp/bar
1225
1225
$ make install
1226
1226
```
1227
- Binary file was built under $GOPARH /bin
1227
+ Binary file was built under $GOPATH /bin
1228
1228
1229
1229
---
1230
1230
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ func (r ScanResult) ServerInfoTui() string {
192
192
)
193
193
}
194
194
195
- // FormatServerName returns server and contianer name
195
+ // FormatServerName returns server and container name
196
196
func (r ScanResult ) FormatServerName () string {
197
197
if len (r .Container .ContainerID ) == 0 {
198
198
return r .ServerName
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ vuls v0.1.xxx xxxx
92
92
## Step1. Fetch NVD
93
93
94
94
``` console
95
- $ for i in { 2002..2016} ; do \
95
+ $ for i in ` seq 2002 $( date + " %Y " ) ` ; do \
96
96
docker run --rm -it \
97
97
-v $PWD:/vuls \
98
98
-v $PWD/go-cve-dictionary-log:/var/log/vuls \
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ $ docker run --rm vuls/go-cve-dictionary -v
43
43
## fetchnvd
44
44
45
45
``` console
46
- $ for i in { 2002..2016} ; do \
46
+ $ for i in ` seq 2002 $( date + " %Y " ) ` ; do \
47
47
docker run --rm -it \
48
48
-v $PWD:/vuls \
49
49
-v $PWD/go-cve-dictionary-log:/var/log/vuls \
You can’t perform that action at this time.
0 commit comments