Article View: news.software.readers
Article #229475Re: Delving into X.CPP
From: Indi
Date: Fri, 30 Jan 2009 15:31
Date: Fri, 30 Jan 2009 15:31
69 lines
4217 bytes
4217 bytes
On 2009-01-30, Les Harris <me@lesharis.com.invalid> wrote: > Out of morbid curiosity I grabbed Relf's distribution of his infamous > X.EXE. While I have not yet been brave enough to try to execute this > beauty I have come across a few tidbits in the handily included X.CPP > source file. > > const float DaysPerYear = 365.2425, DaysPerMonth = DaysPerYear / 12; > > Note that in Relf world every month has ~30.4 days. I found this > especially incongruous with the OCD definition of the days per year. > > LnP _URL = L"Picayune.Uclick.COM/comics/db/2008/db081107.gif"; > > Why load files from disk when you can hardcode leech urls into the > application? Genius! > > // me: 66.xxx.xxx.xxx Tom: 131.xxx.xxx.xxx Eric: 137.xxx.xxx.xxx > // AA: 208.xxx.xxx.xxx > // uchar IP [ SzInt ]; LnP BIP = L"66.xxx.xxx.xxx" ; > > Ips masked to protect the insane and potentially innocent. Relf > apparently uses this single source file for a variety of experimentation > activities. This appears to be part of an attempt to write some type of > file to the given hostname. Caveat emptor with X.EXE. > > LnP Host = Get_Addr( H.Proxy ? H.Proxy : H.Host ); > int Loser = Eqi( Host, L"Odessa.UA" ); > > Damn you Odessa.UA, you've incurred the wrath of relf! > > Sh( L"%cHeader is endless. %c%d%c header lines:\n", ChNew, ChOdd, EE - > BB, ChNormNoNum ); > > X.EXE helpfully supports the multitudes of infinite headers on usenet > where infinite is defined as 'Relf thinks quite enough thankyouverymuch' > > if ( E_SubStr( L"MSFT", The_MID ) ) B_Rdr = L"MicroSoft_" ; > else if ( EqN( The_MID, L"Pine.", 5 ) ) B_Rdr = L"Pine_" ; > else if ( E_SubStr( L"webtv.net", The_MID ) ) B_Rdr = L"Web_TV_" ; > else if ( E_SubStr( L"Cam.AC.UK", H.Host ) ) B_Rdr = L"U_Cambridge" ; > else if ( E_SubStr( L"UQ.Edu.AU", H.Host ) ) B_Rdr = L"U_Queensland" ; > else if ( E_SubStr( L"uchicago.edu", The_MID ) ) B_Rdr = L"U_Chicago" ; > else if ( E_SubStr( L"speakeasy.net", The_MID ) ) B_Rdr = L"Speak_Easy" ; > else if ( E_SubStr( L"panix.com", The_MID ) ) B_Rdr = L"Panix_" ; } > > X.EXE will generously transpose the set containing all useful URLs into > the preferred Relfian format. > > If anyone thinks I'm cherrypicking, I highly recommend looking at the > full source file. The following is a representative sample: > P = Find ( 10, B_Def = NP, 400 ); if ( ! P ) P = Find ( 0, B_Def, 400 ); > Z = P ; if ( * P ) P ++ ; while ( Z > B_Def && * Z <= 32 ) Z -- ; > if ( * Z > 32 ) Z ++ ; ChZ = * Z ; * Z = 0 ; } > > Rest assured I picked only the lowest of the low hanging fruit. > > I feel my sanity slipping as I try to make heads or tails of this code. > It is truly diabolical in fine thedailywtf.com fashion. It's as though > I've slipped into some Lovecraftian alternate universe... > > "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn" > Very brave of you to actually download and peruse that "code", thanks for the report. BTW, don't forget -- it's February 1st tomorrow at 9:54 AM. That always trips me up... Cheers, indi
Technical Details
Message-ID:
<slrngo67b8.ms1.indi.sharpe@jayasriradhe.local>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.freenet.de!news.osn.de!diablo1.news.osn.de!news2.arglkargh.de!news.litech.org!news.glorb.com!news.astraweb.com!border2.newsrouter.astraweb.com!not-for-mailReferences:
<z7ednbZD8-zrdh_UnZ2dnUVZ_q_inZ2d@giganews.com>Show Full Headers
Complete Article Headers
Message-ID: <slrngo67b8.ms1.indi.sharpe@jayasriradhe.local> Subject: Re: Delving into X.CPP Date: Fri, 30 Jan 2009 15:31:52 +0000 From: Indi <indi.sharpe@gmail.com> References: <z7ednbZD8-zrdh_UnZ2dnUVZ_q_inZ2d@giganews.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.freenet.de!news.osn.de!diablo1.news.osn.de!news2.arglkargh.de!news.litech.org!news.glorb.com!news.astraweb.com!border2.newsrouter.astraweb.com!not-for-mail Newsgroups: news.software.readers Organization: the pond Reply-To: indi.sharpe@gmail.com User-Agent: slrn/0.9.9p1 (Darwin) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 69 NNTP-Posting-Host: abe802b5.news.astraweb.com X-Trace: DXC=nT9F4mK]5M04K?0c7HD\@7L?0kYOcDh@:_d>jF6@cXi5FZKm>bUX>l7R6YRKDLnFe3Po0M2oj1QC0]44U9; 6\9T4