Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update playbooks #5

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
args:
chdir: /home/{{ username }}/attack_surface_approximation/

<<<<<<< HEAD:playbooks-opencrs/attack-surface-approx.yml
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an unsolved conflict. Take care of it.

- name: Build attack_surface_approximation docker container
ansible.builtin.shell: docker build --tag qbdi_args_fuzzing others/qbdi_docker
args:
chdir: /home/{{ username }}/attack_surface_approximation/
=======
>>>>>>> 1d69419 (Update playbooks):playbooks-opencrs/attack-surface-approximation.yml
24 changes: 24 additions & 0 deletions playbooks-opencrs/automatic_exploit_generation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
- name: Install poetry
ansible.builtin.pip:
name: poetry

- name: Add commons
import_tasks: commons.yml

- name: Clone automatic_exploit_generation from GitHub
ansible.builtin.git:
repo: https://github.com/CyberReasoningSystem/automatic_exploit_generation.git
dest: /home/{{ username }}/automatic_exploit_generation
recursive: True

- name: Install automatic_exploit_generation deps
ansible.builtin.shell: PATH=/home/{{ username }}/.local/bin:$PATH poetry install --no-dev
args:
chdir: /home/{{ username }}/automatic_exploit_generation/

- name: Build automatic_exploit_generation docker container
ansible.builtin.shell: docker build --tag zeratool_lib -f docker/Dockerfile.zeratool_lib .
args:
chdir: /home/{{ username }}/automatic_exploit_generation/
executable: /bin/bash
become: yes
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure the file is newline-ended.

12 changes: 12 additions & 0 deletions playbooks-opencrs/awesome_binary_analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
- name: Install Pandas
ansible.builtin.pip:
name: pandas

- name: Clone awesome-binary-analysis from GitHub
ansible.builtin.git:
repo: https://github.com/CyberReasoningSystem/awesome-binary-analysis.git
dest: /home/{{ username }}/awesome-binary-analysis
recursive: True



Comment on lines +10 to +12
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove excess white lines.

3 changes: 2 additions & 1 deletion playbooks-opencrs/dataset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@
ansible.builtin.shell: docker build --tag ubuntu_32bit_compilator others/ubuntu_32bit_compilator
args:
chdir: /home/{{ username }}/dataset/

executable: /bin/bash
become: yes
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure the file is newline-ended.

38 changes: 28 additions & 10 deletions playbooks-opencrs/master-lite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,45 @@
append: yes
become: yes

- name: Add specified repository into sources list
ansible.builtin.apt_repository:
repo: ppa:deadsnakes/ppa
state: present
become: yes

- name: Install the toolchain
apt:
name: ['python3.12', 'python3.12-dev']
name: ['python3.10', 'python3.10-dev']
state: present
become: yes

- name: Add dataset
import_tasks: dataset.yml

- name: Add attack surfece approximation
import_tasks: attack-surface-approx.yml
- name: Add attack surface approximation
import_tasks: attack-surface-approximation.yml

- name: Add vulnerability_analytics
import_tasks: vulnerability_analytics.yml

- name: Add vulnerability detection
- name: Add vulnerability_detection
import_tasks: vulnerability_detection.yml

- name: Add automatic_exploit_generation
import_tasks: automatic_exploit_generation.yml

- name: Add wiki
import_tasks: wiki.yml

- name: Add opencrs_dataset
import_tasks: opencrs_dataset.yml

- name: Add zeratool_lib
import_tasks: zeratool_lib.yml

- name: Add awesome_binary_analysis
import_tasks: awesome_binary_analysis.yml

- name: Add nist_c_test_suite
import_tasks: nist_c_test_suite.yml

- name: Add signature_generation
import_tasks: signature_generation.yml

#- name: Reboot the machine
#reboot:

8 changes: 8 additions & 0 deletions playbooks-opencrs/nist_c_test_suite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@


- name: Clone nist_c_test_suite from GitHub
ansible.builtin.git:
repo: https://github.com/CyberReasoningSystem/nist_c_test_suite.git
dest: /home/{{ username }}/nist_c_test_suite
recursive: True

