Skip to content

Commit c222d90

Browse files
authored
Security Upate
Using AES and salting for PBKDF2 Generation.
1 parent 20a5432 commit c222d90

File tree

6 files changed

+2294
-170
lines changed

6 files changed

+2294
-170
lines changed

ACR122U_helper.sh

Lines changed: 15 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,18 @@ install_pcsc() {
1010
case $distro_choice in
1111
1)
1212
echo "Installing pcscd and pcsc-tools using apt..."
13-
sudo apt-get install pcscd pcsc-tools
13+
sudo apt-get update
14+
sudo apt-get install -y pcsc-lite pcsc-tools
15+
sudo systemctl enable pcscd
16+
sudo systemctl start pcscd
1417
;;
1518
2)
1619
echo "Installing pcscd and pcsc-tools using pacman..."
17-
sudo pacman -Sy pcscd pcsc-tools
20+
sudo pacman -Syu --noconfirm ccid libnfc acsccid pcsclite pcsc-tools
21+
sudo systemctl enable --now pcscd
1822
;;
1923
3)
20-
read -p "Write install command for pcsc-tools or download similar package: " custom_install_cmd
24+
read -p "Enter the install command for pcsc-tools or download a similar package: " custom_install_cmd
2125
eval $custom_install_cmd
2226
;;
2327
*)
@@ -27,32 +31,16 @@ install_pcsc() {
2731
esac
2832
}
2933

30-
blacklist_drivers() {
31-
echo "Blacklisting conflicting NFC kernel drivers..."
32-
echo -e "install nfc /bin/false\ninstall pn533 /bin/false" | sudo tee -a /etc/modprobe.d/blacklist.conf
33-
}
34-
35-
download_install_drivers() {
36-
echo "Downloading ACR122U drivers..."
37-
wget http://www.acs.com.hk/download-driver-unified/11929/ACS-Unified-PKG-Lnx-118-P.zip -O acr122u_driver.zip
34+
echo "Please ensure that your smart card reader is properly connected."
35+
echo "Running pcsc_scan to detect the reader:"
3836

39-
echo "Unzipping downloaded drivers..."
40-
unzip acr122u_driver.zip -d acr122u_driver
37+
# Check if pcsc_scan is available
38+
if ! command -v pcsc_scan &>/dev/null; then
39+
echo "pcsc_scan command not found. Please install pcsc-tools."
40+
exit 1
41+
fi
4142

42-
echo "Installing drivers..."
43-
cd acr122u_driver
44-
# Placeholder for driver installation command
45-
# ./install.sh or other commands as per the driver documentation
46-
}
43+
pcsc_scan
4744

4845
# Run functions
4946
install_pcsc
50-
blacklist_drivers
51-
download_install_drivers
52-
53-
echo "Please follow any on-screen instructions to complete the driver installation."
54-
55-
echo "Once the driver is installed, restart your computer."
56-
57-
echo "After restarting, run 'pcsc_scan' to verify the installation. You should see 'ACS ACR122U' listed among the devices."
58-

IPFSS_IPFS-Secure

25.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)