Compare commits

...

4 Commits

Author SHA1 Message Date
kota kanbe
b52f0120ff Bump up version 2016-04-06 12:34:13 +09:00
kota kanbe
76ade4c3b4 Fix panic: runtime error: index out of range in tui mode #5 2016-04-06 12:09:29 +09:00
Kota Kanbe
110d74a91e Merge pull request #6 from toli/patch-1
Typo in Exapmle
2016-04-06 11:33:27 +09:00
Toli Kuznets
1819edf724 Typo in Exapmle 2016-04-05 13:19:18 -07:00
3 changed files with 8 additions and 6 deletions

View File

@@ -288,7 +288,7 @@ discover:
discover 192.168.0.0/24
```
## Exapmle
## Example
```
$ vuls discover 172.31.4.0/24

View File

@@ -602,7 +602,6 @@ func summaryLines(data models.ScanResult) string {
}
stable.AddRow(icols...)
}
// ignore UnknownCves
return fmt.Sprintf("%s", stable)
}
@@ -625,7 +624,6 @@ func setDetailLayout(g *gocui.Gui) error {
// currentScanResult.KnownCves[currentCveInfo],
// currentScanResult.Family)
//TODO error handling
text, err := detailLines()
if err != nil {
return err
@@ -654,6 +652,10 @@ type dataForTmpl struct {
}
func detailLines() (string, error) {
if len(currentScanResult.KnownCves) == 0 {
return "No vulnerable packages", nil
}
cveInfo := currentScanResult.KnownCves[currentCveInfo]
cveID := cveInfo.CveDetail.CveID

View File

@@ -17,8 +17,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
package main
// Name.
// Name is Vuls
const Name string = "vuls"
// Version.
const Version string = "0.1.0"
// Version of Vuls
const Version string = "0.1.1"