Skip to content

Commit

Permalink
修复一个小bug
Browse files Browse the repository at this point in the history
  • Loading branch information
iSafeBlue committed May 13, 2019
1 parent 8ed8ef1 commit 80f78f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion base/src/main/java/com/trackray/base/bean/Banner.java
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public enum IMG{
" ` ......;;;;... . ."),
$6(" ______________________________________________________________________________\n" +
" | |\n" +
" | TRACKRAY CYBER MISSILE COMMAND V4 |\n" +
" | TRACKRAY CYBER MISSILE COMMAND V3 |\n" +
" |______________________________________________________________________________|\n" +
" \\ / /\n" +
" \\ . / / x\n" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ public abstract class AbstractExploit implements Runnable{

private static final Logger log = LoggerFactory.getLogger(AbstractExploit.class);

private List<Vulnerable> vulns = new ArrayList<>();

private Task task;

public void before(){
Expand Down Expand Up @@ -72,11 +70,11 @@ public void addVulnerable(Vulnerable vulnerable){
//vuln.setMessage(vulnerable.);

if (vulnerable.getReferences()!=null)
vuln.setReference((String[]) vulnerable.getReferences().toArray());
vuln.setReference( vulnerable.getReferences().toArray(new String[]{}));
if (vulnerable.getRisk()!=null)
vuln.setRisk((String[]) vulnerable.getRisk().toArray());
vuln.setRisk( vulnerable.getRisk().toArray(new String[]{}));
if (vulnerable.getVulnId()!=null)
vuln.setVulnId((String[]) vulnerable.getVulnId().toArray());
vuln.setVulnId(vulnerable.getVulnId().toArray(new String[]{}));

vuln.setPayload(vulnerable.getPayload());
vuln.setRepair(vulnerable.getRepair());
Expand Down

0 comments on commit 80f78f5

Please sign in to comment.