[Dev] XorTool

Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    You won't get me... PanKJ is offline
    MemberRank
    Sep 2010 Join Date
    Too Damn HighLocation
    593Posts

    [Dev] XorTool

    Ok guys since you seem not to have one, ive attached a custom i made. The process is easy: find the desired tex file, open it with the tool, xor it. Then use res-x editor (by tag-x) to open the resulting file. Let me know if it doesnt work (not sure if i included some libraries when building the xorer cause theyre anyway in my pc).

    Attachment removed - did not work. Check following posts.
    Last edited by PanKJ; 01-01-11 at 08:35 PM.


  2. #2
    Don't. gigabyte is offline
    MemberRank
    Sep 2010 Join Date
    CanadaLocation
    367Posts

    Re: [Dev] XorTool


  3. #3
    Member ricodex is offline
    MemberRank
    Oct 2010 Join Date
    84Posts

    Re: [Dev] XorTool

    have the same error me

  4. #4
    You won't get me... PanKJ is offline
    MemberRank
    Sep 2010 Join Date
    Too Damn HighLocation
    593Posts

    [Dev] XorTool

    Happy new year guys. So i found some time to fix this and here is the working (i hope) exe with its dependancies. The only limit it has is that i dont allow it to read files larger than 9999999 bytes. You shouldnt xor so big files anyway. There is also a bug: if the output file path is invalid it wont catch the error. Finally, the xor keys are handled as strings and im not sure if and which non-printable characters work (the default xor keys work ok so there shouldnt be a problem). Pls let me know if it doesnt run again (i have the full labview development system installed so i cant check whether it doesnt run without it). Link 13MB.

    For those who dont want to "install" it (it isnt a standalone and im not gonna make a gui from scratch to make a tool i have already) heres the c++ that does the same thing:
    Code:
    class XorKey
    {
    private:
    	char *base;
    	unsigned int size;
    public:
    	XorKey(char *base, unsigned int size)
    	{
    		if(size&&base)
    		{
    			XorKey::size = size;
    			XorKey::base = new char[size];
    			for(unsigned int i=0;i<size;i++) *(XorKey::base+i)=*(base+i);
    		}
    	}
    	char Read(unsigned int pos)
    	{
    		return *(base+(pos%size));
    	}
    	~XorKey()
    	{
    		delete base;
    	}
    };
    
    int XorEncode(FILE *fsrc, FILE *fdst, XorKey *x)
    // Note that when calling this function fscr needs read-only BINARY mode and
    // fdst needs write-only BINARY mode. Better set both files mode to sequential access.
    {
    	int temp, c=0;
    	while(1)
    	{
    		if(c>(unsigned short int)-1) c=0;
    		temp=fgetc(fsrc);
    		if(temp==EOF) break;
    		temp^=x->Read(c);
    		fputc(temp,fdst);
    		c++;
    	}
    }
    Calling XorEncode with proper arguments and INITIALIZED XorKey should do.

    In that case:
    Code:
    Default XorKeys
    
    Key for ips, tools	= ~8xANs(^fP{)34$(fcbTN$(C-=x
    Key for obdc		= @34ns%<<fdsa(Tflsd!sndsa^#)fndsla$nvsa$fndsla&nfdsJak(fnldsa!#F
    Key for quest.tex	= alkdjh flds flsjadhf ;kjdfha;sdflkha;s33
    Key for afllist.tex	= asdfasveq45hnsdn
    Key for helptext.tex	= asvawevawe!23r23
    Key for ss		= 5%$#djfnskdnf%l10d5fn*^%$djfner20dn&^%fjesdas0$^&%sdwfvvskdi56*$%$#
    Last edited by PanKJ; 01-01-11 at 09:16 PM.

  5. #5
    Valued Member zeyden is offline
    MemberRank
    May 2009 Join Date
    MasangSoftLocation
    132Posts

    Re: [Dev] XorTool

    its still same i try it and doesnt work debug > lvrt.dll!650a9960()
    here is stop working this is all at the moment i am to busy whit othere files ned to finish mine sma thingy fast

  6. #6
    You won't get me... PanKJ is offline
    MemberRank
    Sep 2010 Join Date
    Too Damn HighLocation
    593Posts

    Re: [Dev] XorTool

    Dont try to debug it mate. Has anyone else tried it cause i have to know how it works so that the ga tool im making will work as well. xxdemonxx says it worked for him so maybe you didnt do something?
    Last edited by PanKJ; 02-01-11 at 11:49 AM.

  7. #7
    Don't. gigabyte is offline
    MemberRank
    Sep 2010 Join Date
    CanadaLocation
    367Posts

    Re: [Dev] XorTool

    It still doesn't work, same error for runtime.

  8. #8
    You won't get me... PanKJ is offline
    MemberRank
    Sep 2010 Join Date
    Too Damn HighLocation
    593Posts

    Re: [Dev] XorTool

    You put the folder in the prgrams file directory and ran the reg file?

    PS: i can upload the run-time engine but its big (like 90MB i think but making gui in c++ would take ages anyway).
    Last edited by PanKJ; 02-01-11 at 10:56 PM.

  9. #9
    Don't. gigabyte is offline
    MemberRank
    Sep 2010 Join Date
    CanadaLocation
    367Posts

    Re: [Dev] XorTool

    Yes..

  10. #10
    You won't get me... PanKJ is offline
    MemberRank
    Sep 2010 Join Date
    Too Damn HighLocation
    593Posts

    Re: [Dev] XorTool

    So im making a standalone gui in vc++. Its not gonna take long. Note: the code ive posted above can obviously be optimized and include some error checking.

  11. #11
    Apprentice orangek3nny is offline
    MemberRank
    Dec 2010 Join Date
    20Posts

    Re: [Dev] XorTool

    @gigabyte: Adjust the dependencies string inside the .reg file according to your folder location. Keep in mind that "Program Files" is not the same folder as "Program Files (x86)". You may also add the "Wow6432Node" path for Windows x64

    @PanKJ: The application starts and stops working after ~2 seconds. The GUI does not appear, in case there is one.


    EDIT:
    Just install this runtime and it works (~30MB). Thanks for the tool!
    ftp://ftp.ni.com/support/labview/win...VRTE901min.exe
    Last edited by orangek3nny; 04-01-11 at 12:11 PM.

  12. #12
    You won't get me... PanKJ is offline
    MemberRank
    Sep 2010 Join Date
    Too Damn HighLocation
    593Posts

    Re: [Dev] XorTool

    Try this: make a Program Files folder in C:\ (if there isnt one already) and then put the folder i gave you there. Because no matter the registry, the "exe" file tries to find 2 dlls in this place and i havent found a fix for this. Anyway, it might not work either way because ive excluded almost the whole run time eng.

    There is a gui and i could post a ss if you dont believe me but since the run time eng is too big for such a small thing id better make a standalone in vc++. Atm im trying to solve a problem (somethings gone wrong with localization settings and, despite i xor, the strings are wchar and the result isnt exactly as it should).

    The problem is how ill make redistributable ga tool; its too coplex to make it in c++ and then try to fit it in a vc++ gui. In that case whoever wants to use it will have to download the full run time eng.
    Last edited by PanKJ; 04-01-11 at 02:05 PM.

  13. #13
    Apprentice orangek3nny is offline
    MemberRank
    Dec 2010 Join Date
    20Posts

    Re: [Dev] XorTool

    Well, 30MB ain't that big and your tool works pretty well with a minimum runtime installation of v9.0.1; I edited my previous post.
    Whoever wants to run a server, has already downloaded several GB of data, 0.03 more are nothing :)

  14. #14
    You won't get me... PanKJ is offline
    MemberRank
    Sep 2010 Join Date
    Too Damn HighLocation
    593Posts

    Re: [Dev] XorTool

    Quote Originally Posted by orangek3nny View Post
    Well, 30MB ain't that big and your tool works pretty well with a minimum runtime installation of v9.0.1; I edited my previous post.
    Whoever wants to run a server, has already downloaded several GB of data, 0.03 more are nothing :)
    Im suprised you found it. I just didnt want to make you download it and INSTALL it. After all i didnt have an installer for the run-time eng only and when i tried to make an installer project it made something like 100MB . So i thought after installation id be even bigger. I suppose if you have this run-time eng youll be able to run any program based on labview.

  15. #15
    Apprentice orangek3nny is offline
    MemberRank
    Dec 2010 Join Date
    20Posts

    Re: [Dev] XorTool

    Wasn't that hard, Google did most of the job :-) Most apps will run I guess. There is also a "Standard Run-Time Installation" with increased filesize, lets hope it won't be needed later ..
    Last edited by orangek3nny; 04-01-11 at 03:38 PM.



Page 1 of 2 12 LastLast

Advertisement