/core

Primary LanguagePython

What is CORE platform?

As a vital infrastructure platform, CORE empowers Triathon by providing data processing service and other capabilitties continuously. In the CORE platform, we incorporate the fuzzing-test testing method and the concept of chaos engineering (experimental) to redefine the way of blockchain security testing. We're committed to establishing a safe and efficient web3 testing environment.

Main utilities of “CORE”

(The platform will be constantly updated in the future.)

  1. (Testing) Tool building: a collection of various testing tools. Testing capabilities will be packaged in the form of API and be provided to third parties including security white hats in the future.
  2. API building: CORE continuously converts vulnerabilities into testing methods and outputs APIs.
  3. Developer management: Eco-developers mint new NFT (i. e. test service) based on API; or they can report vulnerabilities based on their use of the API application.
  4. Vulnerability conversion: The vulnerability platform is a key component of CORE’s continuous capacity building.

Docs

Directory Description

Readme

Framework

Installation

Install the environment

docker pull aug1/core-dev:1.0.2

docker run -it --name core -p 8000:8000 --privileged=true --restart always -v HostCodeDirectory:/opt/project aug1/core-dev:1.0.2

redis 6.2.6 install

postgres install

configuration

django service configuration

path: backend/conf/conf.json

coreslither configuration

path: coreslither/coreslither/config.conf

corethril configuration

path: corethril/corethril/config.conf

coreSmartian configuration

path: coresmartian/coresmartian/config.conf

bsc/eth API Keys configuration

path: backend/api/tools/contract_helper.py

API service run

docker exec -it core bash

source /etc/profile

cd /opt/project

python backend/manage.py makemigrations

python backend/manage.py migrate

nohup python backend/manage.py runserver 0:8000 >/opt/project/core-log/api 2>&1 &

Detection service run

Python run
nohup python coreslither/coreslither/handler.py >/opt/project/core-log/slither 2>&1 &
nohup python corethril/corethril/handler.py >/opt/project/core-log/thril 2>&1 &
nohup python coresmartian/coresmartian/handler.py >/opt/project/core-log/smartian 2>&1 &
FaaS- run
...

How to use the API?

apifox link:  https://www.apifox.cn/apidoc/shared-979b9088-fd6a-4e65-8c96-c048c3edd188 password: x849iT7T

  1. Get user nonce [api-id 39966054]

  2. User auth [api-id 39972893]

  3. Upload the smart contract file

    1. Local file upload [api-id 39953744]
    2. Contract address upload [api-id 40058905]
  4. View test results [api-id 41147785]


Triathon official mailbox:triathonspace@gmail.com