# Blockchain Threat Intelligence Sharing Platform(區塊鏈威脅情報共享平臺)
## 簡介
慢霧區塊鏈威脅情報共享平臺是一個模擬以太坊、EOS等節點客戶端 RPC 功能的工具,用于監測全球網絡中針對區塊鏈系統的攻擊。
## 使用方法
### 1\. 使用 Docker 運行
1.1 安裝 [Docker](https://www.docker.com/products/docker)
1.2 下載源代碼
~~~
$ git clone https://github.com/slowmist/blockchain-threat-intelligence.git --recursive
~~~
1.3 使用 Docker
~~~
$ cd blockchain-threat-intelligence
$ docker build --rm -t btisp-agent . //創建鏡像
$ docker run -p 8545:8545 --name="btisp-agent-instance" btisp-agent --bounty 0x1234567890123456789012345678901234567800 //創建容器,并指定接收慢霧幣激勵的以太坊錢包地址
$ docker start btisp-agent-instance //啟動容器
$ docker stop btisp-agent-instance //停止容器
$ docker rm btisp-agent-instance //刪除容器
~~~
### 2\. 源代碼編譯執行
2.1 安裝 [Golang](https://golang.org/)
2.2 下載源代碼
~~~
$ go get -u github.com/slowmist/blockchain-threat-intelligence
~~~
2.3 編譯運行
~~~
$ cd $GOPATH/src/github.com/slowmist/blockchain-threat-intelligence/src
$ mkdir ../bin ../pkg
$ go build -o ../bin/btisp-agent //編譯
$ ../bin/btisp-agent --bounty 0x1234567890123456789012345678901234567800 //啟動,并指定接收慢霧幣激勵的以太坊錢包地址
~~~
## 命令詳解
~~~
$ ./btisp-agent --help
?
USAGE:
? btisp-agent [global options] command [command options] [arguments...]
?
COMMANDS:
? ? help, h Shows a list of commands or help for one command
?
GLOBAL OPTIONS:
? --target value ? ? ? The ethereum host we used to proxy. (default: "https://mainnet.infura.io/LWLRS6nNpQR09kd6j1vE")
? --listen value ? ? ? Address and port to run proxy service on. Format address:port. (default: "0.0.0.0:8545")
? --https value ? ? ? Listen with TLS. (default: "0")
? --cert value ? ? ? ? Path to the x509 encoded SSL certificate in PEM format. (default: "etc/server.crt")
? --private-key value Path to the x509 encoded certificate in PEM format. (default: "etc/server.key")
? --bounty value ? ? ? Send bounty(SlowMist Zone Token) to this address. (default: "0x1234567890123456789012345678901234567800")
? --help, -h ? ? ? ? ? show help
? --version, -v ? ? ? print the version
~~~
## 測試
~~~
$ curl -H 'Content-Type: application/json' --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":999}' h
~~~
~~~
root@bogon blockchain-threat-intelligence]# docker logs -f 6cbc7b4b3bd6
2019/04/29 10:12:23 {"version":"0.1.1","bounty":"0x1234567890123456789012345678901234567800","time":1556532743}
btisp-agent version 0.1.1
Listening on: http://0.0.0.0:8545
2019/04/29 10:12:44 rewrite mode
2019/04/29 10:12:44 {"ip":"172.17.0.1:37958","body":"{\"jsonrpc\":\"2.0\",\"method\":\"eth_blockNumber\",\"params\":[],\"id\":999}","bounty":"0x1234567890123456789012345678901234567800","time":1556532764}
~~~
- Linux
- linux常用命令
- awk
- cp
- scp
- mv
- screen工具
- rsync
- Linux設置靜態IP
- vim常用
- ssh免密登錄
- linux掛載磁盤和開機自動掛載
- 文件的時間戳
- 重定向
- 防火墻
- Vultr 服務器利用快照更換IP
- ss
- node-yarn
- ES安裝向導
- lnmp/lamp
- windows安裝mysql
- windows安裝nginx
- Let'sEncrypt 免費通配符/泛域名SSL證書
- 開機自動掛載硬盤
- 普通用戶提權
- ELK日志分析系統
- Docker
- docker
- centos7安裝docker
- Centos7安裝redis
- CentOS 7 使用Docker搭建Nginx
- CentOS 7 使用Docker搭建Jenkins
- CentOS 7 使用Docker搭建Zookeeper
- CentOS 7 使用Docker搭建Tomcat
- CentOS 7 使用Docker搭建Mysql
- CentOS 7 使用Docker搭建PHP環境
- 使用docker搭建Swagger
- docker阿里云私有倉庫
- docker zookeeper集群
- docker部署ES
- docker之java容器運行外置springboot-jar
- docker部署owncloud云盤
- ETCD
- centos7部署etcd節點
- Dockerfile
- Docker-compose
- gitlab.yml
- db.yml
- 安裝docker-compose
- gitlab-docker-compose.yml
- nginx-docker-compose.yml
- Mysql
- mysql開啟遠程訪問及相關權限控制
- mysql授權
- mysql快速導出導入大數據
- mysql單機備份
- binlog日志
- shell
- 經典案例
- 俄羅斯方塊游戲
- 系統初始化
- 服務器監控
- go基礎環境
- shell.監控日志.elk
- shell.檢查各服務腳本
- shell.刪除文件腳本
- shell.守護進程
- shell.數據庫
- shell.Ansible
- shell.dev
- shell.ftp環境
- shell.docker環境
- shell.k8s環境
- k8s.二進制安裝
- K8s.一主多從
- k8s.三主兩從高可用
- k8s.檢查服務與配置
- k8s.jenkins
- k8s.gitlab
- go-install.sh
- jenkins-install.sh
- node-install.sh
- redis-install.sh
- zabbix-install.sh
- zabbix-dockerfile.sh
- nginx-install.sh
- shell變量
- 用戶自定義變量
- 環境變量
- shell特殊變量
- shell條件判斷
- 流程控制
- shell運算符
- Shell _printf
- shell_test
- shell函數
- 輸出重定向
- 網絡相關
- 安全相關
- 堡壘機部署
- 區塊鏈威脅情報共享平臺
- 簽名與驗簽
- 淺談區塊鏈
- 智能合約
- 黃金幣GTF智能合約
- 節點
- 以太坊公鏈私鏈geth同步
- 比特節點同步
- BTC節點錯誤解決方法
- eth硬分叉
- omni錢包節點搭建
- 架構
- K8s
- 搭建k8s集群完整篇
- 二進制部署k8s
- Devops
- git
- Jenkins
- svn
- 禪道
- CI/CD
- docker+jenkins+golang持續集成持續交付(CI/CD)
- 項目部署
- config.env
- docker-compose.yml
- Dockerfile模板
- .dockerignore
- run.sh
- nginx.conf模板
- 跨域
- jenkins配置
- 測試
- Python