public class Methods
extends java.lang.Object
| Constructor and Description |
|---|
Methods() |
| Modifier and Type | Method and Description |
|---|---|
static double |
entropy(byte[] input)
This method measure's a file entropy and returns it as a double value.
|
static boolean |
isAllSpace(java.lang.String theString)
This method checks if the provided String consists entirely of spaces, used as part of the "Detect Strings" Function of the project
|
static boolean |
isASCII(byte theByte)
This method checks if the byte provided is an ASCII character, used as part of the "Detect Strings" Function of the project
|
static boolean |
isELFFile(java.io.File file)
This method takes in a file and checks if it contains '7f' in hex and "ELF" in Ascii at the file's beginning
|
static boolean |
isPEFile(java.io.File file)
This methods takes in a file and checks if it contains 'MZ' in hex at the file's beginning
Credit to this method: Here
|
public static boolean isPEFile(java.io.File file)
file - public static boolean isELFFile(java.io.File file)
file - public static boolean isASCII(byte theByte)
theByte - public static boolean isAllSpace(java.lang.String theString)
theString - public static double entropy(byte[] input)
input -