exploit Dropbox file redundancy check [closed] - hash

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
in Dropbox if a file is already present at their servers, the file is not uploaded. It syncs instantly..
Now, this check is done on a few things i think, probably the file size, file name, and of course the CRC (md5 hash or something...)
I was thinking.. if I know the file name, its size and its CRC, is it possible to create a fake file that produces that particular CRC (reverse hashing) so that dropbox actually syncs the true file?
It's just an experiment, it could be done for example with linux distribution images..
any idea on the topic?

Curious to see that someone is thinking about this also.
Problem 1:
Even if you were able to create a fake file with the same CRC, the client would just not upload the file again (but you would still keep your fake file in your computer).
You would just receive the desired file on the other computers associated with your dropbox account.
Problem 2:
Creating that fake file seems a bit impossible from my point of view. CRC's were developed to check file integrity so it seems a bit complex to create a file with the same CRC without a massive brute-force.
MY SUGGESTION:
I believe it would be much easier to modify the CRC routines in the Dropbox source code (if you have it) and allow the injection of your fake CRC values.
Final comment: I might not be very creative but I do not find a legal reason for the use of this scheme. Dropbox already provides a Public folder to share files (but traffic limits apply).

Related

What is the best way to make localization in iPhone? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am working on the localization in the iPhone . I have used apple in built localization technique i.e. after saying make localize in Xcode provides two different .string file where we have to put the key and value for the localized word . I have implemented this method in my project . One more thing i have read somewhere that we can make localization by using database .I don't know how ? probably by storing the localized words in key value pair inside the database . But which is the best way to do this ?
There are several different techniques or ways to localize iphone app, we can localize complete .xib files or prepared localized string files.
Following links will elaborate this :
https://developer.apple.com/internationalization/
http://www.raywenderlich.com/2876/how-to-localize-an-iphone-app-tutorial
The most common way you will find is using the NSLocalizedStrings with a .string file per language. This concept should seem familiar to localizers who have used gettext before.
I'm not sure about putting the data into a database unless you had a bunch of strings that needed localizing. Otherwise, you probably won't gain much for the effort of storing the strings in a database.

Newsstand App Backend [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I wanted to get some clear "real world" info on what kinda backend is required when running a newsstand app.
The app i intend to make should have the following features.
Issues, each issue with a bunch of articles.
An Issue can be "Free" or "Paid" depending on how its "Pushed"
Auto subscriptions
Push notifications
Data collection - getting some stats from the users.
I currently have no server, in this case, whats the server requirement? All i want is a print magazine kinda app, essentially a PDF. Is it possible to let Apple host the data with current issues.
Another question besides the server is, how are these Issues packaged? Forexample if its a text file or a pdf?
Any direction would be great
Taking your points in turn:
I currently have no server, in this case, whats the server requirement? All i want is a print magazine kinda app, essentially a PDF. Is it possible to let Apple host the data with current issues.
Apple does not provide hosting for newsstand content. You need your own server for this. It needs to hold the issues, and usually also respond to requests from your app about available and new issues.
Another question besides the server is, how are these Issues packaged? Forexample if its a text file or a pdf?
They are packaged however you like - you tell the newsstand framework which asset(s) need downloading for a particular issue (based on the response youve given about the issues above) Typically you'd bundle it all together in a zip file and unpack / process it on the device when the download is completed.
It's important to note that newsstand is not much more than a framework to enable backgrounded downloads and notifications, and to maintain a library of assets in your app's caches directory. The content and its display is entirely up to you, the developer.

How can I stop the automatic string to number conversion in perl? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Well, when I named a folder with "4.0" in backup and store the name in database. When I get it from the database using perl, I changed to "4". How can I stop the automatic conversion?
There are several things that can go wrong here.
The value you have in the variable might have changed before you insert it into the database
The database driver may think it's a number and might change it
The database server might change it before it stores it
And, the same things might happen on the way out.
Check each of those things to see there the value changes. Then, focus on that part and add to your question.
As far as I'm aware, you can't. The DBD driver you're using (you didn't specify) is probably written in XS, and is using its own heuristics to figure this out. Most likely, you'll end up having to specify the type when you bind (SQL_CHAR, for example) to affect its heuristics.
Please remember: post code and details so people can help.

Anti - virus : How an antivirus checks a file infected by virus? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I searched for working of an anti virus?
but could not got satisfactory answer .. except that
1) it goes through dictionary based approach in which any suspicious code matched with some entry in database is reported for an action to the use
or
2) it follows the harmful activities of a process eg.then terminates it if file deletes some critical files for the stability of the system
*when a pen drive is inserted to a computer then exactly how an antivirus detects a virus or a file infected by virus ? and at which layer antivirus scans the files ? *
Thanks in advance :D
In general, antivirus software scans files when they are written to disk.
Here is an example that compares two approaches to reading an email attachment:
If a user views an email and clicks to open an attachment, there will usually be a prompt to save the attachment, or to just open it right away without saving it. This is how many users get viruses on their machines. If they click to open the attachment without saving it, the antivirus doesn't have an opportunity to scan the file.
On the other hand, if the user saves the file first, then the
antivirus can scan it.
Some security software performs other checks besides just file saving. But this is basically how antivirus works.
In the case of the pen drive, the antivirus may not scan the files (unless the user directs it to do so), because the files have already been saved. However, some antivirus software will react to this event (attaching a new device) and catch the virus.

How to use perl code? Where to paste it? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I was looking through google for a software that would meet my needs and found very short, 12 lines with regular expressions (whatever this is), perl code. The person who posted it is claiming to say, to others, that this code does what I want. But since Im not programmer I don't know what to do with it? I might need to paste it into txt file and save it somehow but the code is supposted to use text files. I don't think I would be able to use text files inside another text. My purpose is to filter email addresses from giant messy txt files. Im trying to use this code (but don't know what to do with it): http://linuxconfig.org/extract-email-address-from-a-text-file
You run the program using perl. Instructions for getting perl are provided at: http://www.perl.org/get.html
Then see learn.perl.org for getting started instructions.
Assuming you are using a UNIX-like operating system (i.e. not Windows) the process is:
Put the code in a text file on a system with perl installed
Make it executable (chmod +x filename)
Run it as per the example under "Execution".
Save the content to a file named e.g.
extract.pl
And install per for windows: http://strawberryperl.com/ ; if you are on Unix, well done.
now you can execute the script by opening a console window, changing in the directory where the script is saved and execute
perl extract.pl < yourtextfile.txt