🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #229467

Delving into X.CPP

#229467
From: Les Harris
Date: Fri, 30 Jan 2009 11:58
65 lines
5290 bytes
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"

-- 
Do they only stand
By ignorance, is that their happy state,
The proof of their obedience and their faith?
Technical Details
Message-ID: <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!backlog1.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!feeder2-2.proxad.net!proxad.net!feeder1-2.proxad.net!news.glorb.com!news2.glorb.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <z7ednbZD8-zrdh_UnZ2dnUVZ_q_inZ2d@giganews.com>
Subject: Delving into X.CPP
Date: Fri, 30 Jan 2009 03:58:52 -0800
From: Les Harris <me@lesharis.com.invalid>
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!backlog1.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!feeder2-2.proxad.net!proxad.net!feeder1-2.proxad.net!news.glorb.com!news2.glorb.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Fri, 30 Jan 2009 05:58:46 -0600
Newsgroups: news.software.readers
Organization: People's Front Against Organizations
X-Face: %4KI#W<P#v<p)GAB6G`[:e+-o; 2OkasxMoc^`#z,d:`(`9!e!n;
 AEpQSg/(#q4,P{>/E.D'"lc~N*Pq8SxA_Y{M+7y4]&d3R$:xoXY`b%$4aZa-0;
 <6!][&7qTL^/\{h<c+H5Sk#Wlj!pD@,e?BcvQd6mzXzB<9&f.8J<ng,yk7TL"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAAAFz
 UkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAA9Q
 TFRFAAAAPLz9/Jg4iHAA////8qpT8gAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAl2cEFnAAAAMAAA
 ADAAzu6MVwAAAL9JREFUOMuV0sENgzAMBdBv6ABhAxQWqMoCOXT/mWrHttIcMCZCCP2HHDuA77wa
 gJc8IAccL3V/AI3jerzT0OtwjiRoXI9TK4UgM8Hj0yrFIFHV+PRKMWDl4GOSgb67mY93A382tRvD
 ssNsPsQLkAPc0W31hkNooAIoyFMCem6Lymg3gG1j4rusBLSR9c0TwP8xaU5zqRikY9qSIEnxehnQ
 AR+CHqL1fA9N5yKbb3yoayA/DHshAd4ri1y91iX8ADKmqs3NujZhAAAAJXRFWHRjcmVhdGUtZGF0
 ZQAyMDA5LTAxLTMwVDA1OjEyOjMyKzAwOjAwaWad5gAAACV0RVh0bW9kaWZ5LWRhdGUAMjAwOS0w
 MS0zMFQwNToxMjoxNSswMDowMLFV0iEAAAAASUVORK5CYII=
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Lines: 65
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-2yocuEdU5HuFS+pD/Mh6n/+ioVgnr86ZBynxKKm6ij6Bv56vmCPpiL0OBns3/GkK842bpSAza/o1xge!CHN5jApxDICRcVuhQ1kBWOHsnnHVtcJp2pH7lWoWpTkqkuaZcmK3Cy4Qcrzy3EidHlq1NKdH24Is
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint
 properly
X-Postfilter: 1.3.39
X-Original-Bytes: 4989