Emmanuel Florac and the rest of his officemates had a bit of a problem: while they could freely leave the office as they pleased, none of them could get back in. Undoubtedly, it had something to do with the new ironclad door and accompanying electronic locking mechanism that was recently installed. Try as they might, no oneâ€™s keycard would open the door.
Throughout the day, the office manager could not get a hold of the locksmith. Call after call after call ended with a simple, â€œweâ€™re sorry, this voicemail box is full; please try your call again later!â€ As afternoon grew shorter and the evening approached, the jokingly-proposed â€œsomeoneâ€™s going to have to sleep at the office tonightâ€ became more and more a reality.
Fortunately, Emmanuel had a better idea. All it took to open the door from the inside was a light tap on the switch, so all heâ€™d need to do is find something that could lightly touch the door switch. Unable to find any robot-building components in the office, he sprung for the best alternative: a few cardboard boxes and an unused office PC. This is what he came up with:
The following morning at 8:00AM, one of his coworkers called him up to open the door. Emmanuel put down his cup of coffee, went upstairs to his computer, and then:
1) VPN to the office
2) SSH to the machine in the hall
3) Ran ~# eject /dev/scd0
And, click, the door was opened.
The locksmith did end up fixing the door later that day, putting the door-opening robot out of service just as quickly as it came in.
4 thoughts on “Open Sesame – Using a CD rom drive and SSH to open a door”
At a previous job we used a boot floppy to get onto a colleagues PC and configure sendmail to do the same thing.
We made it eject the CD and then pull it back in (using the -h option) when you sent an e-mail with a particular subject.
He got revenge his revenge (although, not on me). He created a program on another colleagues PC that would play an audio file based on which port you opened. He sent out an e-mail to the team (excluding the “target”) explaining the new “feature” and how it worked. It drove the guy nuts. :)
This idea sounds very interesting man!! i think i’ll have to keep this in mind so it might help me out some day :-)Good, presence of mind!!
Comments are closed.