From a8756b55a48e7b06ca0bd6f510b110988ffbc9dd Mon Sep 17 00:00:00 2001 From: Bryan Black Date: Sat, 29 Oct 2022 00:01:34 -0700 Subject: [PATCH] add slither. Add alternative slither install and manticore install via eth-security-toolbox https://gitlab.com/shopglue/ziion-tools/-/issues/5 --- ansible/plays/evm-tools.yml | 1 + .../eth-security-toolbox/tasks/install-via-docker.yml | 7 +++++++ ansible/roles/eth-security-toolbox/tasks/main.yml | 3 +++ ansible/roles/slither/tasks/install-via-docker.yml | 7 +++++++ ansible/roles/slither/tasks/install-via-pip.yml | 4 ++++ ansible/roles/slither/tasks/main.yml | 6 ++++++ 6 files changed, 28 insertions(+) create mode 100644 ansible/roles/eth-security-toolbox/tasks/install-via-docker.yml create mode 100644 ansible/roles/eth-security-toolbox/tasks/main.yml create mode 100644 ansible/roles/slither/tasks/install-via-docker.yml create mode 100644 ansible/roles/slither/tasks/install-via-pip.yml create mode 100644 ansible/roles/slither/tasks/main.yml diff --git a/ansible/plays/evm-tools.yml b/ansible/plays/evm-tools.yml index 8443f1f..c8cc2bd 100644 --- a/ansible/plays/evm-tools.yml +++ b/ansible/plays/evm-tools.yml @@ -14,6 +14,7 @@ - sol2uml - solc - solc-select + - slither - brownie - manticore - mythril diff --git a/ansible/roles/eth-security-toolbox/tasks/install-via-docker.yml b/ansible/roles/eth-security-toolbox/tasks/install-via-docker.yml new file mode 100644 index 0000000..b9dd106 --- /dev/null +++ b/ansible/roles/eth-security-toolbox/tasks/install-via-docker.yml @@ -0,0 +1,7 @@ +- name: Create manticore + community.docker.docker_container: + name: eth-security-toolbox + image: trailofbits/eth-security-toolbox + state: started + restart: true + diff --git a/ansible/roles/eth-security-toolbox/tasks/main.yml b/ansible/roles/eth-security-toolbox/tasks/main.yml new file mode 100644 index 0000000..c776226 --- /dev/null +++ b/ansible/roles/eth-security-toolbox/tasks/main.yml @@ -0,0 +1,3 @@ +--- +- import_tasks: install-via-docker.yml + tags: install-via-docker diff --git a/ansible/roles/slither/tasks/install-via-docker.yml b/ansible/roles/slither/tasks/install-via-docker.yml new file mode 100644 index 0000000..8c9c85b --- /dev/null +++ b/ansible/roles/slither/tasks/install-via-docker.yml @@ -0,0 +1,7 @@ +- name: Create slither + community.docker.docker_container: + name: slither + image: trailofbits/eth-security-toolbox + state: started + restart: true +# not going to use it with all the extra baggage diff --git a/ansible/roles/slither/tasks/install-via-pip.yml b/ansible/roles/slither/tasks/install-via-pip.yml new file mode 100644 index 0000000..9b40635 --- /dev/null +++ b/ansible/roles/slither/tasks/install-via-pip.yml @@ -0,0 +1,4 @@ +- name: Install slither python package + ansible.builtin.pip: + name: slither-analyzer==0.8.3 + state: present diff --git a/ansible/roles/slither/tasks/main.yml b/ansible/roles/slither/tasks/main.yml new file mode 100644 index 0000000..ed10e0c --- /dev/null +++ b/ansible/roles/slither/tasks/main.yml @@ -0,0 +1,6 @@ +--- +- import_tasks: install-via-pip.yml + tags: install-via-pip + +#- import_tasks: install-via-docker.yml +# tags: install-via-docker