Solution for passworded downloads
Solution for passworded downloads
Please all, help think of the best way to attack the passworded-rar-in-download problem.
This seems a new wat to spead mallware and receive ad fundings, but sure is annoying.
I thought something like to open file after the first few rar's have downloaded to review the contents.
But a better solution would be some sort of nuke system where if more than x nukes the post will be filtered. I don't know how this extends to newsgroup policy.
But the bottom line must be, this has to stop. So help brainstorm for the best (long term) solution.
This seems a new wat to spead mallware and receive ad fundings, but sure is annoying.
I thought something like to open file after the first few rar's have downloaded to review the contents.
But a better solution would be some sort of nuke system where if more than x nukes the post will be filtered. I don't know how this extends to newsgroup policy.
But the bottom line must be, this has to stop. So help brainstorm for the best (long term) solution.
- Downstream
- Posts: 225
- Joined: Fri Dec 09, 2005 7:42 am
- Location: Somewhere downstream
Some free .nzb sites mark hits with "password protected".
But they are not failproof.
https://bugs.launchpad.net/sabnzbd/+bug/562296
I want to add if the header of the first RAR is corrupted this test can give false results.
===========================
Sorry, that is not true. It is true that WinRAR can not distinguish between password protected data and corrupted data based on the data and the checksum alone, but the RAR format has a flag for password protected files in the header, this is the way the software knows when to prompt the user for a password.
Password protected files can usually be detected by just having the first MESSAGE PART of the first .rar file, like this:
The following is some code I have used for another project:
$data is the first n bytes of a RAR archive file.
$rar=unpack('H14header/H6junk/S1encrypted', $data);
if ($rar['header']!='526172211a0700') {
output('Not a RAR archive: '.$filename.' - header is '.$rar['header']);
}
if ($rar['encrypted'] & 128) {
output('Encrypted archive!');
$encrypted=true;
} else {
$file=tempnam('/tmp','unrar-test-file');
file_put_contents($file, $data);
exec('unrar lt -ep -c- -id -r -kb -p- '.$file, $output);
unlink($file);
foreach ($output as $line) if (substr($line,0,1)=='*') $encrypted=true;
if ($encrypted) {
output('Encrypted file in archive!');
}
}
But they are not failproof.
https://bugs.launchpad.net/sabnzbd/+bug/562296
I want to add if the header of the first RAR is corrupted this test can give false results.
===========================
Sorry, that is not true. It is true that WinRAR can not distinguish between password protected data and corrupted data based on the data and the checksum alone, but the RAR format has a flag for password protected files in the header, this is the way the software knows when to prompt the user for a password.
Password protected files can usually be detected by just having the first MESSAGE PART of the first .rar file, like this:
The following is some code I have used for another project:
$data is the first n bytes of a RAR archive file.
$rar=unpack('H14header/H6junk/S1encrypted', $data);
if ($rar['header']!='526172211a0700') {
output('Not a RAR archive: '.$filename.' - header is '.$rar['header']);
}
if ($rar['encrypted'] & 128) {
output('Encrypted archive!');
$encrypted=true;
} else {
$file=tempnam('/tmp','unrar-test-file');
file_put_contents($file, $data);
exec('unrar lt -ep -c- -id -r -kb -p- '.$file, $output);
unlink($file);
foreach ($output as $line) if (substr($line,0,1)=='*') $encrypted=true;
if ($encrypted) {
output('Encrypted file in archive!');
}
}
- Downstream
- Posts: 225
- Joined: Fri Dec 09, 2005 7:42 am
- Location: Somewhere downstream
- Downstream
- Posts: 225
- Joined: Fri Dec 09, 2005 7:42 am
- Location: Somewhere downstream
-
- Posts: 44
- Joined: Tue Feb 20, 2007 10:15 pm
That feature of stopping rar in rar downloads sounds great. These people uploading all these passworded files must be making money, but surely after a while people should have learnt just to bin them and not go to the site they send you to.
Just a handy little tip, always download the LAST rar file and not the first one, the last one is usually not only much smaller than the first, but also the one that contains the password.txt file.
Also perhaps there is a way to use http://www.mysterbin.com software within the supersearch ?
Just a handy little tip, always download the LAST rar file and not the first one, the last one is usually not only much smaller than the first, but also the one that contains the password.txt file.
Also perhaps there is a way to use http://www.mysterbin.com software within the supersearch ?
So does the 5.0 beta contain this? REALLY tired of downloading crap or having to download what I dont need so that I can view what is inside. A preview feature would be the bomb.Spiril wrote:A feature that prevents NewsLeecher from downloading RAR-in-RAR sets is on the roadmap for NewsLeecher V4.1 or NewsLeecher V5.0.
Thanks
There is only one retard that is doing most, if not all of the passworded crap on the news servers. DO NOT WASTE YOUR TIME DOWNLOADING ANYTHING POSTED BY [b]Yenc-PP-A&A[/b]. Movies by this scum are showing up primarily in A.B.Movies group. I have seen some in other groups by this same scum bag.
Makes you wish there were group monitors out there that could just filter out or have an auto delete for certain poster's files.
Makes you wish there were group monitors out there that could just filter out or have an auto delete for certain poster's files.
-
- Posts: 30
- Joined: Fri Oct 01, 2004 7:27 pm