Thread: Decrypt help

  1. #1
    Registered User
    Join Date
    Oct 2013
    Posts
    3

    Decrypt help

    Hi,please help me!
    I want decrypt this code :

    Code:
    void steam_challange_response(sockaddr_in client)
    {
    	char cmd[] = { 
    
    		0xff, 0xff, 0xff, 0xff, 'A' , 0x30, 0x30, 0x30, 	
    		0x30, 0x30, 0x30, 0x30, 0x30, 0x20, 0x31, 0x30,
    		0x37, 0x31, 0x37, 0x32, 0x37, 0x38, 0x31, 0x39, 	
    		0x20, 0x33, 0x20, 0x39, 0x30, 0x30, 0x38, 0x36, 	
    		0x39, 0x33, 0x31, 0x39, 0x31, 0x39, 0x36, 0x33, 
    		0x38, 0x35, 0x33, 0x32, 0x6d, 0x20, 0x31, 0x0a, 
    		0x00
    
    	};
    
    	cout<<cyan<<"["<<ip<<"] -> ["<<inet_ntoa(client.sin_addr)<<"] "<<alb<<cmd;
    
    	sendto(sock,cmd,sizeof(cmd),0,(struct sockaddr *)&client,(unsigned int)sizeof(sockaddr));
    }
    
    
    void connect1(sockaddr_in client)
    {
    	char cmd[] = { '˙', '˙', '˙', '˙' , 0x42 };
    
    	sendto(sock,cmd,sizeof(cmd),0,(struct sockaddr *)&client,(unsigned int)sizeof(sockaddr));
    
    	cout<<cyan<<"["<<ip<<"] -> ["<<inet_ntoa(client.sin_addr)<<"] "<<alb<<cmd<<endl;
    }
    
    
    void connect2(sockaddr_in client)
    {
    	/*cs.pgl.ro*/
    	char peer1_2[] = { 
    		
    		0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x80, 	
    		0x5a, 0x18, 0x01, 0x00, 0x00, 0x00, 0x10, 0x41, 
    		0x23, 0x19, 0x40, 0x01, 0x7d, 0x2e, 0x7f, 0x22, 
    		0x63, 0x64, 0x33, 0x24, 0x61, 0x7e, 0x33, 0x62, 
    		0x21, 0x6e, 0x7c, 0x66, 0x76, 0x22 ,0x3a, 0x6e, 
    		0x1b, 0x3d, 0x21, 0x31, 0x00 
    
    	};
    	
    	/*109.163.228.220 (cs.pgl.ro)
    	char peer1_2[] = {
    
    		0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x80, 
    		0x5a, 0x18, 0x01, 0x00, 0x3a, 0x00, 0x10, 0x41,	
    		0x23, 0x19, 0x40, 0x01, 0x7d, 0x2e, 0x7f, 0x22, 
    		0x63, 0x64, 0x33, 0x24, 0x3f, 0x69, 0x70, 0x30,
    		0x7d, 0x73, 0x26, 0x30, 0x6f, 0x28, 0x32, 0x33,
    		0x2b, 0x38, 0x22, 0x33, 0x3a, 0x28, 0x27, 0x73, 
    		0x35, 0x0a, 0x00
    
    	};
    	*/
     	sendto(sock,peer1_2,sizeof(peer1_2),0,(struct sockaddr *)&client,(unsigned int)sizeof(sockaddr));
    Last edited by Tot Eu Ma; 10-05-2013 at 12:08 PM.

  2. #2
    - - - - - - - - oogabooga's Avatar
    Join Date
    Jan 2008
    Posts
    2,808
    In what sense do you want to "decrypt" it?
    Where did you get it?
    The cost of software maintenance increases with the square of the programmer's creativity. - Robert D. Bliss

  3. #3
    Registered User
    Join Date
    Oct 2013
    Posts
    3
    It's for game : Counter-Strike 1.6 redirect!, source for redirecte fake..
    i want decrypt
    Code:
     char cmd[] = { 
            0xff, 0xff, 0xff, 0xff, 'A' , 0x30, 0x30, 0x30,     
            0x30, 0x30, 0x30, 0x30, 0x30, 0x20, 0x31, 0x30,
            0x37, 0x31, 0x37, 0x32, 0x37, 0x38, 0x31, 0x39,     
            0x20, 0x33, 0x20, 0x39, 0x30, 0x30, 0x38, 0x36,     
            0x39, 0x33, 0x31, 0x39, 0x31, 0x39, 0x36, 0x33, 
            0x38, 0x35, 0x33, 0x32, 0x6d, 0x20, 0x31, 0x0a,
    and
    Code:
    char peer1_2[] = {
    Code:
            
            0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x80,     
            0x5a, 0x18, 0x01, 0x00, 0x00, 0x00, 0x10, 0x41, 
            0x23, 0x19, 0x40, 0x01, 0x7d, 0x2e, 0x7f, 0x22, 
            0x63, 0x64, 0x33, 0x24, 0x61, 0x7e, 0x33, 0x62, 
            0x21, 0x6e, 0x7c, 0x66, 0x76, 0x22 ,0x3a, 0x6e, 
            0x1b, 0x3d, 0x21, 0x31, 0x00 
    *109.163.228.220 (cs.pgl.ro)
        char peer1_2[] = {
    
            0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x80, 
            0x5a, 0x18, 0x01, 0x00, 0x3a, 0x00, 0x10, 0x41,    
            0x23, 0x19, 0x40, 0x01, 0x7d, 0x2e, 0x7f, 0x22, 
            0x63, 0x64, 0x33, 0x24, 0x3f, 0x69, 0x70, 0x30,
            0x7d, 0x73, 0x26, 0x30, 0x6f, 0x28, 0x32, 0x33,
            0x2b, 0x38, 0x22, 0x33, 0x3a, 0x28, 0x27, 0x73, 
            0x35, 0x0a, 0x00
    Last edited by Tot Eu Ma; 10-05-2013 at 01:10 PM.

  4. #4
    - - - - - - - - oogabooga's Avatar
    Join Date
    Jan 2008
    Posts
    2,808
    Is it for a game cheat?
    This board has rules against helping with such things.

    cmd, except for the first 4 bytes, is just an ascii string, so you should be able to interpret that (print it out from 'A' onwards with cout << (cmd+4);

    The other's are somewhat more complicated.

    It's not really "decrypting", though.
    The cost of software maintenance increases with the square of the programmer's creativity. - Robert D. Bliss

  5. #5
    Registered User
    Join Date
    Oct 2013
    Posts
    3
    No it's a game cheat,i want decrypt and rewrite this code, for another ip and name server!

  6. #6
    - - - - - - - - oogabooga's Avatar
    Join Date
    Jan 2008
    Posts
    2,808
    Quote Originally Posted by Tot Eu Ma View Post
    No it's a game cheat,i want decrypt and rewrite this code, for another ip and name server!
    I assume you mean that it's NOT a game cheat.
    Okay.

    The first cmd can be rewritten like this:
    Code:
    char cmd[] =
        "\xff\xff\xff\xff"
        "A00000000 1071727819 3 90086931919638532m 1\n";
    I don't know what you plan to do with that, but there it is.
    I'll take a look at the others and reply in about 10 minutes, but I don't know if I'll be able to figure them out.
    The cost of software maintenance increases with the square of the programmer's creativity. - Robert D. Bliss

  7. #7
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,318
    NO!
    The fact that you've even mentioned a well known and well hacked game is enough for me to never believe you even if you subsequently deny this is simply an attempt to cheat at the game.

    We are here to help those who primarily have an interest in learning to program, not those who primarily have an interest in cheating...
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

  8. #8
    - - - - - - - - oogabooga's Avatar
    Join Date
    Jan 2008
    Posts
    2,808
    Quote Originally Posted by iMalc View Post
    NO!
    The fact that you've even mentioned a well known and well hacked game is enough for me to never believe you even if you subsequently deny this is simply an attempt to cheat at the game.

    We are here to help those who primarily have an interest in learning to program, not those who primarily have an interest in cheating...
    I have to go with iMalc on this.
    Sorry.
    The cost of software maintenance increases with the square of the programmer's creativity. - Robert D. Bliss

  9. #9
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,666
    Nothing to see here - closed.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. XOR Encryption & Decrypt.
    By Siaw Ys in forum C Programming
    Replies: 17
    Last Post: 12-10-2011, 10:02 AM
  2. Decrypt this!
    By francoissoft in forum Contests Board
    Replies: 21
    Last Post: 07-29-2007, 11:11 AM
  3. decrypt/encrypt
    By wonderpoop in forum C Programming
    Replies: 15
    Last Post: 10-18-2006, 06:10 PM
  4. Encrypt/Decrypt
    By bitWise in forum C Programming
    Replies: 2
    Last Post: 10-14-2001, 03:48 PM
  5. how to encrypt/decrypt
    By bitWise in forum C Programming
    Replies: 3
    Last Post: 10-13-2001, 01:02 PM