HDTenEightyP/NetNews huggingface dataset:
From: peter@taronga.com (Peter da Silva)
Subject: Re: not a test
Organization: Taronga Park BBS
Date: Fri, 24 Jul 1992 01:59:00 GMT

In article <1992Jul23.101031.27724@jarvis.csri.toronto.edu> flaps@dgp.toronto.edu (Alan J Rosenthal) writes:
>good god, please just use strtok().  Get to know your friendly neighbourhood C
>library.  This is EXACTLY what strtok() is for.

Good god, please don't use strtok. It's inherently non-reentrant and it's not
even usable in cooperative threads. Define a new function that operates on a
string handle or a string file, but let strtok die a well deserved death.
-- 
                                                                `-_-'
                         Have you hugged your wolf today?        'U`

Peter da Silva, Taronga Park BBS, Houston, TX  +1 713 568 0480/1032
Newsgroups: alt.hackers
From: mjeffery@reed.edu (Mark Jefferys)
Subject: Re: making the named pipe work on a cluster
Organization: Reed College, Portland, OR
Date: Tue, 28 Jul 1992 04:56:10 GMT
Distribution: usa

In article <1992Jul27.231625.18562@constellation.ecn.uoknor.edu> ben@rex.chb.uokhsc.edu (Benjamin Z. Goldsteen) writes:
_% >every post:
_% >	take a copy of (Pnews|inews) and modify it, to pick a different sig
_% >	each time
_% 
_%     So, every user should have there own version of inews?  That may
_% satisfy one person.

ObObviousHack:
	Make your own (Pnews|inews) which changes your .sig
and then execs the real one.
-- 
Mark Jefferys		Internet: mjeffery@reed.edu
Newsgroups: alt.hackers
From: tinsel@nyx.cs.du.edu (Thomas Insel)
Subject: Re: Forgery
Reply-To: tinsel@uiuc.edu
Organization: University of Denver, Dept. of Math & Comp. Sci.
Date: Tue, 21 Jul 92 05:51:18 GMT

kibirev@csa.bu.edu (oleg kibirev) writes:

>For those who can't yet figure out how to forge posts: the simpliest way is sending 
>fake mail to one of Mail->News gateways. This way you don't get Sender:, Originator:
>NNTP-Posting-Host etc. grep man sendmail for "trusted users" and "alternate configuration
>file" if you don't have SMTP. Just hope we'll not see so much garbage if there will be no chalenge.

IMHO, the easiest way to forge mail and news is with a Macintosh (on the
internet, of course).  The answers, of course, are available via FTP from
major archives everywhere.
--
Thomas Insel (tinsel@nyx.cs.du.edu, tinsel@uiuc.edu)
Newsgroups: alt.hackers
From: flaps@dgp.toronto.edu (Alan J Rosenthal)
Subject: "ObHack" complaint
Organization: Dynamic Graphics Project, University of Toronto
Distribution: alt
Date: 25 Jul 92 16:49:38 GMT


So folks, let's not just say "ObHack:" and then say something we did, eh?
That's kind of boring.  I mean, it just sounds like bragging.  Why don't you
say something about HOW you did it, or something that's actually interesting to
others here?

small ObHack: Someone at a place I work wrote this news-reading-like thing for
macs to create an internal newsgroups sort of thing for people to use on their
macs.  It asked for a password.  I just wanted to run the program and start
reading the articles, especially since there weren't very many of them.  But
the authentication was just done locally, so I took the source and made my own
version which just let me in whether the password was correct or not, so I can
just press return.  Btw, there's some cool hacking things you can do on a mac
in general with "ResEdit", since so many mac applications use a standard
structure for all the windows and dialogues and things so you can change them
easily, interchange "yes" and "no" and stuff, or in the case of "StuffIt", an
archive making program (like tar, or like arc), changing the screen for setting
a password on the archive to an explanation that using a password is silly
because it doesn't do encryption, but it is a big pain in the ass and can't be
removed, so please press "cancel" now.

