From cb7cccf35bfdb748a5521c654f79b16905b88f02 Mon Sep 17 00:00:00 2001 From: Bryan Black Date: Fri, 28 Oct 2022 22:46:38 -0700 Subject: [PATCH 01/12] add sol2uml even though viz.js is broken https://gitlab.com/shopglue/ziion-tools/-/issues/7 --- ansible/roles/sol2uml/tasks/install-via-npm.yml | 7 +++++++ ansible/roles/sol2uml/tasks/main.yml | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 ansible/roles/sol2uml/tasks/install-via-npm.yml create mode 100644 ansible/roles/sol2uml/tasks/main.yml diff --git a/ansible/roles/sol2uml/tasks/install-via-npm.yml b/ansible/roles/sol2uml/tasks/install-via-npm.yml new file mode 100644 index 0000000..15e8dc7 --- /dev/null +++ b/ansible/roles/sol2uml/tasks/install-via-npm.yml @@ -0,0 +1,7 @@ +- name: Install sol2uml + community.general.npm: + name: sol2uml + version: '1.1.29' + path: /usr/local/sol2uml + global: true + state: present diff --git a/ansible/roles/sol2uml/tasks/main.yml b/ansible/roles/sol2uml/tasks/main.yml new file mode 100644 index 0000000..7d8704f --- /dev/null +++ b/ansible/roles/sol2uml/tasks/main.yml @@ -0,0 +1,7 @@ +--- +#- import_tasks: build-source.yml +# tags: build-source + +- import_tasks: install-via-npm.yml + tags: install-via-npm +# BROKEN viz.js package https://gitlab.com/shopglue/ziion-tools/-/issues/7 From 096fdf8f8fbb5d19ec2cc586645f28301de04a50 Mon Sep 17 00:00:00 2001 From: Bryan Black Date: Fri, 28 Oct 2022 22:46:57 -0700 Subject: [PATCH 02/12] deploy sol2uml --- ansible/plays/evm-tools.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/plays/evm-tools.yml b/ansible/plays/evm-tools.yml index 9989d0a..8443f1f 100644 --- a/ansible/plays/evm-tools.yml +++ b/ansible/plays/evm-tools.yml @@ -11,6 +11,7 @@ - common - geerlingguy.docker - truffle + - sol2uml - solc - solc-select - brownie From a8756b55a48e7b06ca0bd6f510b110988ffbc9dd Mon Sep 17 00:00:00 2001 From: Bryan Black Date: Sat, 29 Oct 2022 00:01:34 -0700 Subject: [PATCH 03/12] 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 From 315b72b566bcf7682d17fb72a3398427c076db27 Mon Sep 17 00:00:00 2001 From: Bryan Black <2366082-reel@users.noreply.gitlab.com> Date: Sun, 30 Oct 2022 12:42:10 +0000 Subject: [PATCH 04/12] Update README.md --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 50cbc35..2f25537 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,21 @@ Build your own EVM tools for Ubuntu. - geth ``` +## Known Issues + +- [sol2uml broken dependency on amd64 and completely broken on arm64](https://gitlab.com/shopglue/ziion-tools/-/issues/7) +- [manticore missing arm64 arch](https://gitlab.com/shopglue/ziion-tools/-/issues/5) +- [mythril missing arm64 arch](https://gitlab.com/shopglue/ziion-tools/-/issues/5) +- [ganache missing arm64 arch pre `7.1.0`](https://gitlab.com/shopglue/ziion-tools/-/issues/6) +- [RemixIDE investigating arm64](https://gitlab.com/shopglue/ziion-tools/-/issues/2) + +## CONTRIBUTORS + +Thanks to the people that crowdfunded the EVM tools role for Ziion OS. + +>http://63dqiumxtf36fkwfavshs5aontqo4ekkc7f54uefkuhhynufbzin6jqd.onion/apps/3jJjoNDCydWNQZdaM9AfXhMqS2vF/crowdfund +>This is an Onion address on the private web. Use TOR to access. + ## License This project is under the MIT License. From b77d6f937647ebbd5f85ca4d3c43c2a601a8b3e6 Mon Sep 17 00:00:00 2001 From: Bryan Black <2366082-reel@users.noreply.gitlab.com> Date: Sun, 30 Oct 2022 12:43:21 +0000 Subject: [PATCH 05/12] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2f25537..e9e328c 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,7 @@ Build your own EVM tools for Ubuntu. Thanks to the people that crowdfunded the EVM tools role for Ziion OS. >http://63dqiumxtf36fkwfavshs5aontqo4ekkc7f54uefkuhhynufbzin6jqd.onion/apps/3jJjoNDCydWNQZdaM9AfXhMqS2vF/crowdfund +> >This is an Onion address on the private web. Use TOR to access. ## License From b66763363453d49adbd452b67fee564b9f5a939b Mon Sep 17 00:00:00 2001 From: Bryan Black <2366082-reel@users.noreply.gitlab.com> Date: Sun, 30 Oct 2022 12:48:04 +0000 Subject: [PATCH 06/12] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index e9e328c..569cc9a 100644 --- a/README.md +++ b/README.md @@ -71,11 +71,13 @@ Build your own EVM tools for Ubuntu. ## Known Issues +- Existing Halborn installation and build process is still unknown. So setting up an ubuntu host to run the playbook on isn't documented, and is up to you! - [sol2uml broken dependency on amd64 and completely broken on arm64](https://gitlab.com/shopglue/ziion-tools/-/issues/7) - [manticore missing arm64 arch](https://gitlab.com/shopglue/ziion-tools/-/issues/5) - [mythril missing arm64 arch](https://gitlab.com/shopglue/ziion-tools/-/issues/5) - [ganache missing arm64 arch pre `7.1.0`](https://gitlab.com/shopglue/ziion-tools/-/issues/6) - [RemixIDE investigating arm64](https://gitlab.com/shopglue/ziion-tools/-/issues/2) +- Desktop integration of RemixIDE is absent. ## CONTRIBUTORS From 9cfb08527c39d1a140e5fb6dde08c45bf7201a8e Mon Sep 17 00:00:00 2001 From: Bryan Black <2366082-reel@users.noreply.gitlab.com> Date: Sun, 30 Oct 2022 12:49:11 +0000 Subject: [PATCH 07/12] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 569cc9a..5ab3d0c 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,8 @@ Build your own EVM tools for Ubuntu. ## Requirements -`ansible` +- Ansible +- Ubuntu _20.04_ Desktop **target** ## Role Variables From 737241046220b67fcd3518d95ff6c6952f178b2c Mon Sep 17 00:00:00 2001 From: Bryan Black <2366082-reel@users.noreply.gitlab.com> Date: Sun, 30 Oct 2022 12:51:13 +0000 Subject: [PATCH 08/12] Update README.md --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 5ab3d0c..7845e2a 100644 --- a/README.md +++ b/README.md @@ -5,13 +5,7 @@ Build your own EVM tools for Ubuntu. - - -| [
Bryan Black](https://github.com/reelsense/)
[📖](https://github.com/stationgroup/ansible-experiments/commits?author=reelsense) | -| :---: | - - - +## [Progress](https://gitlab.com/shopglue/ziion-tools/-/issues/1) ## Initialization @@ -88,6 +82,12 @@ Thanks to the people that crowdfunded the EVM tools role for Ziion OS. > >This is an Onion address on the private web. Use TOR to access. + +| [
Bryan Black](https://github.com/reelsense/)
[📖](https://github.com/stationgroup/ansible-experiments/commits?author=reelsense) | +| :---: | + + + ## License This project is under the MIT License. From 2339c193a19c1507bb391ff3deb4afb8ada4b688 Mon Sep 17 00:00:00 2001 From: Bryan Black <2366082-reel@users.noreply.gitlab.com> Date: Sun, 30 Oct 2022 12:51:58 +0000 Subject: [PATCH 09/12] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7845e2a..f0e29a4 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ Build your own EVM tools for Ubuntu. - [RemixIDE investigating arm64](https://gitlab.com/shopglue/ziion-tools/-/issues/2) - Desktop integration of RemixIDE is absent. -## CONTRIBUTORS +## [CONTRIBUTORS](https://gitlab.com/shopglue/ziion-tools/-/blob/main/CONTRIBUTING.md) Thanks to the people that crowdfunded the EVM tools role for Ziion OS. From 5c3689df3ab477801de1dfd3c49a7bab5da4752a Mon Sep 17 00:00:00 2001 From: Bryan Black <2366082-reel@users.noreply.gitlab.com> Date: Sun, 30 Oct 2022 12:54:17 +0000 Subject: [PATCH 10/12] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f0e29a4..62a99a0 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,9 @@ Build your own EVM tools for Ubuntu. ## Initialization ```bash - ansible-galaxy install -r roles/requirements.yml +git clone https://gitlab.com/shopglue/ziion-tools.git +cd ziion-tools/ansible +ansible-galaxy install -r roles/requirements.yml ``` ## Requirements From 90ea8410163e54eefeed985a84cd3f95516040df Mon Sep 17 00:00:00 2001 From: Bryan Black Date: Sun, 30 Oct 2022 05:58:16 -0700 Subject: [PATCH 11/12] add geth --- ansible/plays/evm-tools.yml | 3 ++- ansible/roles/geth/tasks/main.yml | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 ansible/roles/geth/tasks/main.yml diff --git a/ansible/plays/evm-tools.yml b/ansible/plays/evm-tools.yml index c8cc2bd..757229a 100644 --- a/ansible/plays/evm-tools.yml +++ b/ansible/plays/evm-tools.yml @@ -11,7 +11,6 @@ - common - geerlingguy.docker - truffle - - sol2uml - solc - solc-select - slither @@ -20,3 +19,5 @@ - mythril - ganache - remix + - geth + - sol2uml #BROKEN a little on x86 and completely on ARM https://gitlab.com/shopglue/ziion-tools/-/issues/7 diff --git a/ansible/roles/geth/tasks/main.yml b/ansible/roles/geth/tasks/main.yml new file mode 100644 index 0000000..0037496 --- /dev/null +++ b/ansible/roles/geth/tasks/main.yml @@ -0,0 +1,14 @@ +--- +- name: add apt ppa required for geth + apt_repository: + repo: 'ppa:ethereum/ethereum' + +- name: Install pip3 + become_user: root + become: true + apt: + state: present + update_cache: yes + cache_valid_time: 604800 + pkg: + - ethereum From 6e966b72aafa4a234bc3e6ce43a521b9a5c21416 Mon Sep 17 00:00:00 2001 From: Bryan Black <2366082-reel@users.noreply.gitlab.com> Date: Sun, 30 Oct 2022 12:59:46 +0000 Subject: [PATCH 12/12] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 62a99a0..8a08bb1 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Build your own EVM tools for Ubuntu. -## [Progress](https://gitlab.com/shopglue/ziion-tools/-/issues/1) +## [Progress](https://gitlab.com/shopglue/ziion-tools/-/issues/1) 👷‍♂️ ## Initialization