KasperskyLab / TinyCheck

TinyCheck allows you to easily capture network communications from a smartphone or any device which can be associated to a Wi-Fi access point in order to quickly analyze them. This can be used to check if any suspect or malicious communication is outgoing from a smartphone, by using heuristics or specific Indicators of Compromise (IoCs). In order to make it working, you need a computer with a Debian-like operating system and two Wi-Fi interfaces. The best choice is to use a Raspberry Pi (2+) a Wi-Fi dongle and a small touch screen. This tiny configuration (for less than $50) allows you to tap any Wi-Fi device, anywhere.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in Wi-Fi interface check regex

g-hartmann opened this issue · comments

In install.sh, line 399:

if echo "$iface" | grep -Eq "(wlan[0-9]|wl[a-z0-9]{20})"; then

In case the Wi-Fi interface used to create the AP is named after the modern naming scheme, e.g. wlp2s0, the if-check fails because the regex matches the string only if it contains wl, followed by exactly 20 [a-z0-9] characters.

It was probably meant to check for wl followed by at least 2, and up to 20 [a-z0-9] characters.

Changing it to if echo "$iface" | grep -Eq "(wlan[0-9]|wl[a-z0-9]{2,20})"; then should fix the issue.