Conversation

“You must rotate your credentials every 60 days.”

*takes USB-C YubiKey out of slot*
*turns it upside down*
*plugs it back in*

4
27
7

@benno I'm reminded of the fact that USB C is directional so you could have a drive return different data depending on the orientation.

2
1
0

@benno tried with USB-A key, now neither key nor port work, please advise

0
0
0

@benno new feature. The original yubikey didn’t have that.

0
0
0

@baishen Oh no way, really?

1
0
0

@valentinegb @baishen https://hackaday.com/2021/03/22/cursed-usb-c-when-plug-orientation-matters/ is a fun trick.

although the USB-C plug has only a single pair of data lines (D+/-) for USB 2.0 connectivity, the receptor duplicates these on either side of its pins, leading out two pairs of D+/- lines. Normally you would connect the matching lines in these pairs together to ensure consistent behavior no matter the plug orientation, but you don’t have to.

1
1
0

@stibbons @valentinegb @baishen It's not a bug, it's a feature! You could build a USB flash drive that returns different data depending on orientation and protocol/speed (2.0/3.0) đŸ˜č

2
1
0
@manawyrm @stibbons @valentinegb @baishen you could even do shitty OS detection in firmware and serve different files to linux or windows
0
1
0

@manawyrm @stibbons @valentinegb @baishen
Now I really want to build a flash drive that flips all your images upside down if you plug it in backwards.

2
1
0

@benno turn over to side be and insert to F%$&ing box XD different time, same means of storage X3

0
1
0

@manawyrm @stibbons @valentinegb @baishen
I'm a bit late since I had some cons to attend in the meantime, but I just ordered a board to actually do this. (I'm just going to flip the orientation bit in the exif data, but it should have the intended effect in most image viewers)

0
1
0