Interesting hackerish thing: When you get on "ONET", the Ontario branch of the
internet, the router continues to belong to onet and you have to provide them
with the facility to dial in to it and it doesn't have a console and you're not
supposed to touch it.  You just plug it into your ethernet.  So three cables
come out the back: the ethernet, the cable connecting you to whatever site
you're connected to over onet, and an rs232 line which you have to hook up to
a phone or something for them (hm, guess there must be a power cord, too...).
When you call them about something, they dial in.  Or when they have to check
something.  It's not your business, it's theirs.  Kind of odd but I can
certainly see why they do it, since they're responsible for the integrity of
the net.  If you want to change something about the configuration, you ask them
and they do it.
Newsgroups: alt.hackers,alt.hackers.malicious
From: tinsel@nyx.cs.du.edu (Thomas Insel)
Subject: Re: Horrible death of alt.hackers.malicious
Reply-To: tinsel@uiuc.edu
Organization: University of Denver, Dept. of Math & Comp. Sci.
Date: Fri, 24 Jul 92 18:28:39 GMT

kibirev@csa.bu.edu (oleg kibirev) writes:

>> 0 articles in alt.hackers.malicious - read now [Y,N]?

>This is already for about a weak. My attempts to post (w. approval, of course)
>end in electronic void. What a pity. Just think that now you'll have no place
>except alt.hell to send posters you don't like here. 

>I hope that some alt.hacker with enough knowledge can ressurect the group.

Well, you seem to have posted here...  Just about anyone else can, too, if they
think about it for a minute or two.  However, if you'd like to take a stab at
changing things, why not try reading the control group for a day or two.  You
should be able to pick up enough to learn what you need, without even reading
manuals, or anything.

--
Thomas Insel (tinsel@nyx.cs.du.edu, tinsel@uiuc.edu)
Newsgroups: alt.hackers
From: welshm@mirage.rtp.dg.com (Matt Welsh)
Subject: Re: not a test
Date: Fri, 24 Jul 92 12:32:10 GMT
Organization: Data General Corporation, RTP, NC.

In article <ik89NB1w164w@kzdoos.hacktic.nl> koos@kzdoos.hacktic.nl (Koos van den Hout) writes:

>ObHack : In a program I'm working on I need to parse lines that are in
>the form :
><name> <value> <value> <string> [<string>...]
>So 'group_A 0 0 aaa' is valid but 'group_B 10 0 bb1 bb2 bb3' also.
>Problem : How to parse this when the complete line is already stored in memory?
>Solution:
>
>The line is stored in char buf[512];
>
>int nm,inc;
>
>sscanf(buf,"%s %d %d%n",name,&val1,&val2,nm);
>/* do something with the name and val1 and val2 */
>
>while(sscanf(&buf[nm],"%s%n",member,&inc)==1){
>   nm+=inc;
>   /* do something with member */
>}
>

There's a much easier way... use strtok().

sscanf(buf,"%s %d %d %[^\n]",name,&val1,&val2,buf2);
i=1;
strings[0]=strtok(buf2," \t");
while (strings[i]=strtok(NULL," \t")) i++;

Of course this assumes that you've got an array of char *'s large 
enough, but it would be just as easy to use linked lists here.

>Works like a charm....

>| Koos van den Hout                          E-mail koos@kzdoos.hacktic.nl |
>| Student Computer Science                   Fido Sysop @ 2:500/101.11012  |
>| SysOp BBS Koos z'n Doos (+31-3402-36647)  300/1200/2400N81 ANSI/AVT/TTY  |
>| International E-mail costs me 10 times as much as a followup ...         |


Matt Welsh    welshm@dg-rtp.dg.com        ...!mcnc!rti!dg-rtp!welshm
UNIX-SQA, Data General Corporation RTP        Office: +1 919 248 6070
  "Do not taunt Happy Fun Ball."
From: cooper@cbnewsg.cb.att.com (Ralph 'Hairy' Moonen)
Newsgroups: alt.hackers
Subject: Re: not a test
Date: 24 Jul 92 08:15:15 GMT
Organization: AT&T

In article <HWMHKR7@taronga.com>, peter@taronga.com (Peter da Silva) writes:
> In article <1992Jul23.075512.21400@cbfsb.cb.att.com> cooper@cbnewsg.cb.att.com (Ralph 'Hairy' Moonen) writes:
> >And you loose brownie points for using sscanf.
> 
> Agreed. Personally, I'd use strchr:
> 
> 	i = 0;
> 	while(buf && *buf) {
> 		flds[i++] = buf;
> 		if(buf = strchr(buf, ' ')) {
> 			*buf++ = '\0';
> 			while(isspace(*buf)) buf++;
> 		}
> 	}
> 

