Skip to content

wifiCardHacks

GeorgB edited this page Jul 5, 2017 · 12 revisions

Link summary for WiFi card hacks

Downloads

Compiling Cryptapult

#!/bin/bash
# MAKE SURE libtool and libsodium-dev are installed!
# Remove cryptapult
rm -rf cryptapult

# Clone cryptapult
git clone https://github.com/ProjektMedInf/cryptapult.git
cd cryptapult
# Compile
libtoolize --force
aclocal
autoheader
automake --force-missing --add-missing
autoconf
CFLAGS=-O3 CPPFLAGS=-O3 ./configure --enable-static --enable-asm --host=arm-linux
make

PQIAirCard Hacking

Inserting the card in a notebook does not make the wifi network hosted by the card show up. The only way to get around this for now is to insert the card into the DSLR. This makes the wifi show up. Connecting to the network is possible without any password. A telnet session can be started with:

telnet 192.168.1.1

Updating the card's firmware is possible with downloading the firmware from the above mentioned link.

First we tested installing the firmware provided by Dmitry Grinberg provided here. After placing the 4 files:

  • image3
  • initramfs3.gz
  • mtd_jffs2.bin
  • program.bin

in the root folder of the mirco sd memory card, we inserted the wifi sd card in the camera and powered it on. Now we are able to discover a new network called WIFISDV1.6, which indicates that the update process is ongoing.

Second, we tested the image provided by Dan Krause, as it was optimized for PQI Air Card, this may be found here. This image contains an empty file called "factory_reset" which may be placed instead of mtd_jffs2.bin. Dan Krauses image starts telnet and ssh automatically, it says that no password needs to be provided, but only telnet login was possible without a password. After a successful telnet login, the password may be changed with

passwd

after that, an ssh session can be started with

ssh root@192.168.1.1

.

A speciality about Dan Krauses Image is, that the SD Card may be used in client mode. To make this work we needed to do the following: NOTE: call "sync" bevor rebooting the sd card

  1. edit the wpa_supplicant.conf file in /etc/
    network={
        ssid="NetworkSSID"
        scan_ssid=1
        key_mgmt=WPA-PSK
        psk="Password"
    }
  1. place an autorun.sh file in /mnt/sd/
    #!/bin/sh
    exec 1<&-
    exec 1<> /mnt/sd/log.txt
    /etc/init.d/S45hostapd stop
    /etc/init.d/S50udhcpd stop
    wpa_supplicant -c /etc/wpa_supplicant.conf -i mlan0 &
    udhcpc -i mlan0

find out the IP address, that the router assigned to the card, and you are ready to go e.g.:

 ssh root@192.168.0.17

Files not refreshing on SD Card

As described here: https://www.pitt-pladdy.com/blog/_20140202-083815_0000_Transcend_Wi-Fi_SD_Hacks_CF_adaptor_telnet_custom_upload_/

this is a common issue. a script called "refresh_sd" is called to sync

Clone this wiki locally