|
A new nasty virus? It's so terrifying, that it can easily beat Skynet. The machines will terminate us all
|
|
|
|
|
I bet he could have formatted his code block on CodeProject properly though......
|
|
|
|
|
I think even in the dim mists of time when VB6 code was still being written, this was probably not considered "secure":
Public Function CheckPassword() As Boolean
CheckPassword = False
If InputBox("Enter password", "Admin Area - Password Required") = "****" Then
CheckPassword = True
End If
End Function
I've obfuscated the password, but yes, it was stored in plain text, it was 4 characters long, and is in a dictionary.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
Can I make a guess? The password was "Test"?
|
|
|
|
|
or "Pass"?
thatrajaCode converters | Education Needed
No thanks, I am all stocked up. - Luc Pattyn
When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is - Henry Minute
|
|
|
|
|
Or "Dumb"
Short for Dumbass Programmer.
<voice type="Ebeneezer Scrooge"> Bah. dumb bugs </voice>
|
|
|
|
|
Mine's short for password. I have seen many people used admin/pass as login details for programs(testing).
thatrajaCode converters | Education Needed
No thanks, I am all stocked up. - Luc Pattyn
When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is - Henry Minute
|
|
|
|
|
Gets my vote - but not the one.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
Is it "elephant", or is that just what you shouted when you found this code?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Yeah, that looks like top-notch security, after all, once the code is compiled there is no way anyone could see what is in an exe file.
Just because the code works, it doesn't mean that it is good code.
|
|
|
|
|
WOW
That's... yeah. That's impressive.
|
|
|
|
|
Last night, I wanted to test my (database-agnostic) data access tool against an Access database. The one I tried was for a little app I wrote many years ago which I knew was password-protected, I had to look in the code to remind myself of what the password was -- very handy, that.
This space intentionally left blank.
|
|
|
|
|
Speaks for itself really...
Public Function WhichYear(MyDate As Date) As Integer
If MyDate >= CDate("01/01/2006") And MyDate <= CDate("31/12/2006") Then WhichYear = 1
If MyDate >= CDate("01/01/2007") And MyDate <= CDate("31/12/2007") Then WhichYear = 2
If MyDate >= CDate("01/01/2008") And MyDate <= CDate("31/12/2008") Then WhichYear = 3
If MyDate >= CDate("01/01/2009") And MyDate <= CDate("31/12/2009") Then WhichYear = 4
If MyDate >= CDate("01/01/2010") And MyDate <= CDate("31/12/2010") Then WhichYear = 5
If MyDate >= CDate("01/01/2011") And MyDate <= CDate("31/12/2011") Then WhichYear = 6
If MyDate >= CDate("01/01/2012") And MyDate <= CDate("31/12/2012") Then WhichYear = 7
If MyDate >= CDate("01/01/2013") And MyDate <= CDate("31/12/2013") Then WhichYear = 8
If MyDate >= CDate("01/01/2014") And MyDate <= CDate("31/12/2014") Then WhichYear = 9
If MyDate >= CDate("01/01/2015") And MyDate <= CDate("31/12/2015") Then WhichYear = 10
If MyDate >= CDate("01/01/2016") And MyDate <= CDate("31/12/2016") Then WhichYear = 11
End Function
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
Perfectly sensible code, if you're 3 years old. And dead.
|
|
|
|
|
The nice thing is that it the only limit to dates was how many the developer had been bothered to type. It triggered a bug as we frequently deal with dates in the future...
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
Do you use it often on midday 31st of December?
|
|
|
|
|
I was wondering about that one too
|
|
|
|
|
Year end bugs are especially brilliant because they guarantee that someone will have to be pulled out of bed (usually, as midnight rolls over) on a holiday when they really don't want to think about work, because some critical system crashed on either 31/12 (as in this case) or 1/1.
|
|
|
|
|
Problem 2017
—SASergey A Kryukov
|
|
|
|
|
Oh my.
This space intentionally left blank.
|
|
|
|
|
I would argue that it's not nonsense - you can tell by looking at it exactly what it does - it's just not the best way of doing it
|
|
|
|
|
Legible and nonsense are not mutually exclusive.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
brillig
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
Slithy tove!
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
My god, they should have used an enum.
|
|
|
|