Click here to Skip to main content
15,889,034 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: Worst security flaws Pin
Ray Cassick17-Oct-10 4:47
Ray Cassick17-Oct-10 4:47 
GeneralRe: Worst security flaws Pin
Mike Winiberg17-Oct-10 20:58
professionalMike Winiberg17-Oct-10 20:58 
GeneralRe: Worst security flaws Pin
Gary Wheeler17-Oct-10 23:58
Gary Wheeler17-Oct-10 23:58 
GeneralRe: Worst security flaws Pin
Richard A. Dalton20-Oct-10 5:17
Richard A. Dalton20-Oct-10 5:17 
GeneralRe: Worst security flaws Pin
Isfeasachme17-Oct-10 22:30
Isfeasachme17-Oct-10 22:30 
GeneralRe: Worst security flaws Pin
G-Tek18-Oct-10 1:19
G-Tek18-Oct-10 1:19 
GeneralBiggest security flaw... Pin
Vercas18-Oct-10 2:36
Vercas18-Oct-10 2:36 
GeneralRe: Worst security flaws Pin
BrainiacV18-Oct-10 4:38
BrainiacV18-Oct-10 4:38 
Gather 'round kiddies, while I spin a tale of olde tyme computing, back when mainframes roamed the planet and fed on punched cards.

I was a wee sprout teaching myself how to program on a timesharing PDP-8 in high school.

The crowd I ran with usually had all the passwords, either through visiting the computer center, stopping the processor and using a disk diagnostic tool to pull the master password off the hard disk, or bugging the automatic logout program. But mostly through what is now called social engineering..."Hello, Fred? I know you don't use the computer (terminal) at your school, but could you get me the password to your school's account? Yeah, it's usually written on the blackboard by the terminal."

Unfortunately the teachers and system manager thought we had some machine language program that would coerce the passwords out of the system by forcing it to fail and as a last gasp would spit out the passwords as sort of a "help me!" before crashing.

Stop laughing, these bozos were serious.

So we had the name and so we set out to earn it. After about a month of trying to crack the security, we gave up. The timesharing environment was a rubber playpen that would not let us have access to the goodies.

And then I cracked it...by accident. Really. In what seems to be the pattern of my programming life, I have this innate and uncontrollable talent for finding bugs. Most of my career it has been a pain "Why is it only you that has trouble with the software?", but at my current job, it is a boon.

Back at the plot. I had gotten hold of the system programmer's guide for the OS and had gotten tired of flipping pages to interrelate system tables. Until I was seduced by the dark side of programming, I was studying to be an architect and had access to large sheets of paper and a drafting board. So I made this master layout of all the system tables and how they interconnected.

When I was done, I could see how I could go from public information and drill down to the input/output buffers. The system guide said you did not have buffers until you were logged in. I should have known it was BS because we used to hide what we were typing from the noobs by typing a long string of commands on the same line as the login. Since the keystrokes were not echoed until you were logged in, only someone good at reading keystrokes could see what we were doing.

But it got me to thinking I could watch what was being done at the other school's terminals. So I hacked out a quick little program called "Snoopy" and set it to watching the terminal next to mine. It worked wonderfully. And then seemed to hang. Hesitantly, as though someone was hunting and pecking at a keyboard the word "LOGIN" appeared. I about crapped my pants. This was the days of ASR-33 teletype terminals and printed output. If one of the teachers had come in, they'd have proof that I was cracking the system. You couldn't turn the monitor off or reboot the computer, my only option would have been to rip off the paper and eat it. Which would have looked a tad suspicious by itself.

The timesharing nature of the environment had made the pointers I was chasing go invalid and accidentally connected me to a buffer where someone was logging in.

A few years later, stories of this exploit earned me a little conversation with the FBI.

"A whale of a tale I tell you lads, a whale of a tale and it's all true, I swear by my tattoo."
Psychosis at 10
Film at 11

GeneralRe: Worst security flaws Pin
patbob18-Oct-10 6:46
patbob18-Oct-10 6:46 
GeneralRe: Worst security flaws Pin
si61818-Oct-10 13:24
si61818-Oct-10 13:24 
GeneralRe: Worst security flaws Pin
Richard Deeming19-Oct-10 7:27
mveRichard Deeming19-Oct-10 7:27 
GeneralRe: Worst security flaws Pin
rohans8419-Oct-10 8:21
rohans8419-Oct-10 8:21 
GeneralBest use of exception handling PinPopular
MalikRizwan12-Oct-10 3:13
MalikRizwan12-Oct-10 3:13 
GeneralRe: Best use of exception handling Pin
OriginalGriff12-Oct-10 3:41
mveOriginalGriff12-Oct-10 3:41 
GeneralRe: Best use of exception handling Pin
BillW3312-Oct-10 3:55
professionalBillW3312-Oct-10 3:55 
GeneralRe: Best use of exception handling Pin
MalikRizwan12-Oct-10 18:26
MalikRizwan12-Oct-10 18:26 
GeneralRe: Like that old expression says, ... Pin
Chris Meech12-Oct-10 4:05
Chris Meech12-Oct-10 4:05 
GeneralRe: Best use of exception handling Pin
Megidolaon12-Oct-10 5:20
Megidolaon12-Oct-10 5:20 
GeneralRe: Best use of exception handling PinPopular
Sauro Viti13-Oct-10 6:17
professionalSauro Viti13-Oct-10 6:17 
JokeRe: Best use of exception handling Pin
Adriaan Davel14-Oct-10 19:24
Adriaan Davel14-Oct-10 19:24 
GeneralRe: Best use of exception handling Pin
richard_k26-Oct-10 22:34
richard_k26-Oct-10 22:34 
GeneralRe: Best use of exception handling Pin
Vimalsoft(Pty) Ltd14-Oct-10 20:26
professionalVimalsoft(Pty) Ltd14-Oct-10 20:26 
JokeRe: Best use of exception handling Pin
Jonas Hammarberg14-Oct-10 22:22
professionalJonas Hammarberg14-Oct-10 22:22 
GeneralRe: Best use of exception handling Pin
Mel Padden15-Oct-10 1:58
Mel Padden15-Oct-10 1:58 
GeneralRe: Best use of exception handling Pin
Vercas15-Oct-10 22:17
Vercas15-Oct-10 22:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.