-
Notifications
You must be signed in to change notification settings - Fork 26
BuildGuide
Note: There is a binary distribution of Ghost, which does not require you to build any code. If you choose to use that version, you can directly proceed to the install guide.
If you'd like to work with the latest development version of Ghost, you will have to compile the code yourself. This page explains how to do so.
There are two things that you have to take care of before you can build: a build environment and the source code.
You need a build environment that is capable of building Windows drivers. The only one that has been confirmed to be working for this project is the Windows Driver Kit (WDK) from Microsoft. You should use the stable version 7. Microsoft offers it for download on this page.
You can download an archive containing all source code for the release version in the downloads section of this project. If you'd like to use the latest development version instead, you can get its source code by running git clone https://github.com/sebastianpoeplau/ghost-usb-honeypot.git
(provided that git is installed on your machine).
Note: Do make sure that the path to your local copy of the source code does not contain spaces! Otherwise, the WDK build tools will fail to build the code.
Note: Two little bugs have slipped into the configuration files of the current version. In GhostLib\sources
, please change "....\GhostDrive" into "..\GhostDrive" (line 4). The second bug requires that you build the code for Windows XP once before you build for Windows 7. They will be fixed in the next version.
It is quite easy to actually build the code. The only thing you have to do is execute the command build
in the source directory and compile the GUI with a C# compiler. But let's proceed step by step:
- Open a build shell. Usually, you can find it in your start menu under All Programs - Windows Driver Kits - - Build Environments. If you'd like to see debug messages (using tools such as DebugView), select a checked environment, otherwise go for the free one.
- In the shell window that pops up, navigate to the folder where you saved Ghost's source code.
- Run
build
. This may take a while, because it compiles all source code except the GUI. - If you'd like to build the GUI as well, just open the folder GhostGUI and compile the code with your favorite C# compiler. There's a project file for Visual Studio in the folder with all the relevant settings.
- Now you have to collect the build products. Since I develop on a Unix system, I have a bash script to do so. Run
./MakeRelease.sh [winxp|win7] [chk]
. Appendchk
only if you built in the checked environment rather than the free one. The script will create a ZIP fileghost-win[XP|7].zip
for redistribution and a directoryRelease [7|XP]
from which you can directly install the honeypot.
Once you have successfully built all components, you are ready to install Ghost on your machine (see the install guide).
- Introduction
- User's guide
- How to build
- How to install
- How to use
- Configuration
- Developer information