Click here to Skip to main content
14,743,899 members
Articles » Web Development » Applications & Tools » General
Posted 26 Jan 2006


22 bookmarked

Back Orifice XP

Rate me:
Please Sign up or sign in to vote.
2.71/5 (13 votes)
26 Jan 2006CPOL
Back Orifice XP (BOXP) is a network administration tool based on BO2K


Back Orifice XP (BOXP) is a network administration tool available for the Microsoft Win32 environment.

Built upon the success of Back Orifice and Back Orifice 2000, Back Orifice XP puts network administrators in control of the system, network, registry, passwords, file system, and processes. Except that BOXP is smaller, faster, free, and very, very extensible, because is based on plug-ins architecture that ensures new features can be added without releasing all new binaries.

I (Javier Aroche) say: "It is my idea to restructure the code of BO2K, called BOXP, fix many problems that affect it and add new features. At this moment BO2K works... but not completely, it is necessary to make deep changes to support a TRUE Plugin Interface, so that these work with the system and between them correctly, something that in BO2K it is not possible nowadays. And so arises the need to re-write the current sources to create a new interface that allows the plugins to use all the internal functions of the framework and functions from other plugins".

BO2K has many concept problems, bugs and limitations, but the major problem is the limited Plugin Linkage (PL). The BO2K 1.1 PL is just is an extension of the BO2K 1.0 PL, has added more members and done; but those additions don't resolve the concept problems... just give us a false hope.

Therefore I have prepared a full redesign of the structure of bo2k and his Plugin Linkage. We need to recode because:

  1. BO2K can't handle advanced techniques (like RemoteThread, Process Injection, Memory Image Compression/Encryption, "Hot plug" function updates,...).
  2. The PL is too Limited.
  3. Problems working with plugins that runs threads.
  4. BO2K can't be updated when it is running (well maybe if we update all function calls or redirect the function with other technique to our new function).
  5. BO2K don't supports multi-languages. It needs to be recompiled to change the strings.
  6. The flexibility really is limited, not all BO2K functions/objects could be updated, without touching the Memory Image.
  7. Plugins don't have access to all functions.
  8. BO2K does not knows if a plugin is running a thread.
  9. The Client and the Config Tool are based in MFC, that does the GUI extensions almost impossible via plugins.
  10. Inter plugin communications is (almost?) impossible!!

The FrameWork

This is the primary concept, the code base of the server, client and config tool. The three applications will share the same Framework, giving a standard initialization and load of objects for the three applications. When the Framework is already initiated, it passes the control to the application so it begins and loads its own objects and begins its real execution.

As I already mentioned, the objective of the Framework is to provide a common base, facilitating to the plugins the access to the interface of the application. What each application does is extend the Framework adding more functions and objects to this. It must be noticed that the Framework for if alone could not be executed, the application needs to maintain the execution and the interaction with the user.

The Framework should contain utility functions, control of accesses, logs, global variables and functions. The application should contain user's interface, using the Framework for the common tasks (like handling plugins).

The Plugin Linkage

The New Plugin linkage will be integrated for:

[where '+'=good point and '-'=bad point] 

API (pointers to API)

  • + Can bypass/change them, just change the pointer address and done
  • + Common access way
  • + No API clearly present in the EXE file
  • + Less plugin size, don't need the 'Import Table' in the PE header
  • + Faster plugin load, don't need to find the API addresses
  • +/- Needs to be loaded when the FrameWork startup (need to store the API name in strings).
  • - Must be handled with care, a NULL/Zero value crashes the execution.

Functions (pointers to functions)

  • + Can bypass/change them, just change the pointer address and done.
  • + Common access way. - need to add one for one when the FrameWork starts up.
  • - Must be handled with care, a NULL/Zero value crashes the execution.

Global Variables (pointers and statics)

Strings and Binary data

  • + Can bypass/change them, just change the pointer address and done.
  • +/- Must be structured.
  • - Must be handled with care, a NULL/Zero value crashes the execution.

Application Context (functions, vars, strings, ...)

  • + Common access way.
  • + Plugins know we are running without complex test.
  • - Must be handled with careful, a NULL/Zero value crashes the execution.

With this structure, the plugins can access global objects easily, with problems. All data is shared.

FrameWork Features

  • Allow to replace them (for multilanguage support). + Allow to compress/encrypt them. * [Configuration] + Add, remove them.
  • Save/load configuration from .ini file.
  • Allow global access of all variables (so we could check the config of other plugin).
  • Allow change values storing the new values in a .ini file.
  • Keep a list of threads running in the FrameWork.
  • Start, Stop, Suspend, resume them.
  • When the shutdown starts, must stop all threads to avoid crash the Framework.
  • Custom data could be passed when the thread is created.
  • Control execution variable included in Thread info structure. Therefore we could stop threads in an easy way.
  • Find threads by ID String.
  • Load/Unload them.
  • Allow to run one main thread at startup.
  • Share custom data, could be used to pass a pointer to a context structure.
  • Allow replace strings (for multi-language support).
  • Keep a list of plugins to load at startup (only if .ini support is enabled) so when restarts loads the plugins added.
  • Change configuration, without editing the disk image (only if .ini support is enabled).
  • Any kind of file could be attached to the server.
  • Allow self plugin remove.
  • Find Plugins by ID String.
  • Attachments are checksummed.
  • Handle a table of extra functions.
  • Add/remove extra functions.
  • Find functions by ID String.
