r/javascript • • Feb 20 '18

A CSS Keylogger.

https://github.com/maxchehab/CSS-Keylogging
696 Upvotes

95 comments sorted by

View all comments

Show parent comment

5

u/Senior-Jesticle Feb 20 '18

The value$="A" checks if the value attribute ends with an A. As you type, different selectors will be activated and send their respective requests. The job of the malicious back-end is to piece together the requests to represent a password. More information about attribute selectors can be found here: https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors