-
Notifications
You must be signed in to change notification settings - Fork 14
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
1 parent
dfbf932
commit b999424
Showing
27 changed files
with
1,108 additions
and
75 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
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,7 @@ | ||
plugins { | ||
java | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} |
4 changes: 4 additions & 0 deletions
4
grunt-annotation/src/main/java/net/spartanb312/grunt/annotation/DisableControlflow.java
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,4 @@ | ||
package net.spartanb312.grunt.annotation; | ||
|
||
public interface DisableControlflow { | ||
} |
4 changes: 4 additions & 0 deletions
4
grunt-annotation/src/main/java/net/spartanb312/grunt/annotation/DisableInvokeDynamic.java
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,4 @@ | ||
package net.spartanb312.grunt.annotation; | ||
|
||
public interface DisableInvokeDynamic { | ||
} |
4 changes: 4 additions & 0 deletions
4
grunt-annotation/src/main/java/net/spartanb312/grunt/annotation/DisableScramble.java
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,4 @@ | ||
package net.spartanb312.grunt.annotation; | ||
|
||
public interface DisableScramble { | ||
} |
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,7 @@ | ||
plugins { | ||
java | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} |
63 changes: 63 additions & 0 deletions
63
grunt-hwid/src/main/java/net/spartanb312/grunt/hwid/HWID.java
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,63 @@ | ||
package net.spartanb312.grunt.hwid; | ||
|
||
import javax.crypto.Cipher; | ||
import javax.crypto.spec.SecretKeySpec; | ||
import javax.swing.*; | ||
import java.awt.*; | ||
import java.awt.datatransfer.Clipboard; | ||
import java.awt.datatransfer.StringSelection; | ||
import java.nio.charset.StandardCharsets; | ||
import java.util.Base64; | ||
|
||
public class HWID { | ||
|
||
private static final String KEY = "1186118611861186"; | ||
|
||
public static void main(String[] args) { | ||
new Frame(KEY).setVisible(false); | ||
} | ||
|
||
public static class Frame extends JFrame { | ||
public Frame(String key) { | ||
setTitle("HWID Getter"); | ||
setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); | ||
setLocationRelativeTo(null); | ||
String hardwareID = "Unknown HWID"; | ||
try { | ||
String raw = System.getenv("PROCESS_IDENTIFIER") | ||
+ System.getenv("PROCESSOR_LEVEL") | ||
+ System.getenv("PROCESSOR_REVISION") | ||
+ System.getenv("PROCESSOR_ARCHITECTURE") | ||
+ System.getenv("PROCESSOR_ARCHITEW6432") | ||
+ System.getenv("NUMBER_OF_PROCESSORS") | ||
+ System.getenv("COMPUTERNAME"); | ||
String aes = "AES"; | ||
Cipher cipher = Cipher.getInstance(aes); | ||
SecretKeySpec secretKeySpec = new SecretKeySpec(key.getBytes(StandardCharsets.UTF_8), aes); | ||
cipher.init(1, secretKeySpec); | ||
byte[] result = cipher.doFinal(raw.getBytes(StandardCharsets.UTF_8)); | ||
hardwareID = new String(Base64.getEncoder().encode(result)) | ||
.replace("/", "s") | ||
.replace("=", "e") | ||
.replace("+", "p"); | ||
} catch (Exception ignored) { | ||
} | ||
copyToClipboard(hardwareID); | ||
String message = "Your HWID: " + hardwareID + "\n(Copied to clipboard)"; | ||
JOptionPane.showMessageDialog( | ||
this, | ||
message, | ||
"HWID Getter", | ||
JOptionPane.PLAIN_MESSAGE, | ||
UIManager.getIcon("OptionPane.informationIcon") | ||
); | ||
} | ||
|
||
public static void copyToClipboard(String s) { | ||
StringSelection selection = new StringSelection(s); | ||
Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard(); | ||
clipboard.setContents(selection, selection); | ||
} | ||
} | ||
|
||
} |
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,2 @@ | ||
Java -jar Counter.jar .java .kt .kts .vsh .fsh .vert .frag .glsl | ||
pause |
Binary file not shown.
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
4 changes: 3 additions & 1 deletion
4
grunt-main/src/main/kotlin/net/spartanb312/grunt/annotation/Annotations.kt
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
package net.spartanb312.grunt.annotation | ||
|
||
val DONT_SCRAMBLE = "Lnet/spartanb312/grunt/annotation/DontScramble;" | ||
val DISABLE_SCRAMBLE = "Lnet/spartanb312/grunt/annotation/DisableScramble;" | ||
val DISABLE_CONTROLFLOW = "Lnet/spartanb312/grunt/annotation/DisableControlflow;" | ||
val DISABLE_INVOKEDYNAMIC = "Lnet/spartanb312/grunt/annotation/DisableInvokeDynamic;" |
3 changes: 0 additions & 3 deletions
3
grunt-main/src/main/kotlin/net/spartanb312/grunt/annotation/DontScramble.kt
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.