Well, I thought about it some more, and someone replied that my solution would
be too inflexible. So first, we could externally #define the field separator.
Now it's a space, but you could easily see it changed to \t in the future.
The second is that maybe there are more than 1 FS's between the fields, so 
you'd have to skip them.

That's all folks....

--Ralph Moonen
-- 
begin 644 ralph.pub
MF58  ]M2*@QR86QP:%]M;V]N96[^ 6- RJ-V"2/)B4[K']_ZR@4#IVQE=TT6
LHD.M[5JN9O_E1]Z9HXM/%A$WW.E[OA8>ES0S+;I@Q::BY.J8/Z]22#4% !$6
end
Newsgroups: alt.hackers
From: flaps@dgp.toronto.edu (Alan J Rosenthal)
Subject: Re: /etc/passwords
Date: 23 Jul 92 15:01:10 GMT

nimouat@napier.waterloo.edu (Nikos Mouat) writes:
>What kind of encoding scheme is used, is it RSA?

no, it's des with some variant and a weird approach in that the password is
used as the key rather than the message, or something like that.  It antedates
RSA by like two decades!  I forget the details of what it is, but here's how to
use it from C, given the C library function crypt():

crypt() takes two parameters both of which are (char *)s, the first being the
password you want to encrypt and the second being a two-character salt.  The
field in /etc/passwd is this salt concatenated with the encrypted password,
which is the return value of crypt().

The upshot is this:  If p is a pointer to struct passwd from the password
file, you do something like this:

	if (strcmp(crypt(typedpasswd, p->pw_passwd), p->pw_passwd))
	    ... they typed the wrong passwd.

That crypt() call can actually be crypt(getpass("Password:"), p->pw_passwd) if
you want it to prompt the user.  getpass() is a very cool library function
which turns off echo, prompts the user, gets the password, outputs a newline,
turns echo back on again.

If you want to make some /etc/passwd passwd fields of your own, this is how you
do it.

	char *cryptpasswd(passwd)
	    char *passwd;
	{
	    long salttime, time();
	    char dessalt[2], *crypt();
	    int i;

	    time(&salttime);
	    dessalt[0] = salttime & 63;
	    dessalt[1] = (salttime >> 6) & 63;
	    for (i = 0; i < 2; i++) {
		dessalt[i] += '.';
		if (dessalt[i] > '9')
		    dessalt[i] += 7;
		if (dessalt[i] > 'Z')
		    dessalt[i] += 6;
	    }

	    return(crypt(passwd, dessalt));
	}
Newsgroups: alt.hackers
From: twpierce@amhux1.amherst.edu (Tim Pierce)
Subject: Re: Forgery
Organization: Amherst College, Amherst MA
Date: Wed, 22 Jul 1992 04:37:12 GMT

In article <1992Jul21.033018.15388@ctr.columbia.edu> kibirev@csa.bu.edu (oleg kibirev) writes:
>In article <1992Jul20.185304.837@amhux2.amherst.edu> twpierce@amhux1.amherst.edu (Tim Pierce) writes:
>>In article <foo.bar.42@tinwhistle> foo@bar (Foobar) writes:
>>
>>> Nntp-Posting-Host: kremvic20
>>
>>Forged posts are generally really boring, but this was a really nice
>>touch.
>
>What??? You didn't know that kremvax.msk.su is a real UUCP site? It's located in
>Kurchatov Intitute in Moscow. Try "/usr/local/etc/dig kremvax.msk.su any" if you
>don't believe it (or get pit-manager.mit.edu:/pub/jargon/*).

/usr/local/etc/dig: no such file or directory
/usr/etc/dig: no such file or directory
/etc/dig: no such file or directory

Thanks for sharing, though.

Yes, I knew that kremvax is a real site, and something of the history
behind it.  I was unaware that kremvic20 had been created, though.  I
bet porting sendmail was a *bitch.*

>For those who can't yet figure out how to forge posts:

Gosh, I thought this was alt.hackers, where people (once) taught
themselves how to do things.

ObHack: disassembling IBM PC graphics software to figure out which
bits to twiddle for graphics mode when you don't have a manual handy.

-- 
____ Tim Pierce                / "You mean there are TWO of you, Pierce?
\  / twpierce@amherst.edu      /  God help us all."
 \/ (BITnet: TWPIERCE@AMHERST) /   -- Major Charles Emerson Winchester III
Newsgroups: alt.hackers
From: dylan@ibmpcug.co.uk (Matthew Farwell)
Subject: Re: Debugging program on mailing machine
Organization: The IBM PC User Group, UK.
Date: Mon, 27 Jul 1992 08:20:52 GMT

In article <1992Jul27.043409.13221@ctr.columbia.edu> kibirev@csa.bu.edu (oleg kibirev) writes:
>In article <6NQHY31@taronga.com> peter@taronga.com (Peter da Silva) writes:
>>In article <1992Jul25.012355.11106@ctr.columbia.edu> kibirev@csa.bu.edu (oleg kibirev) writes:
>>>As I already mentioned in some ObHack, I am writing a program to allow access
>>>to Internet host (shell, maybe even line editor like ed(1)) via e-mail only
>>Wow. You're showing anyone who can read the mail spool on half a dozen systems
>>how to execute any arbitrary program on your account, with your password in
>>plaintext no less!
>Wow. Mr. Peter da Silva is flaming every article in alt.hackers, 
>alt.hackers.malicious, comp.unix.wizards and probably more without
>ever posting his own hack. Or suggesting a better alternative to what
>he flames. I suggest an addition to FAQ: no flame without ObHack.
>
>I think, consulting crypt(1) and uuencode(1) should enlighten someone
>how to avoid sending text password.

And how do you propose to decrypt it, using crypt(1)?

>                                    There are also other methods. For
>example, you can use a random number generator with large period and
>initial salt known by both sender and recipitant to provide unique
>indentification for each message (server can compensate for lost mail
>by looking a few numbers ahead).

So if I get a copy of your message I'll know instantly a fairly small
range of numbers to try.

>                                 Oops, sorry, I don't think improving
>system security is the best subject for this group...
>
>Btw, how does one read /var/spool/mqueue without becoming root first?

Good grief, if you think email is secure, you have some sad ideas about
security.  I don't need to be root on your mail to be able to read your
mail.  I suggest you read your mail headers more closely.  Notice all of
those Received:  lines.  If your mail goes through my site, then I can
look at it.  This was the reasoning behind this statement:

>In article <6NQHY31@taronga.com> peter@taronga.com (Peter da Silva) writes:
>>Wow. You're showing anyone who can read the mail spool on half a dozen systems
>>how to execute any arbitrary program on your account

Dylan.
-- 
It is no coincidence that in no known language does the phrase 'As
pretty as an Airport' appear -- Douglas Adams
Newsgroups: alt.hackers
From: Ralf.Brown@B.GP.CS.CMU.EDU
Subject: Re: Ack!!! Bletch!!!
Date: Tue, 21 Jul 92 13:23:22 GMT
Organization: Carnegie Mellon University School of Computer Science
Originator: ralf@B.GP.CS.CMU.EDU

In article <9=dmm7p.fuzzy@netcom.com>, fuzzy@netcom.com (Fuzzy Fox) wrote:
}Better ObHack:  Sector reshuffling on the C64, so that disk sectors are
}no longer contiguous, allowing programs that access sequential sectors
}to get at them more efficiently.  Alas, not as successful as I had
}hoped.

