-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
391 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4"> | ||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8"> | ||
<output url="file://$MODULE_DIR$/target/classes" /> | ||
<output-test url="file://$MODULE_DIR$/target/test-classes" /> | ||
<content url="file://$MODULE_DIR$"> | ||
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" /> | ||
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" /> | ||
<excludeFolder url="file://$MODULE_DIR$/target" /> | ||
</content> | ||
<orderEntry type="inheritedJdk" /> | ||
<orderEntry type="sourceFolder" forTests="false" /> | ||
<orderEntry type="library" name="Maven: net.portswigger.burp.extender:burp-extender-api:2.3" level="project" /> | ||
<orderEntry type="library" name="Maven: com.github.kevinsawicki:http-request:6.0" level="project" /> | ||
<orderEntry type="library" name="Maven: org.yaml:snakeyaml:1.29" level="project" /> | ||
</component> | ||
</module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package burp.Bootstrap; | ||
|
||
import java.util.Map; | ||
import java.util.concurrent.ConcurrentHashMap; | ||
|
||
public class GlobalVariableReader { | ||
private ConcurrentHashMap booleanMap; | ||
|
||
public GlobalVariableReader() { | ||
this.booleanMap = new ConcurrentHashMap<String, Boolean>(); | ||
} | ||
|
||
public Map<String, Boolean> getBooleanMap() { | ||
return this.booleanMap; | ||
} | ||
|
||
public Boolean getBooleanData(String key) { | ||
return this.getBooleanMap().get(key); | ||
} | ||
|
||
public void putBooleanData(String key, Boolean b) { | ||
if (key == null || key.length() <= 0) { | ||
throw new IllegalArgumentException("key不能为空"); | ||
} | ||
|
||
synchronized (this.getBooleanMap()) { | ||
this.getBooleanMap().put(key, b); | ||
} | ||
} | ||
|
||
public void delBooleanData(String key) { | ||
if (this.getBooleanMap().get(key) != null) { | ||
this.getBooleanMap().remove(key); | ||
} | ||
} | ||
} |
Oops, something went wrong.