-
Notifications
You must be signed in to change notification settings - Fork 11
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
5 changed files
with
141 additions
and
31 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,13 @@ | ||
Module PE | ||
Private _patcher As New Patcher | ||
|
||
' d = 64; L = 32 | ||
Function GetOffsetOfPE(fileName As String) | ||
Return _patcher.IndexOf(fileName, {&H50, &H45, ' get "PE\x0\x0" signature | ||
&H0, &H0}) | ||
End Function | ||
|
||
Function Is64(fileName As String) | ||
Return _patcher.GetByte(fileName, GetOffsetOfPE(fileName) + &H4) = &H64 | ||
End Function | ||
End 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Module StdOut | ||
|
||
Sub Write(ByVal message As String, ByVal newLine As Boolean) | ||
Console.Out.Write(message & If(newLine, vbLf, String.Empty)) | ||
End Sub | ||
|
||
Sub Log(ByVal message As String) | ||
Console.ForegroundColor = ConsoleColor.DarkGray | ||
Console.Out.Write(Date.Now().ToString("HH:mm:ss") & " -> ") | ||
Console.ResetColor() | ||
Console.Out.WriteLine(message) | ||
End Sub | ||
End 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