I'm not surprised.  The thing that passed for a disk operating system on the
C64 does sector interleaving itself when possible.  Just look at the directory
track, where the first directory sector is 1, the second is 11 or 12, ...
(as I recall, the sectors are interleaved so that sequentially reading a
file gets you roughly two sectors per disk revolution, which is about all the
standard interface can manage to transfer anyway).

ObHack: Writing a termcap interface in Lisp so that my program can have
popup windows for menus and prompts.  Only thing left to do is add
attribute controls (bold, inverse, etc).


-- 
Internet: RALF+@CS.CMU.EDU   |The University would disclaim this if it knew...
FIDO: Ralf Brown 1:129/26.1  |"Wisdom is the quality that keeps you from
BIT: RALF%CS.CMU.EDU@CARNEGIE| getting into situations where you need it."
AT&Tnet: (412)268-3053 school|		-- Doug Larson
Newsgroups: alt.hackers
From: barr@darwin.psu.edu (David Barr)
Subject: Re: making the named pipe work on a cluster
Organization: Population Research Institute
Date: Sun, 26 Jul 92 21:15:22 GMT

In article <14q0udINNl6o@agate.berkeley.edu> gezelter@sam.cchem.berkeley.edu (Dan Gezelter) writes:
>Testing, and:

grr.

