LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 11-13-2008, 09:46 AM   #1
pogo123
LQ Newbie
 
Registered: Nov 2008
Posts: 3

Rep: Reputation: 0
Exclamation 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.
 
Old 11-13-2008, 11:30 AM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 404Reputation: 404Reputation: 404Reputation: 404Reputation: 404
Quote:
Originally Posted by pogo123 View Post
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.
 
Old 11-13-2008, 01:57 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
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.
 
  


Closed Thread

Tags
ubuntu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
moving files from a location to other, preventing to move incomplete files pogo123 Programming 8 11-14-2008 06:21 AM
move files without overwriting files nathan2225 Linux - General 1 04-11-2008 04:01 PM
How do I move files without overwrite exitng files? nadavvin Linux - General 10 11-03-2006 02:49 PM
how to move location to store temp device and socket files? hedpe Linux - General 1 03-09-2006 06:41 AM
P2P (xmule) and incomplete files peeples Linux - Software 1 05-08-2004 10:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration