diff --git a/builder/data/usr/bin/pwnlib b/builder/data/usr/bin/pwnlib index b4e68a25..4c0dc0c9 100755 --- a/builder/data/usr/bin/pwnlib +++ b/builder/data/usr/bin/pwnlib @@ -1,4 +1,6 @@ #!/usr/bin/env bash +export LD_LIBRARY_PATH=/usr/local/lib +export LD_PRELOAD=/usr/local/lib/libpcap.so.1 # well ... it blinks the led blink_led() { diff --git a/builder/orangepi.yml b/builder/orangepi.yml index 8804ce26..1cbb46bc 100644 --- a/builder/orangepi.yml +++ b/builder/orangepi.yml @@ -93,6 +93,7 @@ - libavcodec58 - libavformat58 - libblas-dev + - libbluetooth-dev - libbz2-dev - libc-ares-dev - libc6-dev @@ -231,6 +232,33 @@ state: absent path: /usr/local/src/pwnagotchi + ########################################### + # + # libpcap v1.9 - build from source + # + ########################################### + + # check for presence, then it can re-run in later parts if needed + # use the "make" built in + + # install libpcap before bettercap and pwngrid, so they use it + - name: clone libpcap v1.9 from github + git: + repo: 'https://github.com/the-tcpdump-group/libpcap.git' + dest: /usr/local/src/libpcap + version: libpcap-1.9 + + - name: build and install libpcap into /usr/local/lib + shell: "./configure && make && make install" + args: + executable: /bin/bash + chdir: /usr/local/src/libpcap + + - name: remove libpcap build folder + file: + state: absent + path: /usr/local/src/libpcap + - name: create /usr/local/share/pwnagotchi/ folder file: path: /usr/local/share/pwnagotchi/ diff --git a/builder/raspberrypi32.yml b/builder/raspberrypi32.yml index 3c47a64b..cfa7ca4a 100644 --- a/builder/raspberrypi32.yml +++ b/builder/raspberrypi32.yml @@ -141,6 +141,7 @@ - libavcodec58 - libavformat58 - libblas-dev + - libbluetooth-dev - libbz2-dev - libc-ares-dev - libc6-dev @@ -280,7 +281,7 @@ version: libpcap-1.9 - name: build and install libpcap into /usr/local/lib - shell: "./configure && make && make install" + shell: "./configure && make && make install" args: executable: /bin/bash chdir: /usr/local/src/libpcap diff --git a/builder/raspberrypi64.yml b/builder/raspberrypi64.yml index 2d85d2e8..af68fc85 100644 --- a/builder/raspberrypi64.yml +++ b/builder/raspberrypi64.yml @@ -91,6 +91,7 @@ - libavcodec58 - libavformat58 - libblas-dev + - libbluetooth-dev - libbz2-dev - libc-ares-dev - libc6-dev @@ -319,6 +320,33 @@ path: /usr/local/share/pwnagotchi/ state: directory + ########################################### + # + # libpcap v1.9 - build from source + # + ########################################### + + # check for presence, then it can re-run in later parts if needed + # use the "make" built in + + # install libpcap before bettercap and pwngrid, so they use it + - name: clone libpcap v1.9 from github + git: + repo: 'https://github.com/the-tcpdump-group/libpcap.git' + dest: /usr/local/src/libpcap + version: libpcap-1.9 + + - name: build and install libpcap into /usr/local/lib + shell: "./configure && make && make install" + args: + executable: /bin/bash + chdir: /usr/local/src/libpcap + + - name: remove libpcap build folder + file: + state: absent + path: /usr/local/src/libpcap + - name: Install go-1.21 unarchive: src: https://go.dev/dl/go1.21.3.linux-arm64.tar.gz