Skip to content

u/alreadyburnt

In this archive from Oct 2016 to Oct 2020

2
posts
78
comments
0
media
394
score

Top posts

Top comments

USB devices get to tell you what kind of device they are. So if you want to exploit a box with a USB device, you tell the USB device to tell the PC it's a keyboard. Then you just program it to type. My favorite thing to do this with is a phone(because you can connect the phone to the network and control it remotely, and because you can also do network MITM stuff). "Hey can I charge my phone off your PC?" Then I may as well have installed an SSH client and my own creds on your PC. There's an OOTB solution to do this called a USB Rubber Ducky, but you can do it with phones, tablets, arduino's, certain flash drives(See the psychson firmware) and kind of a crapload of other stuff.

30 points

Running as root would make this exponentially worse, but it's hardly necessary to compromise a box. In most cases, I imagine old-school .bash_aliases privilege escalation would get me the user's password to become root, which I could get by having the malicious device echo 'alias sudo=malicous_alias_i_cant_be_bothered_to_lookup' >> ~/.bash_aliases. The device is functionally the same as the user that plugged it in, typing at a keyboard, so this is perfectly valid. What if what I want is ssh keys? ~/.ssh is accessible too. Plus, relevant XKCD, for practical purposes, malware targeted at things like identity theft or ransomware doesn't really need root at all.

Edit: Some fun links on privilege escalation superuser 1: serverfault 1: blog 1: security SE 1: security SE 2:and some general malicious bash_aliases github 1:

13 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.