public class ScriptDecoder
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static int |
LAST_STATE |
The state to enter when decrypting is complete.
|
protected static int[] |
mDigits |
The base 64 decoding table.
|
protected static byte[] |
mEncodingIndex |
Table of lookup choice.
|
protected static char[] |
mEscaped |
The escaped characters corresponding to the each escape sequence.
|
protected static char[] |
mEscapes |
Escape sequence characters.
|
protected static char[] |
mLeader |
The leader.
|
protected static char[][] |
mLookupTable |
Two dimensional lookup table.
|
protected static char[] |
mPrefix |
The prefix.
|
protected static char[] |
mTrailer |
The trailer.
|
protected static int |
STATE_CHECKSUM |
State when reading the checksum.
|
protected static int |
STATE_DECODE |
State while decoding.
|
static int |
STATE_DONE |
Termination state.
|
protected static int |
STATE_ESCAPE |
State when reading an escape sequence.
|
protected static int |
STATE_FINAL |
State while exiting.
|
static int |
STATE_INITIAL |
State on entry.
|
protected static int |
STATE_LENGTH |
State while reading the encoded length.
|
protected static int |
STATE_PREFIX |
State when reading up to decoded text.
|
Constructor | Description |
---|---|
ScriptDecoder() |
Modifier and Type | Method | Description |
---|---|---|
static java.lang.String |
Decode(Page page,
Cursor cursor) |
Decode script encoded by the Microsoft obfuscator.
|
protected static long |
decodeBase64(char[] p) |
Extract the base 64 encoded number.
|
public static final int STATE_DONE
public static final int STATE_INITIAL
protected static final int STATE_LENGTH
protected static final int STATE_PREFIX
protected static final int STATE_DECODE
protected static final int STATE_ESCAPE
protected static final int STATE_CHECKSUM
protected static final int STATE_FINAL
public static int LAST_STATE
Decode()
method.protected static byte[] mEncodingIndex
protected static char[][] mLookupTable
protected static int[] mDigits
protected static char[] mLeader
protected static char[] mPrefix
protected static char[] mTrailer
protected static char[] mEscapes
protected static char[] mEscaped
protected static long decodeBase64(char[] p)
p
- Six base 64 encoded digits.public static java.lang.String Decode(Page page, Cursor cursor) throws ParserException
page
- The source for encoded text.cursor
- The position at which to start decoding.
This is advanced to the end of the encoded text.ParserException
- If an error is discovered while decoding.HTML Parser is an open source library released under LGPL.