LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   moving files from a location to other, preventing to move incomplete files (http://www.linuxquestions.org/questions/linux-newbie-8/moving-files-from-a-location-to-other-preventing-to-move-incomplete-files-683155/)

pogo123 11-13-2008 09:46 AM

moving files from a location to other, preventing to move incomplete files
 
Hi:

OS: Ubuntu Intrepid Ibex

Need help in moving files from location 1 to location 2, in linux, using some sort of code in order to avoid moving incomplete files. The funtion needs to be recursive in order to continue trying to move the file and do so as soon as possible.

As an example: when using the unrar function in a rar password protected file, the process will extract the file before asking for the password, the file is completely extracted and for a second or two stays in the directory completely available, after that the unrar program then ask you for the password and begins to erase the file. What I am trying to accomplish is to exploit this weakness in the process in order to move the files before the unrar routines is able to destroy the file.

Thanks in advance for your help in this matter.

i92guboj 11-13-2008 11:30 AM

Quote:

Originally Posted by pogo123 (Post 3340693)
Hi:

OS: Ubuntu Intrepid Ibex

Need help in moving files from location 1 to location 2, in linux, using some sort of code in order to avoid moving incomplete files. The funtion needs to be recursive in order to continue trying to move the file and do so as soon as possible.

As an example: when using the unrar function in a rar password protected file, the process will extract the file before asking for the password, the file is completely extracted and for a second or two stays in the directory completely available, after that the unrar program then ask you for the password and begins to erase the file. What I am trying to accomplish is to exploit this weakness in the process in order to move the files before the unrar routines is able to destroy the file.

Thanks in advance for your help in this matter.

The first thing you must know is that trying to bypass encryption (even weaker ones, which is not the case) is not legal, and I don't think it's ok to ask about how to that in this forum.

The second thing you must know is that there's no vulnerability in the process. The rar files are encrypted using AES128 (if my memory serves correctly), one of the most solid encryption algorithms out there. That means that, unless you have the decription key, all you are going to get is an useless heap of bytes which will have no resemblance at all with the original contents.

The key is used as a seed to encrypt all your files, and you need it to decrypt them. No pass == no files, easy as that. So, you need the password.

Tinkster 11-13-2008 01:57 PM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.


http://www.linuxquestions.org/questi...d.php?t=683150

Plus I find the intention VERY dubious.


All times are GMT -5. The time now is 09:12 AM.