Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-11-09 10:02:28 +01:00
parent db89686a7e
commit 1abfedd886
4 changed files with 58 additions and 1 deletions

View File

@ -1,4 +1,7 @@
#!/usr/bin/env bash #!/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 # well ... it blinks the led
blink_led() { blink_led() {
# shellcheck disable=SC2034 # shellcheck disable=SC2034

View File

@ -235,6 +235,33 @@
state: absent state: absent
path: /usr/local/src/pwnagotchi 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 - name: Install go-1.21
unarchive: unarchive:
src: https://go.dev/dl/go1.21.3.linux-arm64.tar.gz src: https://go.dev/dl/go1.21.3.linux-arm64.tar.gz

View File

@ -276,7 +276,7 @@
version: libpcap-1.9 version: libpcap-1.9
- name: build and install libpcap into /usr/local/lib - name: build and install libpcap into /usr/local/lib
shell: "./configure && make && make install" shell: "./autogen.sh && ./configure && make && make install"
args: args:
executable: /bin/bash executable: /bin/bash
chdir: /usr/local/src/libpcap chdir: /usr/local/src/libpcap

View File

@ -198,6 +198,33 @@
update_cache: yes update_cache: yes
install_recommends: false 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) # Install nexmon to fix wireless scanning (takes 2.5G of space)
- name: clone nexmon repository - name: clone nexmon repository
git: git: