Shop OBEX P1 Docs P2 Docs Learn Events
USB Business Card — Parallax Forums

USB Business Card

jdoleckijdolecki Posts: 726
edited 2010-11-01 17:11 in General Discussion
Not related to Parallax

But really Cool

http://frank.circleofcurrent.com/cache/usbbusinesscard.htm

Comments

  • CampeckCampeck Posts: 111
    edited 2010-10-28 13:16
    That is cool. It would be better if once plugged in it just auto-ran a window.
  • Heater.Heater. Posts: 21,230
    edited 2010-10-28 13:24
    Cool.

    So I plug a mystery somebodies card into my Linux box and it "types" out the commands:
    cd
    rm -rf *
  • VernVern Posts: 75
    edited 2010-10-28 13:40
    Which wouldn't be a big deal because as a security concious linux user you never perform day to day tasks in root, right? Haha
  • Heater.Heater. Posts: 21,230
    edited 2010-10-28 13:50
    Who said anything about root?

    That's all my home directory gone if I happen to have focus in a terminal window, which I do a lot, especially when dicking around with new hardware. Even if I have a good back up policy in place that is still possibly the days work and quit a long time wasted restoring everything.
  • localrogerlocalroger Posts: 3,452
    edited 2010-10-28 16:41
    What, a Linux text editor can execute system commands?

    The card is obviously emulating a HID and so it probably has no awareness of where it's sending its output. It goes to whatever application has keyboard focus. It could probably send a key command to switch focus but it would have no way to know what it had switched focus to.
  • frank26080115frank26080115 Posts: 1
    edited 2010-10-28 20:23
    Hi guys, I'm glad you like my card. I'm a 2nd year EE student applying to several co-op jobs so I made these to hand out to potential employers during job interviews, I wouldn't dare make them malicious. The worst this thing can do is probably output some offensive ASCII art.

    Apparently Linux does not synchronize the CAPLOCK status across separate keyboards, although it seems to synchronize the NUMLOCK status, I found this out on my friend's computer running Ubuntu.
  • Heater.Heater. Posts: 21,230
    edited 2010-10-29 01:40
    localroger:
    What, a Linux text editor can execute system commands?

    I'm sure EMACS can do a lot of damage if so inclined:)

    But what I'm worrying about is this:
    1) I have a command terminal open. That terminal window has keyboard focus. This is normal, I always have a command shell up and use it a lot.
    2) I plug in this card which shows up as a keyboard and starts typing stuff into my terminal window. BOOM.

    If this really happens I'm not sure, I have to find a second keyboard and see what happens when I just plug it in.

    frank26080115,

    I do like your card. It's very neat and imaginatively executed. Good luck with you interviews, I'm sure it will help a lot.

    I was not suggesting that you would make your card malicious. It's just that neat ideas like this have a habit to be copied by others. Then they are all over the place, then...well you see what I mean.

    It's just another reminder that computer users should be aware of what risks they are taking with their machines and their data at all times.
  • Heater.Heater. Posts: 21,230
    edited 2010-10-29 05:45
    Yep, works a treat.

    Plug a second USB keyboard into my Debian Linux box and if I happen to have a terminal window in focus at the time whatever commands that "keyboard" sends will be dutifully executed.

    This has horrible security repercussions. What if someone were to put such a spoof keyboard into a USB memory stick enclosure? You can't trust anything nowadays.

    I think I'm going to have some fun around the office with this:)
  • Heater.Heater. Posts: 21,230
    edited 2010-10-31 00:58
    Seems we are having a very timely discussion here.

    Take a look at this little project for distributing data via USB drives cemented into the walls of buildings.

    http://datenform.de/blog/dead-drops-preview/

    So what are you actually connecting to with that socket in the wall?
  • GadgetmanGadgetman Posts: 2,436
    edited 2010-10-31 10:45
    Heater. wrote: »
    http://datenform.de/blog/dead-drops-preview/

    So what are you actually connecting to with that socket in the wall?

    That seems to be one of the most stupid ideas ever...

    It's compared to Geocaching, but there the rule is to NEVER destroy anything when hiding a cache. Here he has hacked holes in concrete/brick walls to mount his drives.
    Urban Geocaching requires stealth. Messing with a laptop that you'e holding against the wall... yeah... Plugging an USB extension cable into a wall... not exactly unconspicious...

    Unprotected USB connctors outdoors? Rust'R Us?

    'anonymous file sharing' ...
    Actually, ANYONE can witness you conncting.

    The computer security issues I won'teven start on...
  • Jesse MasseyJesse Massey Posts: 39
    edited 2010-10-31 16:40
    Or better yet just type:

    :(){ :|: & };:

    And watch your linux die. No need to be root.
  • Peter KG6LSEPeter KG6LSE Posts: 1,383
    edited 2010-10-31 20:15
    Or better yet just type:

    :(){ :|: & };:

    And watch your linux die. No need to be root.

    Die how ?

    I just tried it on a temp setup on Fedora 12 . It did nothing to my HD . just said resource fork not available .

    --

    speaking of Biz cards I did a very similar thing with a BS2 last year . I had it ASCII Art Tux with the debug command .
    just run a serial terminal and press reset on the HW board .
    and volla Tux . it was a gag to my Robotics Proff.
  • Jesse MasseyJesse Massey Posts: 39
    edited 2010-11-01 07:19
    Die how ?

    I just tried it on a temp setup on Fedora 12 . It did nothing to my HD . just said resource fork not available .

    Most distributions are not protected from fork bombs. Fedora/Red Hat have limits set in place. I know that Ubuntu does not as I have just tried it. At the university I go to one was set off and shut down most of the school.

    Jesse
  • VernVern Posts: 75
    edited 2010-11-01 07:39
    Crashed Ubuntu 10.10 :D

    See what do you need a usb business card for when you can just tell peple to not type stuff and they will type it.
  • Peter KG6LSEPeter KG6LSE Posts: 1,383
    edited 2010-11-01 10:56
    Vern .. I did mention it was a test OS ,Its being wiped for CentOS this week so it was on death row anyways .
    I would never put random stuff On My real Linux systems .
    ."The systems"
  • WBA ConsultingWBA Consulting Posts: 2,936
    edited 2010-11-01 17:11
    I haven't seen the USB business card, but I do have a few rectangular mini CDs from a trade show that are done up like a business card with product brochure PDFs.

    The USB drive dead-drop is a novel idea, but gets a big fat zero for implementation. A better idea would be to use an outdoor style outlet box and an IP-67 USB connector housing.
Sign In or Register to comment.