Thread: XorStr?

Results 1 to 15 of 15
  1. #1
    TrixtSam's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Posts
    89
    Reputation
    10
    Thanks
    129

    XorStr?

    Sup guys, I added xor encyrption to my base, and it gives me a 2 letter string like: '8l' and so on.. And makes my hack crash.. any ideas?

  2. #2
    Flengo's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    /admincp/banning.php
    Posts
    20,566
    Reputation
    5180
    Thanks
    14,176
    My Mood
    Inspired
    Posting the exact error would help.
    I Read All Of My PM's & VM's
    If you need help with anything, just let me know.

     


     
    VM | PM | IM
    Staff Administrator Since 10.13.2019
    Publicist Since 04.04.2015
    Middleman Since 04.14.2014
    Global Moderator Since 08.01.2013
    Premium Since 05.29.2013

    Minion+ Since 04.18.2013

    Combat Arms Minion Since 12.26.2012
    Contributor Since 11.16.2012
    Member Since 05.11.2010


  3. #3
    TrixtSam's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Posts
    89
    Reputation
    10
    Thanks
    129
    Quote Originally Posted by Flengo View Post
    Posting the exact error would help.
    I dont get any errors:s, the strings don't DeCrypt or something.. and if they do its like 2 letters, and not ones from my enctrypted text.

  4. #4
    Otaviomorais's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Location
    MG, Brasil
    Posts
    268
    Reputation
    10
    Thanks
    124
    My Mood
    Dead
    I think your code is wrong, try to serch the correct one here.

  5. #5
    Flengo's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    /admincp/banning.php
    Posts
    20,566
    Reputation
    5180
    Thanks
    14,176
    My Mood
    Inspired
    Quote Originally Posted by TrixtSam View Post
    I dont get any errors:s, the strings don't DeCrypt or something.. and if they do its like 2 letters, and not ones from my enctrypted text.
    Post your XorStr template and one method (example) where you are trying to decrypt a string.
    I Read All Of My PM's & VM's
    If you need help with anything, just let me know.

     


     
    VM | PM | IM
    Staff Administrator Since 10.13.2019
    Publicist Since 04.04.2015
    Middleman Since 04.14.2014
    Global Moderator Since 08.01.2013
    Premium Since 05.29.2013

    Minion+ Since 04.18.2013

    Combat Arms Minion Since 12.26.2012
    Contributor Since 11.16.2012
    Member Since 05.11.2010


  6. #6
    TrixtSam's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Posts
    89
    Reputation
    10
    Thanks
    129
    Code:
    #include "Includes.h"
    
    template <int XORSTART, int BUFLEN, int XREFKILLER>
    
    class XorStr
    {
    private: 
    	XorStr();
    public: 
    	char s[BUFLEN];
    
    	XorStr(const char * xs);
    
    	~XorStr()
    	{
    		for ( int i = 0; i < BUFLEN; i++ ) s[i]=0; 
    	}
    };
    
    template <int XORSTART, int BUFLEN, int XREFKILLER>
    XorStr<XORSTART,BUFLEN,XREFKILLER>::XorStr(const char * xs)
    {
    	int xvalue = XORSTART;
    	int i = 0;
    
    	for ( ; i < ( BUFLEN - 1 ); i++ ) 
    	{
    		s[ i ] = xs[ i - XREFKILLER ] ^ xvalue;
    		xvalue += 1;
    		xvalue %= 256;
    	}
    
    	s[BUFLEN - 1] = 0;
    }
    Code:
    #define STRING_VISUAL/*-[ Visual ]-*/XorStr<0x1D,13,0x5B99B88B>("\x30\x45\x3F\x76\x48\x51\x56\x45\x49\x06\x7A\x05"+0x5B99B88B).s
    then i'd use this as a menu item..
    Code:
    pMenu->AddItem(STRING_VISUAL, &Variables.Visual);

  7. #7
    Flengo's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    /admincp/banning.php
    Posts
    20,566
    Reputation
    5180
    Thanks
    14,176
    My Mood
    Inspired
    Code:
    #pragma once
    
    
    template <int XORSTART, int BUFLEN, int XREFKILLER>
    class XorStr
    {
    private:
    	XorStr( );
    public:
    	char s[BUFLEN];
    
    
    	XorStr( const char* xs );
    	~XorStr( )
    	{
    		for( int i = 0; i < BUFLEN; ++i )
    			s[i] = 0;
    	} // clear string from stack
    	operator char*( )
    	{
    		return s;
    	}
    	operator const char*( )
    	{
    		return s;
    	}
    };
    
    
    template <int XORSTART, int BUFLEN, int XREFKILLER>
    __declspec( noinline ) XorStr<XORSTART, BUFLEN, XREFKILLER>::XorStr( const char* xs )
    {
    	int xvalue = XORSTART;
    	for( int i = 0; i < BUFLEN - 1; ++i )
    	{
    		s[i] = xs[i - XREFKILLER] ^ xvalue;
    		xvalue += 1;
    		xvalue %= 256;
    	}
    	s[BUFLEN - 1] = 0;
    }
    Code:
    /*Test String*/XorStr<0x51,12,0x7695E86E>("\x05\x37\x20\x20\x75\x05\x23\x2A\x30\x34\x3C"+0x7695E86E).s
    Try that
    I Read All Of My PM's & VM's
    If you need help with anything, just let me know.

     


     
    VM | PM | IM
    Staff Administrator Since 10.13.2019
    Publicist Since 04.04.2015
    Middleman Since 04.14.2014
    Global Moderator Since 08.01.2013
    Premium Since 05.29.2013

    Minion+ Since 04.18.2013

    Combat Arms Minion Since 12.26.2012
    Contributor Since 11.16.2012
    Member Since 05.11.2010


  8. #8
    TrixtSam's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Posts
    89
    Reputation
    10
    Thanks
    129
    Quote Originally Posted by Flengo View Post
    Code:
    #pragma once
    
    
    template <int XORSTART, int BUFLEN, int XREFKILLER>
    class XorStr
    {
    private:
    	XorStr( );
    public:
    	char s[BUFLEN];
    
    
    	XorStr( const char* xs );
    	~XorStr( )
    	{
    		for( int i = 0; i < BUFLEN; ++i )
    			s[i] = 0;
    	} // clear string from stack
    	operator char*( )
    	{
    		return s;
    	}
    	operator const char*( )
    	{
    		return s;
    	}
    };
    
    
    template <int XORSTART, int BUFLEN, int XREFKILLER>
    __declspec( noinline ) XorStr<XORSTART, BUFLEN, XREFKILLER>::XorStr( const char* xs )
    {
    	int xvalue = XORSTART;
    	for( int i = 0; i < BUFLEN - 1; ++i )
    	{
    		s[i] = xs[i - XREFKILLER] ^ xvalue;
    		xvalue += 1;
    		xvalue %= 256;
    	}
    	s[BUFLEN - 1] = 0;
    }
    Code:
    /*Test String*/XorStr<0x51,12,0x7695E86E>("\x05\x37\x20\x20\x75\x05\x23\x2A\x30\x34\x3C"+0x7695E86E).s
    Try that
    Sorry for late reply.. but it doesnt show a string now:s

  9. #9
    Flengo's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    /admincp/banning.php
    Posts
    20,566
    Reputation
    5180
    Thanks
    14,176
    My Mood
    Inspired
    Quote Originally Posted by TrixtSam View Post
    Sorry for late reply.. but it doesnt show a string now:s
    Post the method function you are using to add an item to the menu.
    Last edited by Flengo; 12-26-2012 at 07:19 PM.
    I Read All Of My PM's & VM's
    If you need help with anything, just let me know.

     


     
    VM | PM | IM
    Staff Administrator Since 10.13.2019
    Publicist Since 04.04.2015
    Middleman Since 04.14.2014
    Global Moderator Since 08.01.2013
    Premium Since 05.29.2013

    Minion+ Since 04.18.2013

    Combat Arms Minion Since 12.26.2012
    Contributor Since 11.16.2012
    Member Since 05.11.2010


  10. #10
    TrixtSam's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Posts
    89
    Reputation
    10
    Thanks
    129
    Quote Originally Posted by Flengo View Post


    Post the method function you are using to add an item to the menu.
    Code:
    pMenu->AddItem(/*"NX Chams"*/GROUP_ESP, &Variables.Chams, opt_OFFON, 2);
    To add an item to the menu.

    Code:
    void D3DMenu::AddItem(char *txt, int *var, char **opt, int maxval, int typ)
    {
      if (noitems>=(maxitems-3)) return;
      MENU[noitems]->typ=typ;
      MENU[noitems]->txt=txt;
      MENU[noitems]->opt=opt;
      MENU[noitems]->var=var;
      MENU[noitems]->maxval=maxval;
      noitems++;
      totheight=(noitems*height)+titleheight;
    }
    Thats the function.
    If it helps.. It's fuck king 7 base.

  11. #11
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,404
    Reputation
    157
    Thanks
    4,003
    My Mood
    Flirty
    XOR doesnt work with hans menu.
    its got something to do with storing the text in an array i believe.

  12. #12
    TrixtSam's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Posts
    89
    Reputation
    10
    Thanks
    129
    Quote Originally Posted by ac1d_buRn View Post
    XOR doesnt work with hans menu.
    its got something to do with storing the text in an array i believe.
    Its Fuck King 7 Menu:s

  13. #13
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,404
    Reputation
    157
    Thanks
    4,003
    My Mood
    Flirty
    Quote Originally Posted by TrixtSam View Post
    Its Fuck King 7 Menu:s
    Well who evers menu it is, XOR doesnt work with it. You need to use another form of encryption

  14. #14
    TrixtSam's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Posts
    89
    Reputation
    10
    Thanks
    129
    Quote Originally Posted by ac1d_buRn View Post


    Well who evers menu it is, XOR doesnt work with it. You need to use another form of encryption
    Umk.. Thanks..

  15. #15
    Flengo's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    /admincp/banning.php
    Posts
    20,566
    Reputation
    5180
    Thanks
    14,176
    My Mood
    Inspired
    Quote Originally Posted by TrixtSam View Post
    Umk.. Thanks..
    He's right. There's a simple encryption method posted in this section. You should try it.

    Good luck

    /Solved
    /Closed
    I Read All Of My PM's & VM's
    If you need help with anything, just let me know.

     


     
    VM | PM | IM
    Staff Administrator Since 10.13.2019
    Publicist Since 04.04.2015
    Middleman Since 04.14.2014
    Global Moderator Since 08.01.2013
    Premium Since 05.29.2013

    Minion+ Since 04.18.2013

    Combat Arms Minion Since 12.26.2012
    Contributor Since 11.16.2012
    Member Since 05.11.2010


Similar Threads

  1. [Release] Whit 04/11 -> ESP World, Aimbot, XorStr
    By ChaosMagician in forum Combat Arms BR Hack Coding/Source Code
    Replies: 27
    Last Post: 11-27-2012, 12:43 PM
  2. [Solved] HELP C++ XorStr
    By Oxxxymiron in forum Combat Arms BR Coding Help
    Replies: 3
    Last Post: 10-25-2012, 12:22 PM
  3. Help in C++ XorStr
    By Oxxxymiron in forum Combat Arms Coding Help & Discussion
    Replies: 1
    Last Post: 10-25-2012, 05:02 AM