Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Gez

Eternity backdoor

Recommended Posts

In the vein of the infamous Skulltag backdoor and its predecessor the "Fly" backdoor in csDoom, a backdoor has been discovered in Eternity!

The console's behavior is altered if the player name is "quasar":

static void C_addToHistory(qstring *s)
{
   const char *a_prompt;
   
   // display the command in console
   // hrmm wtf does this do? I dunno.
   if(gamestate == GS_LEVEL && !strcasecmp(players[0].name, "quasar"))
      a_prompt = altprompt;
   else
      a_prompt = inputprompt;
void C_Drawer(void)
{
   int y;
   int count;
   int real_height;
   static int oldscreenheight = 0;
   static int oldscreenwidth = 0;

... stuff stuff stuff ...

   // input line on screen, not scrolled back in history?
   
   if(Console.current_height > c_font->absh && Console.showprompt && 
      message_pos == message_last)
   {
      const char *a_prompt;
      char tempstr[LINELENGTH];
      
      // if we are scrolled back, dont draw the input line
      if(message_pos == message_last)
      {
         if(gamestate == GS_LEVEL && !strcasecmp(players[0].name, "quasar"))
            a_prompt = altprompt;
         else
            a_prompt = inputprompt;

         psnprintf(tempstr, sizeof(tempstr), 
                   "%s%s_", a_prompt, input_point);
      }
Dastardly I tell you!

(PS: This is not an April's Fool joke in so far as it is real. However, as far as the seriousness of the offense goes, it could as well be. All this does is change the character displayed in the console as the prompt from a $ to a #.)

Share this post


Link to post

Yeah he probably should have pasted this part too :P

static const char *inputprompt = FC_HI "$" FC_NORMAL;
// gee what is this for? :)
static const char *altprompt = FC_HI "#" FC_NORMAL;

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×