Article View: news.software.nntp
Article #62462Multi-part fakes: Questions
From: t.h.i.s.n.t.h.a.t DS
Date: Fri, 27 Dec 2002 21:15
Date: Fri, 27 Dec 2002 21:15
65 lines
3485 bytes
3485 bytes
Hi, I just came back here to look to see what was new, and apparently bogus parts in multi-part binaries is new. This concerns me as I am writing a binary nntp d/l'er (I've had help from you guys before, thanks for your help....2/3 done now). I had some quick ideas, maybe you can let me know if these may help out if my app runs into this. Here is my process: After parsing a header dataset string, i look for (x/x) or [x/x] starting at the end of the subject and working back. (I know the issues with this one) If that is found, it is removed from the subject string and put into 2 columns (partNum, partTotal) of the db, along with the other data. To combine the parts: 1) I then sort the db by subject ,date , partNum 2) Then I step thru the resulted data. If i come across a part 1 of 1, it triggers a possible multi-part procedure. 3) This procedure then continues to step thru the data until the subject is not the same as the 'part 1 of 1' subject. (Remember, I removed the (x/x) from the subject.) For each step this proc does, it checks to see if the Sender is the same, if the partNum is one greater than the partNum before it, and the date is newer than the last. When it gets to the 'assumed' last part, if each msg from 1/1 to 30/30 (or whatever) satisfies all these criteria, it marks it as a complete multi-part post. So.....after reading about these bogus parts, I feel I need to do a couple other things: 1) Be sure the msgID after the '@' is all the same also. 2) Figure out how to verify the last part. Or not, maybe, if it's sorted by date the good last part would always come first. This would insure that of all the parts I receive the 'good' parts would be before bogus parts. So if somehow a bogus part 5/20 was there, it would be dated after the real part 5/20. Sooooo, if I changed the sort order to be Subject, partNum, date, if the two consecutive records are both part 5/20, I would then ignore the second part 5/20. Sound right? Does this sound like enough ? (Altho being an IT guy, I truly know that virtually anything can be hacked if someone wants to hard enough.) Thanks in advance, DS -----------== Posted via Newsfeed.Com - Uncensored Usenet News ==---------- http://www.newsfeed.com The #1 Newsgroup Service in the World! -----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----
Technical Details
Message-ID:
<92F1AA3EDidispcom@128.242.171.114>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!news-out.newsfeeds.com!l2!corp-goliath.newsgroups.com!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <92F1AA3EDidispcom@128.242.171.114> Subject: Multi-part fakes: Questions Date: Fri, 27 Dec 2002 21:15:57 +0000 From: t.h.i.s.n.t.h.a.t@a.d.e.l.p.h.i.a..n.e.t (DS) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!news-out.newsfeeds.com!l2!corp-goliath.newsgroups.com!not-for-mail Newsgroups: news.software.nntp User-Agent: Xnews/03.08.04 NNTP-Posting-Host: 127.0.0.1 Lines: 64 X-Authenticated-User: $$35brch- X-Comments: This message was posted through Newsfeeds.com - http://www.newsfeeds.com X-Comments2: IMPORTANT: newsfeeds.com does not condone, nor support, spam or any illegal or copyrighted postings. X-Report: Please report abuse to <abuse@Newsfeeds.com> Organization: Posted Via Newsfeeds.com = SPEED+RETENTION+COMPLETION = http://www.newsfeeds.com