unixabg / cryptmypi

Project to assist users in building an encrypted raspberry pi
GNU General Public License v3.0
61 stars 21 forks source link

DropBear Unlock via LTE\3G USB modem! #36

Open loliDe opened 3 years ago

loliDe commented 3 years ago

Hi @unixabg How I can unlock my encrypted kali-complete Rpi4B via LTE\3G USB modem (eg. Huawei E3372h-153)?

IF its possible to load this USB modem to initframs? Thx?

unixabg commented 3 years ago

Greetings, In general, if you can boot the Rpi normal and get the modem working then yes, it should be possible. You will need the correct modules, binary/firmware components, and interface name and build in the initramfs. It should be very similar to how the *-wifi.hook files work. I do not have like hardware to test, but as always patches welcome.

loliDe commented 3 years ago

@unixabg Thx Go to Work with it =)

loliDe commented 3 years ago

Hi @unixabg Can you help me with hooks and modules, binary/firmware with my issue? Write plz some examples and I will use it for my work.. Cheers and Merry Christmas!

loliDe commented 3 years ago

Hi @unixabg I still here Can you help me? How I can find correct modules, binary/firmware with my issue? Thx

unixabg commented 3 years ago

Greetings, I do not have hardware to test with so there is little I can do to help. I can leave open for a while longer, but this seems to be more of a specialty request or custom out of mainline request. The only thing I can offer is if you would want to sponsor an attempted solution to contrib to the the project. The contribs are one way, means sponsor pays for all costs up front. Hardware and services I procure for attempted solution is non refundable, no equipment returns to sponsor, and no guarantees I can make work as you want. In a nutshell all costs on you and no returns or refunds. If this is something you wish to pursue for you and other users of the project please email me with this issue # and header in subject line and we work through specifics.

iTosun commented 3 years ago

I've got this working correctly on my setup. You should add the following code in one of your stages (i used stage 1)

# USB mass storage
printf "xhci_hcd\n" >> /etc/initramfs-tools/modules
# USB modem for LTE
printf "cdc_ether\n" >> /etc/initramfs-tools/modules

used USB LTE modem: huawei e3372 lte (https://www.amazon.com/Huawei-E3372-Surfstick-microSD-wei%C3%A1/dp/B0104LV06M)

Need to warn you that the LTE modem could be instable thus you would lose the connection. I recommend to unlock the pi immediately and rely on the sys-ssh-jump service. Also i recommend to adjust the bash script with the following code in this issue: https://github.com/unixabg/cryptmypi/issues/45