[Encryption modules]
  • Add/remove engines.
[Input/Output modules]
  • Add/remove engines.
[Authentication modules]
  • Add/remove engines.
  • Better support of multi users architecture.
  • If Connect or Listen operations fail, returns error code.
  • Calls to important functions generates logs (AddPlugin, RemovePlugin, AddThread,...)
  • Plugins can generate logs.
  • Write log strings to a file or in Debugger Output.
  • Output file configurable.
  • Basic Windows Viewer included.
  • Basic Process Viewer included (for NT and 9x). + Basic C++ utility functions included. + DLL Image Loader included.
  • LZH Compression included.
  • Important functions generate error codes if it fails.

Server New Features

  • Allow to pass custom data when registering a command. Later, when the command is called, it could access the custom data.
  • Direct call of Server Commands, don't need to create a socket and connect to another socket in the server to execute them.
  • Manage multiple languages.
  • Better control of Listening Sockets and Connection Sockets. Uses mutex.
  • Custom Issue command reply function.
  • Command replies could be stored in a buffer, instead send them to the socket.
  • Configuration stored in .ini file; but could be disabled.

Configuration Tool New Features

  • Must support plugins.
  • Register Plugins Commands.
  • Not based in MFC, doing the extensions are easy to implement.
  • Manage multiple languages.
  • Preferences dialog box.
  • GUI changes: Use Toolbar, flat buttons
  • Allow exporting the server configuration to file.
  • Configuration stored in .ini file.

Client New Features

  • Not based in MFC, doing the extensions easy to implement.
  • Manage multiple languages.
  • Preferences dialog box.
  • Workspaces are checksummed. Avoid load corrupted data.
  • Dialog, font, background colors are customizable.
  • Flat buttons added.
  • Client configuration stored in .ini file. Could run multiple clients with different configuration without issues.
  • Better performance. Could receive a lot of server replies and process them all!.


This is only a sample of the current characteristics (or that are planned) of boxp, it doesn't seek to be a complete listing of characteristics, they are only those that are good for the boxp comparison.

The official Back Orifice XP web site is: Check it out for further details, last versions and support.

Javier Aroche (j_aroche AT users DOT sourceforge DOT net)
BOXP Project Admin


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Javier Aroche
Web Developer
Guatemala Guatemala
I'm a computers enthusiast, software developer and a bit as graphics designer; My computers experience is: LINUX, DOS, Windows 95/98/NT Operating Systems;
PHP, C, C++, Perl, Java, Javascript, few assembly, .NET Programming; Visual C++, Borland C, Visual Basic, Win32 API's, MFC, GUI design, SQL and database programming;
software design and project planning; networks configuration and design;
CorelDraw and Photoshop image design;
AES, Serpent, CAST-256, DES, 3DES, BLOWFISH Crypto modules;
and of course hardware handler.

I'm the Core BOXP Developer!

My Site

Comments and Discussions

GeneralLinker error Pin
Venkadesh11-Jun-07 2:57
MemberVenkadesh11-Jun-07 2:57 
GeneralMissing files Pin
zoz11-May-07 23:57
Memberzoz11-May-07 23:57 
Generalgood work . Keep up the spirit Pin
v_srinu_26_f9-Jan-07 22:47
Memberv_srinu_26_f9-Jan-07 22:47 
GeneralGood work Pin
qiuqianren27-Jan-06 23:38
Memberqiuqianren27-Jan-06 23:38 
GeneralBut Pin
NormDroid27-Jan-06 5:32
professionalNormDroid27-Jan-06 5:32 
GeneralRe: But Pin
Javier Aroche27-Jan-06 7:47
MemberJavier Aroche27-Jan-06 7:47 
GeneralSo this isn't the hacker tool... Pin
Shawn Poulson27-Jan-06 3:11
MemberShawn Poulson27-Jan-06 3:11 
GeneralRe: So this isn't the hacker tool... Pin
Javier Aroche27-Jan-06 7:42
MemberJavier Aroche27-Jan-06 7:42 
GeneralRe: So this isn't the hacker tool... Pin
Jim Crafton27-Jan-06 10:38
MemberJim Crafton27-Jan-06 10:38 
GeneralRe: So this isn't the hacker tool... Pin
Javier Aroche27-Jan-06 11:06
MemberJavier Aroche27-Jan-06 11:06 
GeneralRe: So this isn't the hacker tool... Pin
Jim Crafton27-Jan-06 11:10
MemberJim Crafton27-Jan-06 11:10 
AnswerRe: So this isn't the hacker tool... Pin
Secrets27-Jan-06 20:16
MemberSecrets27-Jan-06 20:16 
GeneralRe: So this isn't the hacker tool... Pin
Javier Aroche28-Jan-06 9:30
MemberJavier Aroche28-Jan-06 9:30 
Secrets27-Jan-06 2:06
MemberSecrets27-Jan-06 2:06 
GeneralRe: GOOD WORK Pin
Javier Aroche27-Jan-06 7:36
MemberJavier Aroche27-Jan-06 7:36 
QuestionBack Orifice ? Pin
Rage27-Jan-06 0:35
professionalRage27-Jan-06 0:35 
AnswerRe: Back Orifice ? Pin
Colin Angus Mackay27-Jan-06 0:45
MemberColin Angus Mackay27-Jan-06 0:45 
GeneralRe: Back Orifice ? Pin
Javier Aroche27-Jan-06 7:39
MemberJavier Aroche27-Jan-06 7:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.