So...I have a 4-dial combination lock which I have forgotten the combination on.
Any suggestions on how to crack the code?
10*10*10*10 = 10,000 possible combinations.
At 4 seconds per combination that'll take 40,000 seconds, or about 11.1 hours.
A new lock costs $5.
$5 / 11.1 hrs. = $0.45 an hour.
If your job pays less than 45 cents an hour, crack the lock. If it pays more than that, buy a new one.
Yay math! :icon_mrgreen: :laugh: :icon_mrgreen: :icon_razz:
Hacksaw. :thumb:
What if it's a combination lockbox that you have to leave there. There's a house for sale on a street I'm investing in and noone can locate the realtor. We'd like to see inside (with our agent of course) but noone knows the combination. Sucks.
If there was an easy way to bypass the lock would it be worth having?
(http://www.happyhobby.com/hobb_html/images/dremel/8059600275.jpg)
Boom, no lock stops a rotary tool.
bolt cutters :2guns:
barring the hacksaw/dremel/bolt cutters route .. any suggestions on how to approach a 10000 code lock that needs to be manually manipulated? breaking the lock would be illegal in my case ... figuring out the code would not :)
does any body know the owner?????
it's an absentee owner. house is listed in MLS but the agent is unreachable and the code posted to the listing is incorrect. any other agent can go in IF they can figure out the code to get the key. need to see it to see if it's worth tracking down the agent to put a contract in (i think it will be).
CodeList()
{
int c1 = 0;
int c2 = 0;
int c3 = 0;
int c4 = 0;
for(c1 = 0; c1 < 10; c1++)
{
for(c2 = 0; c2 < 10; c2++)
{
for(c3 = 0; c3 < 10; c3++)
{
for(c4 = 0; c4 < 10; c4++)
}
printf("%n %n %n %n", c1, c2, c3, c4);
}
}
}
}
}
Quote from: RVertigo on July 24, 2006, 12:40:59 PM
CodeList()
{
int c1 = 0;
int c2 = 0;
int c3 = 0;
int c4 = 0;
for(c1 = 0; c1 < 10; c1++)
{
for(c2 = 0; c2 < 10; c2++)
{
for(c3 = 0; c3 < 10; c3++)
{
for(c4 = 0; c4 < 10; c4++)
}
printf("%n %n %n %n", c1, c2, c3, c4);
}
}
}
}
}
thanks - can you program that in to my hands now?
Oh right...
upload(MrDan_Brain);
There ya' go...
It's actually one of those combo lock IN the cable type of bicycle locks, so I'd rather not hack it apart, don't need to, and I'd not like to throw it away.
I guess I'll just keep trying to think of it, and wait for it to come to me.
I was going to ask if it was a collector's item, like a Master lock from 1966, or a famous one, like the one Marylyn Monroe used at her high school, when she was in high school.
Quote from: RVertigo on July 24, 2006, 12:40:59 PM
CodeList()
{
int c1 = 0;
int c2 = 0;
int c3 = 0;
int c4 = 0;
for(c1 = 0; c1 < 10; c1++)
{
for(c2 = 0; c2 < 10; c2++)
{
for(c3 = 0; c3 < 10; c3++)
{
for(c4 = 0; c4 < 10; c4++)
}
printf("%n %n %n %n", c1, c2, c3, c4);
}
}
}
}
}
:mad: that programming style drives me insane.. MS visual studio loves that style. :mad:
It's all about the T&R style!! :)
CodeList() {
do stuff
}
*this has been your daily dose of geek here on GStwin. Remeber this information, there's no better way to pick up ladies than to impress them with talks about programming style conventions! :cheers:
You know... I used to code like that:
func(){
Stuff;
{
But, I realized that it's actually easier to read like:
func()
{
Stuff;
{
So... I do it that way... And Yes... Even when it's just ONE thing:
if(blah)
{
func(stuff);
}
Some people HAAAAAAAAAAAAAAAAATE it... But, it's easy to read... And it's not like it's a while(0) or anything. :mad: :mad: :mad:
Does it also have a key override? Cuz if it's a cheapo lock, chances are it could be picked fairly easily. Those are what I practice on. For fun, of course, no illegal activity.
No room for key access.
It's some Specialized bicycle lock.
Quote from: RVertigo on July 24, 2006, 04:23:47 PM
You know... I used to code like that:
func(){
Stuff;
{
But, I realized that it's actually easier to read like:
func()
{
Stuff;
{
So... I do it that way... And Yes... Even when it's just ONE thing:
if(blah)
{
func(stuff);
}
Some people HAAAAAAAAAAAAAAAAATE it... But, it's easy to read... And it's not like it's a while(0) or anything. :mad: :mad: :mad:
I'm with you RVert.. much easier to read.
I like to freely mix the two, depending on my mood at the moment! Take that, maintenance engineers!
Quote from: aaronstj on July 24, 2006, 05:26:31 PM
I like to freely mix the two, depending on my mood at the moment! Take that, maintenance engineers!
haha.. no comments either, eh?
Oh, there's comments. They're just misleading. When they're not outright lying. :icon_mrgreen:
:laugh:
Sounds like our main SDET... For a while I tried to figure his code on my own... :o I decided that I had two choices, bother him all the time or shoot myself in the head. He wasn't even consistent with return values... Sometimes 1 was success, sometimes 0 was... Sometimes it was any positive number.... But, it was never the same from func to func... AUGH!!!
And, like you said... The comments were either missing or wrong. :o :cookoo: :o :cookoo:
My code is like this:
/*This is all the different possible things you could ever think of doing with this little tiny bit of code and perhaps a life story and what I was wearing at the time and had for lunch the day I wrote it... Blah Blah Blah and on and on... Return values... Exit codes... Failure codes... And on and on... Blah Blah Blah*/
tinyfuncthatdoesnothing()
{
blah;
}
:laugh:
But... That's probably why I don't write any code these days. :icon_rolleyes: If you're too good at something, they fire you, demote you, or promote you... Which ever will make you the least efficient. :laugh:
Quote from: aaronstj on July 24, 2006, 05:34:04 PM
Oh, there's comments. They're just misleading. When they're not outright lying. :icon_mrgreen:
Am I a nerd because that made me laugh out loud?
yes but im laughing with ya :laugh: and a few of these too :flipoff:
Yeah...so...I randomly was organizing/paring down my stuff tonight and I guessed it.
I guess waiting a few months makes all the difference...it was first guess!
Hey Anthony...
There most likely is a way... I've hacked into my Master Lock Combination locks.
What's the brand? Model?
I'll find a way for you, so the next time, you don't have to wait months. :laugh:
Just passing through! I didn't see the "Smart Peeps" only sign before entering. :flipoff: :icon_mrgreen:
i am with Rvertigo on the coding. It is easier to read and its not like your going to run out of virtual paper :laugh: :laugh:
If it were a regular combination lock...then I would say do this....
http://www.metacafe.com/watch/297062/how_to_crack_a_combination_lock/
This guy figured out how to do it :)
I guess I didn't make it clear...I figured it out (guessed it correctly)...so I'm done!
Quote from: Mk1inCali on December 09, 2006, 02:20:45 AM
I guess I didn't make it clear...I figured it out (guessed it correctly)...so I'm done!
Haha, well too bad! We're gonna keep giving you suggestions for ever!!! :icon_twisted:
Well, if it keeps you from being bored and lonely like An is...I guess do whatever ya feel like...
Quote from: Mk1inCali on December 09, 2006, 05:34:43 PM
Well, if it keeps you from being bored and lonely like An is...I guess do whatever ya feel like...
YOU TAKE THAT BACK, SIR!!!
I'm not bored.
:laugh: