Skip to content
/ mizaru Public

Blindly capture keyboard input and send it to your email.

License

Notifications You must be signed in to change notification settings

arfct/mizaru

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🙈 Mizaru

Blindly capture keyboard input and send it to your email.

Setup:

Install Raspberry Pi OS:

SSH into the device

Install git and node

sudo apt update
sudo apt install git nodejs npm
git clone https://github.com/arfct/mizaru.git

Install dependencies:

cd mizaru; npm install

Make sure it works:

node mizaru.js

Edit config.json

Connect Bluetooth keyboard (optional):

  1. Open a terminal window on your Raspberry Pi.
  2. Type bluetoothctl and press Enter to start the Bluetooth control utility.
  3. Type power on to turn on the Bluetooth adapter.
  4. Type agent on to enable the agent that will handle the pairing process.
  5. Type scan on to start scanning for Bluetooth devices.
  6. Put your keyboard in pairing mode by pressing the pairing button or following the manufacturer’s instructions.
  7. Wait for your keyboard to appear in the list of available devices. Once it appears, note its MAC address.
  8. Type pair MAC_ADDRESS (replace MAC_ADDRESS with the actual MAC address of your keyboard) to initiate the pairing process.
  9. Follow the on-screen instructions to complete the pairing process.
  10. Type trust MAC_ADDRESS to mark the keyboard as a trusted device.
  11. Type connect MAC_ADDRESS to connect to the keyboard.

Set up auto-login

To have your Raspberry Pi automatically login a user on boot, you can modify the getty service configuration. Here are the steps:

  1. Open a terminal window on your Raspberry Pi.
  2. Edit the getty service configuration file by running the command sudo nano /etc/systemd/system/[email protected]/autologin.conf
  3. Add the following lines to the file:
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin USERNAME --noclear %I $TERM
  1. Save the file by pressing Ctrl+X, then Y, then Enter.
  2. Reload the systemd daemon by running the command sudo systemctl daemon-reload.
  3. Enable the getty service by running the command sudo systemctl enable [email protected]. Now when your Raspberry Pi boots up, it will automatically login the specified user. Note that this will bypass the login prompt, so use with caution and only on trusted devices.

Setup mizaru to auto-start

  1. Open a terminal window on your Raspberry Pi.
  2. Edit the .bashrc file for the user you want to automatically start the program for by running the command nano ~/.bashrc
  3. Scroll to the bottom of the file and add the command to start the program node ~/mizaru/mizaru.js
  4. Save the file by pressing Ctrl+X, then Y, then Enter.
  5. Restart your Raspberry Pi to apply the changes.

About

Blindly capture keyboard input and send it to your email.

Resources

License

Stars

Watchers

Forks