>ObHack:  Getting that named pipe to plan to work on a cluster of
>         networked suns that all use the same home directories...

why?  What is this fascination with named pipes?  They're fun to play
around with, but you quickly find that they're like programming in Pascal;
sure, it works, but there is almost always a better solution.

--Dave
-- 
System Administrator, Population Research Institute    barr@darwin.psu.edu
  I'm going to turn over a new leaf.... of poison ivy.
Newsgroups: alt.hackers
From: egw@utkvx1.utk.edu (Wolpert, Edward Greenwal)
Subject: internet ex- soviet block
News-Software: VAX/VMS VNEWS 1.41    
Organization: University of Tennessee Computing Center
Date: Tue, 28 Jul 1992 03:45:00 GMT

	Does anyone know of any internet sites in Russia or other
parts of the ex soviet block?  (I've checked my resources... )
Send info to wolpert@lead.chem.utk.edu  Thanks...
	Edward Wolpert

Newsgroups: alt.hackers
From: nimouat@napier.waterloo.edu (Nikos Mouat)
Subject: Re: "ObHack" complaint
Organization: University of Waterloo
Distribution: alt
Date: Mon, 27 Jul 1992 18:30:23 GMT

In article <1992Jul25.124937.17698@jarvis.csri.toronto.edu>, flaps@dgp.toronto.edu (Alan J Rosenthal) writes
> 
> 
> Btw, there's some cool hacking things you can do on a mac
> in general with "ResEdit", since so many mac applications use a standard
> structure for all the windows and dialogues and things so you can change them
> easily, interchange "yes" and "no" and stuff, or in the case of "StuffIt", an
> archive making program (like tar, or like arc), changing the screen for setting
> a password on the archive to an explanation that using a password is silly
> because it doesn't do encryption, but it is a big pain in the ass and can't be
> removed, so please press "cancel" now.
> 

White-water Resource toolkit for windows is the same. Resource toolkits are fun,
but there is very little you can do to change a program with it. Sure you can
change bit maps, icons, dialogue boxes and all that shit but you can't change any 
code. One thing you can do that is neet in Windows is you can add icons to
dialogue boxes (well, it's like adding small bitmaps, like the little 'stop' or
question mark icons that are on some dialogue boxes).
I actually did manage to change some code using a resource editor once. I don't know
how, and I can't do it again (I wish I could, because I changed the one thing I
didn't like about the program)... The program is winmine, a silly little game
for windows 3.1, you have to mark mines in a minefield, if you double mark a mine
it marks it with a question mark. Well somehow, I got rid of the question mark
phase of the marking, so you mark.. un-mark etc.

Cheers, Nikos
Newsgroups: alt.hackers
From: flaps@dgp.toronto.edu (Alan J Rosenthal)
Subject: Re: not a test
Date: 23 Jul 92 14:10:31 GMT

good god, please just use strtok().  Get to know your friendly neighbourhood C
library.  This is EXACTLY what strtok() is for.
Newsgroups: alt.hackers.malicious,alt.hackers
From: peter@taronga.com (Peter da Silva)
Subject: Re: Software HOARDING (was Re: a few CERTAIN FTP sites......)
Organization: Taronga Park BBS
Date: Thu, 30 Jul 1992 11:38:46 GMT

In article <ORION.92Jul29183057@nuchat.nuchat.sccsi.com> orion@nuchat.nuchat.sccsi.com (Roland Dunkerley) writes:
>I think that that is in fact true in the historical sense, remember
>though that windowing systems started their life cycle as toys for
>hackers.

But it's the applications that run on them that make them popular.

>I think that GNU has had an effect on the computer industry,

Yes, it's had an effect. But it's the end-user applications that have
created that industry *as an industry*.

>A WYSIWYG desktop publishing system is on
>the GNU tasks list, as is a Dbase clone.

Being on a list is no evidence that it will ever be done. What happened to
the free spreadsheet program? More importantly... these are all copies of
commercial software. Without software hoarding, they would have been quite
unlikely to be invented in the first place.

>	|> Come on, GNU fans, prove me wrong. Give me something the
>	|> mundanes can appreciate. Microsoft Delenda Est.

>I think this will happen, just that it will unfortunately take more
>time.

And by that time what will the new "killer apps" be? The FSF is ahead
of the curve on hackerware, but it's playing catch-up (and only with
a nominal effort) on mundaneware. And mundaneware is what creates the
larger demand for computers that's driving the development of better
computers for us all.

