MCPcopy Index your code
hub / github.com/cSploit/android / OSVDB

Class OSVDB

cSploit/src/org/csploit/android/net/reference/OSVDB.java:6–61  ·  view source on GitHub ↗

OSVDB vulnerability reference

Source from the content-addressed store, hash-verified

4 * OSVDB vulnerability reference
5 */
6public class OSVDB implements Vulnerability {
7 private static final String URLBASE = "http://osvdb.org/show/osvdb/";
8
9 private final int id;
10 private String summary;
11 private String description;
12 private short severity;
13
14 public OSVDB(int id, String description) {
15 this.id = id;
16 this.description = description;
17 }
18
19 public OSVDB(int id) {
20 this(id, null);
21 }
22
23 @Override
24 public String getName() {
25 return "OSVDB-" + id;
26 }
27
28 @Override
29 public String getSummary() {
30 return description;
31 }
32
33 @Override
34 public String getDescription() {
35 return null;
36 }
37
38 @Override
39 public String getUrl() {
40 return URLBASE + id;
41 }
42
43 @Override
44 public short getSeverity() {
45 return 0;
46 }
47
48 @Override
49 public String toString() {
50 return "OSVDB-" + id + " reference";
51 }
52
53 @Override
54 public boolean equals(Object o) {
55 return o.getClass() == OSVDB.class && id == ((OSVDB) o).id;
56 }
57
58 public static boolean owns(String url) {
59 return url.startsWith(URLBASE);
60 }
61}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected