Click here to Skip to main content
15,883,819 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: What's missing? Pin
Gary Wheeler13-Sep-13 1:52
Gary Wheeler13-Sep-13 1:52 
GeneralRe: What's missing? Pin
H.Brydon14-Sep-13 15:59
professionalH.Brydon14-Sep-13 15:59 
GeneralDon't you hate it when you do that? Pin
OriginalGriff9-Sep-13 9:41
mveOriginalGriff9-Sep-13 9:41 
GeneralRe: Don't you hate it when you do that? Pin
Sentenryu11-Sep-13 0:50
Sentenryu11-Sep-13 0:50 
GeneralRe: Don't you hate it when you do that? Pin
OriginalGriff11-Sep-13 0:53
mveOriginalGriff11-Sep-13 0:53 
GeneralRe: Don't you hate it when you do that? Pin
Sentenryu11-Sep-13 3:08
Sentenryu11-Sep-13 3:08 
GeneralRe: Don't you hate it when you do that? Pin
BobJanova11-Sep-13 6:01
BobJanova11-Sep-13 6:01 
GeneralHardcoded Teacher Passwords PinPopular
1215drew9-Sep-13 5:54
1215drew9-Sep-13 5:54 
So has anyone run into this before? Was just installing the school version of Mavis Beacon 21 and found two large security holes in it. The first is it requires I give students full Read/Write access to its network folder, which contains its settings file. Now this settings file controls some key behaviors, such as the ability to use backspace on tests and quizzes, guide hands, and their WPM goal. With Read/Write access students can easily edit this file. However if I only give them Read access, the program throws an exception. The second security nightmare is a hardcoded admin password. A hex dump of the software yields the statement:
C++
if pw = "gnipyt"
then DoTeacherLogin();
else BadTeacherLogin();

This is a bit of a problem in an environment with high school students who actively try to discover admin passwords for the various services. While I could change this in the hex dump, the school administrator is against the idea. A simple google search yields the password in the search results. It looks like the teachers will just have to keep a close eye on students via the monitoring software for now.
GeneralRe: Hardcoded Teacher Passwords Pin
ZurdoDev9-Sep-13 6:06
professionalZurdoDev9-Sep-13 6:06 
GeneralRe: Hardcoded Teacher Passwords Pin
H.Brydon14-Sep-13 16:01
professionalH.Brydon14-Sep-13 16:01 
GeneralRe: Hardcoded Teacher Passwords Pin
Ron Beyer9-Sep-13 6:33
professionalRon Beyer9-Sep-13 6:33 
GeneralRe: Hardcoded Teacher Passwords Pin
Sentenryu11-Sep-13 0:47
Sentenryu11-Sep-13 0:47 
GeneralRe: Hardcoded Teacher Passwords Pin
Brisingr Aerowing9-Sep-13 15:48
professionalBrisingr Aerowing9-Sep-13 15:48 
GeneralRe: Hardcoded Teacher Passwords Pin
1215drew9-Sep-13 17:04
1215drew9-Sep-13 17:04 
GeneralRe: Hardcoded Teacher Passwords Pin
NeverJustHere9-Sep-13 17:41
NeverJustHere9-Sep-13 17:41 
GeneralRe: Hardcoded Teacher Passwords Pin
PIEBALDconsult9-Sep-13 16:03
mvePIEBALDconsult9-Sep-13 16:03 
GeneralRe: Hardcoded Teacher Passwords Pin
Dave Kreskowiak9-Sep-13 16:28
mveDave Kreskowiak9-Sep-13 16:28 
GeneralRe: Hardcoded Teacher Passwords Pin
Silvabolt10-Sep-13 3:46
Silvabolt10-Sep-13 3:46 
GeneralRe: Hardcoded Teacher Passwords Pin
Sentenryu11-Sep-13 0:49
Sentenryu11-Sep-13 0:49 
GeneralRe: Hardcoded Teacher Passwords Pin
GuyThiebaut13-Sep-13 2:58
professionalGuyThiebaut13-Sep-13 2:58 
GeneralHow about some paradox Pin
C.CoderCreator8-Sep-13 12:52
C.CoderCreator8-Sep-13 12:52 
JokeRe: How about some paradox Pin
phil.o8-Sep-13 13:36
professionalphil.o8-Sep-13 13:36 
GeneralRe: How about some paradox Pin
C.CoderCreator8-Sep-13 13:39
C.CoderCreator8-Sep-13 13:39 
GeneralRe: How about some paradox Pin
Peter_in_27808-Sep-13 22:12
professionalPeter_in_27808-Sep-13 22:12 
GeneralRe: How about some paradox Pin
phil.o8-Sep-13 22:16
professionalphil.o8-Sep-13 22:16 

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.