5 changes: 5 additions & 0 deletions playbooks-opencrs/opencrs_dataset.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- name: Clone opencrs_dataset from GitHub
ansible.builtin.git:
repo: https://github.com/CyberReasoningSystem/opencrs_dataset.git
dest: /home/{{ username }}/opencrs_dataset
recursive: True
13 changes: 13 additions & 0 deletions playbooks-opencrs/signature_generation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
- name: Install poetry
ansible.builtin.pip:
name: poetry

- name: Add commons
import_tasks: commons.yml

- name: Clone signature_generation from GitHub
ansible.builtin.git:
repo: https://github.com/CyberReasoningSystem/signature_generation.git
dest: /home/{{ username }}/signature_generation
force: yes
recursive: True
24 changes: 24 additions & 0 deletions playbooks-opencrs/vulnerability_analytics.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
- name: Install poetry
ansible.builtin.pip:
name: poetry

- name: Add commons
import_tasks: commons.yml

- name: Clone vulnerability_analytics from GitHub
ansible.builtin.git:
repo: https://github.com/CyberReasoningSystem/vulnerability_analytics.git
dest: /home/{{ username }}/vulnerability_analytics
recursive: True

- name: Install vulnerability_analytics deps
ansible.builtin.shell: PATH=/home/{{ username }}/.local/bin:$PATH poetry install --no-dev
args:
chdir: /home/{{ username }}/vulnerability_analytics/

# - name: Build vulnerability_analytics docker container
# ansible.builtin.shell: docker build . -t vulnerability_analytics:1.0.0-alpha -f ./docker/Dockerfile
# args:
# chdir: /home/{{ username }}/vulnerability_analytics/
# executable: /bin/bash
# become: yes
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure the file is newline-ended.

10 changes: 10 additions & 0 deletions playbooks-opencrs/vulnerability_detection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
ansible.builtin.pip:
name: poetry

- name: Add commons
import_tasks: commons.yml

- name: Clone vulnerability_detection from GitHub
ansible.builtin.git:
repo: https://github.com/CyberReasoningSystem/vulnerability_detection.git
Expand All @@ -14,6 +17,13 @@
chdir: /home/{{ username }}/vulnerability_detection/

- name: Build vulnerability_detection docker container
<<<<<<< HEAD
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an unsolved conflict. Take care of it.

ansible.builtin.shell:
cmd: docker build --build-arg USER_ID=$(id -u {{ username }}) --build-arg GROUP_ID=$(id -g {{ username }}) --tag aflplusplus others/aflplusplus_docker
=======
ansible.builtin.shell: docker build --build-arg USER_ID=1000 --build-arg GROUP_ID=999 --tag aflplusplus -f docker/Dockerfile.aflplusplus .
args:
>>>>>>> 1d69419 (Update playbooks)
chdir: /home/{{ username }}/vulnerability_detection/
executable: /bin/bash
become: yes
10 changes: 10 additions & 0 deletions playbooks-opencrs/wiki.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
- name: Install poetry
ansible.builtin.pip:
name: poetry

- name: Clone wiki from GitHub
ansible.builtin.git:
repo: https://github.com/CyberReasoningSystem/wiki.git
dest: /home/{{ username }}/wiki
recursive: True

18 changes: 18 additions & 0 deletions playbooks-opencrs/zeratool_lib.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
- name: Add commons
import_tasks: commons.yml

- name: Install poetry
ansible.builtin.pip:
name: poetry

- name: Clone zeratool_lib from GitHub
ansible.builtin.git:
repo: https://github.com/CyberReasoningSystem/zeratool_lib.git
dest: /home/{{ username }}/zeratool_lib
recursive: True

- name: Install zeratool_lib deps
ansible.builtin.shell: PATH=/home/{{ username }}/.local/bin:$PATH poetry install --no-dev
args:
chdir: /home/{{ username }}/zeratool_lib/