evilsocket/pwnagotchi

[BUG]

D337z opened this issue · 0 comments

D337z commented

Describe the bug
Compilation assumption issues found in the Makefile

To Reproduce
Steps to reproduce the behavior:

  1. git clone the repository into a 32-bit Raspbian distro
  2. Attempt to compile after having downloaded several of the hidden dependencies such as an updated version of Go
  3. Fail at the image build due to the Makefile specifically downloading the ARM64 version of Packer

Expected behavior
Expecting the correct version of Packer to be downloaded for the specific Linux Kernel/CPU in use and for it to correctly pack the image.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • Pwnagotchi version: 1.5.5
  • OS Version: Raspbian with Kernel 5.15.84
  • Type of hardware: Raspberry Pi Zero W (Yes, the 32-bit version)
  • Any additional hardware used: PC to SSH into the terminal and some wifi for downloading code and dependencies

Additional context
There are several issues incurred during compilation including the incorrect version of Go causing an issue with ./... being mistaken as a filename called "." There's also several other issues, but they're self-explanatory for those who at least have some idea of what they're doing. Instead of using specific versions of ARM and the like, use a built-in ($macro) to determine the kernel in use and place it into the section for Packer to be downloaded. Or just apt-get/curl/whatever it using the generalized name "packer" assuming that the version is suitable for use.