r/programming • • Feb 20 '18

A CSS Keylogger

https://github.com/maxchehab/CSS-Keylogging
2.0k Upvotes

276 comments sorted by

View all comments

0

u/[deleted] Feb 20 '18

[deleted]

96

u/Senior-Jesticle Feb 20 '18

Correct! But there are other attribute selectors. For example [input*=value] checks if input contains value. Although this would not show the order of the password, it would reveal its contents.

0

u/[deleted] Feb 20 '18

[deleted]

0

u/[deleted] Feb 20 '18

[deleted]

5

u/JavierTheNormal Feb 21 '18

Maybe, but it's counterproductive. The number of keystrokes required to enter unicode characters is more than the value they provide, you'd be better off just making a longer password with normal characters.

Many sites still won't allow ' or even spaces in passwords, so nothing is universal.

5

u/MCBeathoven Feb 21 '18

Eh, the US international keyboard allows you to type loads of non-ASCII characters with single keystrokes.

1

u/JavierTheNormal Feb 21 '18

Throw one of those in, but it's only helpful against someone who doesn't realize those characters are easily available.

2

u/MCBeathoven Feb 21 '18

Allowing US international characters in your password hugely increases the available alphabet so it gets much harder to brute-force, so even if someone is aware they are easily available they'll likely not test for them (well at least in English-speaking countries) because the cost/benefit ratio is quite small.

→ More replies (3)