vmonaco / kloak

Keystroke-level online anonymization kernel: obfuscates typing behavior at the device level.
BSD 3-Clause "New" or "Revised" License
496 stars 35 forks source link

Wireless and bluetooth card blocked after start #72

Open AguirreIF opened 10 months ago

AguirreIF commented 10 months ago

Hi, I'm using kloak 0.2.49 on GNU/Linux Debian Trixie. After starting kloak with $ sudo kloak -v my WiFi and bluetooth disconnects. Both devices are shown soft blocked in rfkill:

$ sudo rfkill list
0: tpacpi_bluetooth_sw: Bluetooth
        Soft blocked: yes
        Hard blocked: no
2: phy0: Wireless LAN
        Soft blocked: yes
        Hard blocked: no

How can I avoid this?

Thanks,

AguirreIF commented 1 month ago

There is some kind of conflict with rfkill. This is my list of devices:

$ sudo rfkill
ID TYPE      DEVICE                      SOFT         HARD
 0 bluetooth tpacpi_bluetooth_sw desbloqueado desbloqueado
 2 wlan      phy0                desbloqueado desbloqueado
26 bluetooth hci0                desbloqueado desbloqueado

If I listen for rfkill events I get:

$ sudo rfkill events
2024-10-02 11:02:34,766250-03:00: idx 0 type 2 op 0 soft 0 hard 0
2024-10-02 11:02:34,766287-03:00: idx 2 type 1 op 0 soft 0 hard 0
2024-10-02 11:02:34,766291-03:00: idx 26 type 2 op 0 soft 0 hard 0

and then start kloak:

$ sudo kloak -v
Found keyboard at: /dev/input/event0
Found mouse at: /dev/input/event1
Found mouse at: /dev/input/event2
Found keyboard at: /dev/input/event7
Found keyboard at: /dev/input/event15
Waiting 500 ms...
********************************************************************************
* Started kloak : Keystroke-level Online Anonymizing Kernel
* Maximum delay : 20 ms
* Reading from  : /dev/input/event0
*                 /dev/input/event1
*                 /dev/input/event2
*                 /dev/input/event7
*                 /dev/input/event15
* Rescue keys   : KEY_LEFTSHIFT + KEY_RIGHTSHIFT + KEY_ESC
********************************************************************************

this events are received by rfkill, the devices are "soft blocked":

2024-10-02 11:03:02,066024-03:00: idx 0 type 2 op 2 soft 1 hard 0
2024-10-02 11:03:02,162654-03:00: idx 2 type 1 op 2 soft 1 hard 0
2024-10-02 11:03:12,410336-03:00: idx 26 type 2 op 2 soft 1 hard 0
2024-10-02 11:03:12,410406-03:00: idx 26 type 2 op 1 soft 1 hard 0

and if I stop kloak they are enabled again:

2024-10-02 11:03:20,844097-03:00: idx 0 type 2 op 2 soft 0 hard 0
2024-10-02 11:03:20,844179-03:00: idx 2 type 1 op 2 soft 0 hard 0
2024-10-02 11:03:21,270879-03:00: idx 27 type 2 op 0 soft 0 hard 0

I don't know if this is a kloak or rfkill issue.