mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
@ -391,39 +391,21 @@
|
|||||||
export PATH=/usr/local/go/bin:$PATH:$GOPATH/bin
|
export PATH=/usr/local/go/bin:$PATH:$GOPATH/bin
|
||||||
when: golang.changed
|
when: golang.changed
|
||||||
|
|
||||||
- name: download pwngrid 1.10.4
|
- name: download opwngrid 1.10.4
|
||||||
git:
|
unarchive:
|
||||||
repo: https://github.com/jayofelony/pwngrid.git
|
remote_src: "https://github.com/jayofelony/pwngrid/releases/download/v1.10.4/opwngrid-1.10.4-armhf.zip"
|
||||||
dest: /usr/local/src/pwngrid
|
dest: /usr/local/bin/
|
||||||
register: pwngrid
|
mode: 0755
|
||||||
|
|
||||||
- name: install pwngrid 1.10.4
|
- name: download and install bettercap
|
||||||
shell: "export GOSUMDB=off && export GOPROXY=direct && export GOPATH=$HOME/go && export PATH=/usr/local/go/bin:$PATH:$GOPATH/bin && go mod tidy && make && make install"
|
unarchive:
|
||||||
args:
|
src: "{{ packages.bettercap.url }}"
|
||||||
executable: /bin/bash
|
dest: /usr/bin
|
||||||
chdir: /usr/local/src/pwngrid
|
remote_src: yes
|
||||||
when: pwngrid.changed
|
exclude:
|
||||||
|
- README.md
|
||||||
- name: remove pwngrid folder
|
- LICENSE.md
|
||||||
file:
|
mode: 0755
|
||||||
state: absent
|
|
||||||
path: /usr/local/src/pwngrid
|
|
||||||
|
|
||||||
- name: download bettercap
|
|
||||||
git:
|
|
||||||
repo: https://github.com/jayofelony/bettercap.git
|
|
||||||
dest: /usr/local/src/bettercap
|
|
||||||
|
|
||||||
- name: install bettercap 2.32.1
|
|
||||||
shell: "export GOSUMDB=off && export GOPROXY=direct && export GOPATH=$HOME/go && export PATH=/usr/local/go/bin:$PATH:$GOPATH/bin && go mod tidy && make && make install"
|
|
||||||
args:
|
|
||||||
executable: /bin/bash
|
|
||||||
chdir: /usr/local/src/bettercap
|
|
||||||
|
|
||||||
- name: remove bettercap folder
|
|
||||||
file:
|
|
||||||
state: absent
|
|
||||||
path: /usr/local/src/bettercap
|
|
||||||
|
|
||||||
- name: clone bettercap caplets
|
- name: clone bettercap caplets
|
||||||
git:
|
git:
|
||||||
@ -559,15 +541,15 @@
|
|||||||
state: stopped
|
state: stopped
|
||||||
with_items: "{{ services.enable }}"
|
with_items: "{{ services.enable }}"
|
||||||
|
|
||||||
- name: remove golang build libraries
|
#- name: remove golang build libraries
|
||||||
file:
|
# file:
|
||||||
state: absent
|
# state: absent
|
||||||
path: /root/go
|
# path: /root/go
|
||||||
|
|
||||||
- name: remove golang
|
#- name: remove golang
|
||||||
file:
|
# file:
|
||||||
state: absent
|
# state: absent
|
||||||
path: /usr/local/go
|
# path: /usr/local/go
|
||||||
|
|
||||||
- name: make /root readable, becauase that's where all the files are
|
- name: make /root readable, becauase that's where all the files are
|
||||||
file:
|
file:
|
||||||
|
Reference in New Issue
Block a user