Merge branch 'main' into 'main'
add slither. Add alternative slither install and manticore install via... See merge request shopglue/ziion-tools!2
This commit is contained in:
commit
149e0684f3
37
README.md
37
README.md
|
@ -5,23 +5,20 @@
|
||||||
|
|
||||||
Build your own EVM tools for Ubuntu.
|
Build your own EVM tools for Ubuntu.
|
||||||
|
|
||||||
|
## [Progress](https://gitlab.com/shopglue/ziion-tools/-/issues/1) 👷♂️
|
||||||
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
|
|
||||||
| [<img src="https://avatars.githubusercontent.com/u/5644977?v=3" width="100px;"/><br /><sub>Bryan Black</sub>](https://github.com/reelsense/)<br />[📖](https://github.com/stationgroup/ansible-experiments/commits?author=reelsense) |
|
|
||||||
| :---: |
|
|
||||||
|
|
||||||
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
|
||||||
|
|
||||||
|
|
||||||
## Initialization
|
## Initialization
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
git clone https://gitlab.com/shopglue/ziion-tools.git
|
||||||
|
cd ziion-tools/ansible
|
||||||
ansible-galaxy install -r roles/requirements.yml
|
ansible-galaxy install -r roles/requirements.yml
|
||||||
```
|
```
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
`ansible`
|
- Ansible
|
||||||
|
- Ubuntu _20.04_ Desktop **target**
|
||||||
|
|
||||||
## Role Variables
|
## Role Variables
|
||||||
|
|
||||||
|
@ -69,6 +66,30 @@ Build your own EVM tools for Ubuntu.
|
||||||
- geth
|
- geth
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## 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](https://gitlab.com/shopglue/ziion-tools/-/blob/main/CONTRIBUTING.md)
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
|
||||||
|
| [<img src="https://avatars.githubusercontent.com/u/5644977?v=3" width="100px;"/><br /><sub>Bryan Black</sub>](https://github.com/reelsense/)<br />[📖](https://github.com/stationgroup/ansible-experiments/commits?author=reelsense) |
|
||||||
|
| :---: |
|
||||||
|
|
||||||
|
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
This project is under the MIT License.
|
This project is under the MIT License.
|
||||||
|
|
|
@ -13,8 +13,11 @@
|
||||||
- truffle
|
- truffle
|
||||||
- solc
|
- solc
|
||||||
- solc-select
|
- solc-select
|
||||||
|
- slither
|
||||||
- brownie
|
- brownie
|
||||||
- manticore
|
- manticore
|
||||||
- mythril
|
- mythril
|
||||||
- ganache
|
- ganache
|
||||||
- remix
|
- remix
|
||||||
|
- geth
|
||||||
|
- sol2uml #BROKEN a little on x86 and completely on ARM https://gitlab.com/shopglue/ziion-tools/-/issues/7
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
- name: Create manticore
|
||||||
|
community.docker.docker_container:
|
||||||
|
name: eth-security-toolbox
|
||||||
|
image: trailofbits/eth-security-toolbox
|
||||||
|
state: started
|
||||||
|
restart: true
|
||||||
|
|
3
ansible/roles/eth-security-toolbox/tasks/main.yml
Normal file
3
ansible/roles/eth-security-toolbox/tasks/main.yml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
- import_tasks: install-via-docker.yml
|
||||||
|
tags: install-via-docker
|
14
ansible/roles/geth/tasks/main.yml
Normal file
14
ansible/roles/geth/tasks/main.yml
Normal file
|
@ -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
|
7
ansible/roles/slither/tasks/install-via-docker.yml
Normal file
7
ansible/roles/slither/tasks/install-via-docker.yml
Normal file
|
@ -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
|
4
ansible/roles/slither/tasks/install-via-pip.yml
Normal file
4
ansible/roles/slither/tasks/install-via-pip.yml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
- name: Install slither python package
|
||||||
|
ansible.builtin.pip:
|
||||||
|
name: slither-analyzer==0.8.3
|
||||||
|
state: present
|
6
ansible/roles/slither/tasks/main.yml
Normal file
6
ansible/roles/slither/tasks/main.yml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
- import_tasks: install-via-pip.yml
|
||||||
|
tags: install-via-pip
|
||||||
|
|
||||||
|
#- import_tasks: install-via-docker.yml
|
||||||
|
# tags: install-via-docker
|
7
ansible/roles/sol2uml/tasks/install-via-npm.yml
Normal file
7
ansible/roles/sol2uml/tasks/install-via-npm.yml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
- name: Install sol2uml
|
||||||
|
community.general.npm:
|
||||||
|
name: sol2uml
|
||||||
|
version: '1.1.29'
|
||||||
|
path: /usr/local/sol2uml
|
||||||
|
global: true
|
||||||
|
state: present
|
7
ansible/roles/sol2uml/tasks/main.yml
Normal file
7
ansible/roles/sol2uml/tasks/main.yml
Normal file
|
@ -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
|
Loading…
Reference in a new issue