Merge pull request 'Updated VP-63774' (#5) from andraz.juvan/classroom:varprog/initial-packages into master
Reviewed-on: #5 Reviewed-by: polz <Gasper.FeleZorz@fri.uni-lj.si>
This commit is contained in:
commit
6c371cdff2
15 changed files with 79 additions and 0 deletions
|
|
@ -2,3 +2,8 @@
|
||||||
# matevz.pesek@fri.uni-lj.si
|
# matevz.pesek@fri.uni-lj.si
|
||||||
dependencies:
|
dependencies:
|
||||||
- c_development
|
- c_development
|
||||||
|
- docker
|
||||||
|
- pwntools
|
||||||
|
- netcat
|
||||||
|
- ropr
|
||||||
|
- pwndbg
|
||||||
|
|
|
||||||
4
roles/netcat/tasks/main.yml
Normal file
4
roles/netcat/tasks/main.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
- import_tasks: main_win.yml
|
||||||
|
when: ansible_os_family == 'Windows'
|
||||||
|
- import_tasks: main_lin.yml
|
||||||
|
when: ansible_os_family == 'Debian'
|
||||||
4
roles/netcat/tasks/main_lin.yml
Normal file
4
roles/netcat/tasks/main_lin.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
- name: Install netcat
|
||||||
|
apt:
|
||||||
|
name: netcat-openbsd
|
||||||
|
state: latest
|
||||||
4
roles/netcat/tasks/main_win.yml
Normal file
4
roles/netcat/tasks/main_win.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
- name: Install netcat
|
||||||
|
win_chocolatey:
|
||||||
|
name: netcat
|
||||||
|
state: latest
|
||||||
2
roles/pwndbg/meta/main.yml
Normal file
2
roles/pwndbg/meta/main.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
dependencies:
|
||||||
|
- c_development
|
||||||
4
roles/pwndbg/tasks/main.yml
Normal file
4
roles/pwndbg/tasks/main.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
- import_tasks: main_win.yml
|
||||||
|
when: ansible_os_family == 'Windows'
|
||||||
|
- import_tasks: main_lin.yml
|
||||||
|
when: ansible_os_family == 'Debian'
|
||||||
25
roles/pwndbg/tasks/main_lin.yml
Normal file
25
roles/pwndbg/tasks/main_lin.yml
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
- name: Install dependencies
|
||||||
|
apt:
|
||||||
|
name:
|
||||||
|
- git
|
||||||
|
|
||||||
|
- name: Download pwndbg
|
||||||
|
command:
|
||||||
|
cmd: git clone https://github.com/pwndbg/pwndbg
|
||||||
|
creates: /opt/pwndbg
|
||||||
|
chdir: /opt
|
||||||
|
|
||||||
|
- name: Pull latest pwndbg
|
||||||
|
command:
|
||||||
|
cmd: git pull
|
||||||
|
chdir: /opt/pwndbg
|
||||||
|
|
||||||
|
- name: Install pwndbg
|
||||||
|
command:
|
||||||
|
cmd: ./setup.sh
|
||||||
|
chdir: /opt/pwndbg
|
||||||
|
|
||||||
|
- name: Update folder permissions (to allow lock files)
|
||||||
|
file:
|
||||||
|
mode: '0777'
|
||||||
|
path: /opt/pwndbg/.venv
|
||||||
3
roles/pwndbg/tasks/main_win.yml
Normal file
3
roles/pwndbg/tasks/main_win.yml
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
- name: pwndbg uninstallable
|
||||||
|
debug:
|
||||||
|
msg: "This task is not installable on Windows. Skipping."
|
||||||
2
roles/ropr/meta/main.yml
Normal file
2
roles/ropr/meta/main.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
dependencies:
|
||||||
|
- rust
|
||||||
4
roles/ropr/tasks/main.yml
Normal file
4
roles/ropr/tasks/main.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
- import_tasks: main_win.yml
|
||||||
|
when: ansible_os_family == 'Windows'
|
||||||
|
- import_tasks: main_lin.yml
|
||||||
|
when: ansible_os_family == 'Debian'
|
||||||
4
roles/ropr/tasks/main_lin.yml
Normal file
4
roles/ropr/tasks/main_lin.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
- name: Install ropr
|
||||||
|
ansible.builtin.command:
|
||||||
|
cmd: cargo install ropr --root /usr/local
|
||||||
|
creates: /usr/local/bin/ropr
|
||||||
3
roles/ropr/tasks/main_win.yml
Normal file
3
roles/ropr/tasks/main_win.yml
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
- name: Uninstallable
|
||||||
|
debug:
|
||||||
|
msg: "This task is not installable on Windows. Skipping."
|
||||||
4
roles/rust/tasks/main.yml
Normal file
4
roles/rust/tasks/main.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
- import_tasks: main_win.yml
|
||||||
|
when: ansible_os_family == 'Windows'
|
||||||
|
- import_tasks: main_lin.yml
|
||||||
|
when: ansible_os_family == 'Debian'
|
||||||
7
roles/rust/tasks/main_lin.yml
Normal file
7
roles/rust/tasks/main_lin.yml
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
- name: Install rust tools
|
||||||
|
apt:
|
||||||
|
name:
|
||||||
|
- rustc
|
||||||
|
- cargo
|
||||||
|
- rustfmt
|
||||||
|
state: latest
|
||||||
4
roles/rust/tasks/main_win.yml
Normal file
4
roles/rust/tasks/main_win.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
- name: Install rust
|
||||||
|
win_chocolatey:
|
||||||
|
name: rust
|
||||||
|
state: latest
|
||||||
Loading…
Add table
Add a link
Reference in a new issue