I'm not saying that the FSF shouldn't exist. I'm saying that it's not
the only form of software that should. If Stallman was to destroy the
commercial software industry by an act of god he would soon find himself
much worse off. Someone has to keep cranking the wheel. (insert optional
flame about "service economies" here)
-- 
                                                                `-_-'
                         Have you hugged your wolf today?        'U`

Peter da Silva, Taronga Park BBS, Houston, TX  +1 713 568 0480/1032
Newsgroups: alt.hackers.malicious,alt.hackers
From: zane@ddsw1.mcs.com (Sameer Parekh)
Subject: Re: Software HOARDING (was Re: a few CERTAIN FTP sites......)
Organization: ddsw1.MCS.COM Contributor, Chicago, IL
Date: Thu, 30 Jul 1992 05:29:05 GMT
X-Disclaimer:  Material posted in this article is the sole responsibility of
                the poster and does not represent MCSNet or the system owners.

In article <UHTH38C@taronga.com> peter@taronga.com (Peter da Silva) writes:
>appreciate. Microsoft Delenda Est.
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

	YES! (My latin teacher loves that phrase..)

-- 
Sameer_Parekh zane@ddsw1.MCS.COM zane@infopls.chi.il.us
PFA related mail to pfa@ddsw1.MCS.COM   | Specialization is for insects
Anonymous mail to ap.2363@cupid.sai.com |   - Robert A. Heinlein
Wed Jul 29 23:29:47 1992 US Debt: $4,001,726,448,289 Per capita: $15,687
Newsgroups: alt.hackers.malicious,alt.hackers
From: peter@taronga.com (Peter da Silva)
Subject: Re: Software HOARDING (was Re: a few CERTAIN FTP sites......)
Organization: Taronga Park BBS
Date: Wed, 29 Jul 1992 10:52:37 GMT

In article <ORION.92Jul28145557@nuchat.nuchat.sccsi.com> orion@nuchat.nuchat.sccsi.com (Roland Dunkerley) writes:
>I think the biggest reason that most
>current free software is for hackers is that the hackers
>writing the software find that software to be more 'useful.'

I definitely agree with this as the reason that most (I would say
virtually all) free software is designed for hackers instead of
mundanes. The fact remains, though, that without "software hoarding"
there wouldn't have been anything like the spread of computers we've
seen in the past decade. However distasteful you might think it, it's
demonstrably necessary for the health of the computer world.

>I think he was talking about the technically adept as
>opposed to someone who just happens to know lotus very well.

I would class these as hackers (in the original sense) rather than
power users.

>Most commercial software meant for mass-market consumption
>doesn't meet the needs of hackers well, of course, it's not
>meant to either...

Well, this hacker would be delighted in a clone of MacWrite that
generated SGML output that could be easily converted to TeX or
nroff or lout and would run on generic UNIX.

This hacker would be delighted in a window system that didn't spend
all its time coercing a timeshared operating system to provide real
time response.

This hacker would be delighted in being able to put management on UNIX
boxes so he didn't have to go around to their offices all the time to
deal with DOS problems.

Come on, GNU fans, prove me wrong. Give me something the mundanes can
appreciate. Microsoft Delenda Est.
-- 
                                                                `-_-'
                         Have you hugged your wolf today?        'U`

Peter da Silva, Taronga Park BBS, Houston, TX  +1 713 568 0480/1032
Xref: sparky alt.hackers.malicious:60 alt.hackers:1205