diff --git a/builder/data/usr/bin/pwnlib b/builder/data/usr/bin/pwnlib index e75c57ee..354481e1 100755 --- a/builder/data/usr/bin/pwnlib +++ b/builder/data/usr/bin/pwnlib @@ -1,4 +1,7 @@ #!/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() { # shellcheck disable=SC2034 diff --git a/builder/orangepi.yml b/builder/orangepi.yml index e6401047..4ec5995c 100644 --- a/builder/orangepi.yml +++ b/builder/orangepi.yml @@ -235,6 +235,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: "./autogen.sh && ./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 diff --git a/builder/raspberrypi32.yml b/builder/raspberrypi32.yml index 3121557a..f831c3a2 100644 --- a/builder/raspberrypi32.yml +++ b/builder/raspberrypi32.yml @@ -276,7 +276,7 @@ version: libpcap-1.9 - name: build and install libpcap into /usr/local/lib - shell: "./configure && make && make install" + shell: "./autogen.sh && ./configure && make && make install" args: executable: /bin/bash chdir: /usr/local/src/libpcap diff --git a/builder/raspberrypi64.yml b/builder/raspberrypi64.yml index ae6b512f..c2785e21 100644 --- a/builder/raspberrypi64.yml +++ b/builder/raspberrypi64.yml @@ -198,6 +198,33 @@ update_cache: yes install_recommends: false + ########################################### + # + # 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: "./autogen.sh && ./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 + # Install nexmon to fix wireless scanning (takes 2.5G of space) - name: clone nexmon repository git: