Skip to content

Commit d139879

Browse files
committed
Add Ghost Installer detection (fixes #103)
1 parent 999c5c4 commit d139879

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
using System;
2+
using BinaryObjectScanner.Interfaces;
3+
using SabreTools.Matching;
4+
using SabreTools.Serialization.Wrappers;
5+
6+
namespace BinaryObjectScanner.Packer
7+
{
8+
/// <summary>
9+
/// Ghost Installer
10+
/// </summary>
11+
public class GhostInstaller : IExecutableCheck<PortableExecutable>
12+
{
13+
/// <inheritdoc/>
14+
public string? CheckExecutable(string file, PortableExecutable exe, bool includeDebug)
15+
{
16+
// <see href="https://www.virustotal.com/gui/file/b2fc4cffe5131195baf419e96c9fa68c3f23208986fb14e3c5b458b1e7d6af89/details"/>
17+
var overlayData = exe.OverlayData;
18+
if (overlayData != null)
19+
{
20+
// GIPEND
21+
if (overlayData.EndsWith([0x47, 0x49, 0x50, 0x45, 0x4E, 0x44]))
22+
return "Ghost Installer";
23+
}
24+
25+
// <see href="https://www.virustotal.com/gui/file/b2fc4cffe5131195baf419e96c9fa68c3f23208986fb14e3c5b458b1e7d6af89/details"/>
26+
if (exe.FindDialogBoxByItemTitle("Ghost Installer initializing...").Count > 0)
27+
return "Ghost Installer";
28+
29+
return null;
30+
}
31+
}
32+
}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ Below is a list of executable packers detected by BinaryObjectScanner. The three
155155
| Embedded File | Yes | No | Yes | Not technically a packer |
156156
| EXE Stealth | Yes | No | No | |
157157
| Gentee Installer | Yes | No | No | Includes "Create Install 2003" |
158+
| Ghost Installer | Yes | No | No | |
158159
| GkWare SFX | Yes | No | No | |
159160
| GP-Install | Yes | No | No | |
160161
| HyperTech CrackProof | Yes | No | No | |

0 commit comments

Comments
 (0)