Skip to content

Commit

Permalink
update cli
Browse files Browse the repository at this point in the history
  • Loading branch information
wh1t3p1g committed Jun 15, 2021
1 parent 8d30d98 commit 938ea8c
Showing 1 changed file with 10 additions and 24 deletions.
34 changes: 10 additions & 24 deletions ...c/main/java/ysomap/core/bean/Exploit.java → ...java/ysomap/exploits/AbstractExploit.java
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,30 +1,18 @@
package ysomap.core.bean;
package ysomap.exploits;

import ysomap.core.ObjectExploit;
import ysomap.common.exception.ArgumentsNotCompleteException;
import ysomap.common.util.Logger;
import ysomap.core.util.ReflectionHelper;

/**
* @author wh1t3P1g
* @since 2020/2/19
* @since 2021/6/13
*/
public abstract class Exploit implements ObjectExploit, Runnable {
public abstract class AbstractExploit implements Exploit{

public volatile boolean exit = false;
public volatile boolean needRunning = false;

@Override
public ObjectExploit set(String key, Object value) throws Exception {
ReflectionHelper.setFieldValue(this, key, value);
return this;
}

@Override
public Object getObject() throws Exception {
return null;
}

@Override
public void run() {
try{
Expand All @@ -42,15 +30,13 @@ public void run() {
}
}


public boolean isExit(){
return exit;
@Override
public boolean isExit() {
return false;
}

public void setExit(boolean flag){ exit = flag;}

public abstract void work();

public abstract void stop();

@Override
public void setExit(boolean flag) {
exit = flag;
}
}

0 comments on commit 938ea8c

Please sign in to comment.