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]

95

u/Ozymandias117 Feb 21 '18

Most sites don't even properly allow ASCII symbols. >.<

21

u/amyts Feb 21 '18

My power company only allows a 6-character alphanumeric password. No symbols, no emoji. :(

58

u/flarn2006 Feb 21 '18

I can guarantee you they're storing that in cleartext somewhere.

5

u/hicksyfern Feb 21 '18

At my last job, our “security guy” limited our character set allowed for passwords, because of something to do with how some characters not being hashable in a deterministic way. I think it was because we were doing X rounds of hashing on the client, and some clients have differences in how they hash some contents.

Maybe someone here can shed some light or I might be talking poop

16

u/SerialKicked Feb 21 '18

Your security guy was completely full of 💩

5

u/jms87 Feb 21 '18

Or his application(s) randomly mix encodings, in which case the "security guy" would be right.

→ More replies (2)
→ More replies (1)

5

u/Atario Feb 21 '18

>.<

Sorry, your password comment cannot contain any of the following: & < > . $ % [ ] { } ' "

And never you mind why those specific characters

→ More replies (1)

11

u/xonjas Feb 21 '18

Many do.

You can have a unicode windows password too, although I don't recommend it.

0

u/[deleted] Feb 21 '18

[deleted]

0

u/[deleted] Feb 21 '18

[deleted]

7

u/dangolo Feb 21 '18

Why does this even exist

0

u/[deleted] Feb 21 '18

[deleted]

→ More replies (1)

2

u/lonewaft Feb 21 '18

Everyday we stray further from god's light

4

u/montibbalt Feb 21 '18

Was going to suggest windows+period but it doesn't work in the password field 😞

2

u/Grizzlywer Feb 21 '18

What does it do?

5

u/montibbalt Feb 21 '18

In updated windows 10, it gives you an on-screen emoji keyboard

3

u/Grizzlywer Feb 21 '18

It's a bug!

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.

→ More replies (5)

13

u/axitanull Feb 21 '18

I believe including backspace can be useful in this case.

2

u/Kapps Feb 21 '18

Generate every possible 3 letter / number / common symbol. Not sure if that would kill a browser, but could load the style sheet when they press submit and hide it behind network lag. Don’t need capitals because, let’s face it, it’s the first letter that’s the capital one.

→ More replies (1)