Click here to Skip to main content
15,123,357 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 2:52
MemberGary Wheeler13-Sep-13 2:52 
GeneralRe: What's missing? Pin
H.Brydon14-Sep-13 16:59
professionalH.Brydon14-Sep-13 16:59 
GeneralDon't you hate it when you do that? Pin
OriginalGriff9-Sep-13 10:41
mveOriginalGriff9-Sep-13 10:41 
GeneralRe: Don't you hate it when you do that? Pin
Sentenryu11-Sep-13 1:50
MemberSentenryu11-Sep-13 1:50 
GeneralRe: Don't you hate it when you do that? Pin
OriginalGriff11-Sep-13 1:53
mveOriginalGriff11-Sep-13 1:53 
GeneralRe: Don't you hate it when you do that? Pin
Sentenryu11-Sep-13 4:08
MemberSentenryu11-Sep-13 4:08 
GeneralRe: Don't you hate it when you do that? Pin
BobJanova11-Sep-13 7:01
MemberBobJanova11-Sep-13 7:01 
GeneralHardcoded Teacher Passwords PinPopular
1215drew9-Sep-13 6:54
Member1215drew9-Sep-13 6: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 7:06
professionalZurdoDev9-Sep-13 7:06 
GeneralRe: Hardcoded Teacher Passwords Pin
H.Brydon14-Sep-13 17:01
professionalH.Brydon14-Sep-13 17:01 
GeneralRe: Hardcoded Teacher Passwords Pin
Ron Beyer9-Sep-13 7:33
professionalRon Beyer9-Sep-13 7:33 
GeneralRe: Hardcoded Teacher Passwords Pin
Sentenryu11-Sep-13 1:47
MemberSentenryu11-Sep-13 1:47 
GeneralRe: Hardcoded Teacher Passwords Pin
Brisingr Aerowing9-Sep-13 16:48
professionalBrisingr Aerowing9-Sep-13 16:48 
GeneralRe: Hardcoded Teacher Passwords Pin
1215drew9-Sep-13 18:04
Member1215drew9-Sep-13 18:04 
GeneralRe: Hardcoded Teacher Passwords Pin
NeverJustHere9-Sep-13 18:41
MemberNeverJustHere9-Sep-13 18:41 
GeneralRe: Hardcoded Teacher Passwords Pin
PIEBALDconsult9-Sep-13 17:03
professionalPIEBALDconsult9-Sep-13 17:03 
GeneralRe: Hardcoded Teacher Passwords Pin
Dave Kreskowiak9-Sep-13 17:28
mveDave Kreskowiak9-Sep-13 17:28 
GeneralRe: Hardcoded Teacher Passwords Pin
Silvabolt10-Sep-13 4:46
MemberSilvabolt10-Sep-13 4:46 
GeneralRe: Hardcoded Teacher Passwords Pin
Sentenryu11-Sep-13 1:49
MemberSentenryu11-Sep-13 1:49 
GeneralRe: Hardcoded Teacher Passwords Pin
GuyThiebaut13-Sep-13 3:58
professionalGuyThiebaut13-Sep-13 3:58 
GeneralHow about some paradox Pin
C.CoderCreator8-Sep-13 13:52
MemberC.CoderCreator8-Sep-13 13:52 
JokeRe: How about some paradox Pin
phil.o8-Sep-13 14:36
mvephil.o8-Sep-13 14:36 
GeneralRe: How about some paradox Pin
C.CoderCreator8-Sep-13 14:39
MemberC.CoderCreator8-Sep-13 14:39 
GeneralRe: How about some paradox Pin
Peter_in_27808-Sep-13 23:12
professionalPeter_in_27808-Sep-13 23:12 
GeneralRe: How about some paradox Pin
phil.o8-Sep-13 23:16
mvephil.o8-Sep-13 23: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.