Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Go Ethereum | 42,474 | 431 | 1,920 | 16 hours ago | 655 | September 15, 2022 | 318 | lgpl-3.0 | Go | |
Official Go implementation of the Ethereum protocol | ||||||||||
Solidity | 20,281 | 15 hours ago | 430 | gpl-3.0 | C++ | |||||
Solidity, the Smart Contract Programming Language | ||||||||||
Ethereumbook | 17,803 | a month ago | 95 | other | JavaScript | |||||
Mastering Ethereum, by Andreas M. Antonopoulos, Gavin Wood | ||||||||||
Truffle | 13,933 | 2,442 | 1,321 | 14 hours ago | 466 | September 22, 2022 | 529 | mit | TypeScript | |
A tool for developing smart contracts. Crafted with the finest cacaos. | ||||||||||
Full Blockchain Solidity Course Py | 9,725 | 2 months ago | 212 | mit | ||||||
Ultimate Solidity, Blockchain, and Smart Contract - Beginner to Expert Full Course | Python Edition | ||||||||||
Full Blockchain Solidity Course Js | 8,660 | a month ago | 45 | |||||||
Learn Blockchain, Solidity, and Full Stack Web3 Development with Javascript | ||||||||||
Defi Developer Road Map | 8,598 | 12 days ago | 1 | other | JavaScript | |||||
DeFi Developer roadmap is a curated Developer handbook which includes a list of the best tools for DApps development, resources and references! | ||||||||||
Wtf Solidity | 7,356 | 2 days ago | 6 | other | Solidity | |||||
我最近在重新学solidity,巩固一下细节,也写一个“WTF Solidity极简入门”,供小白们使用,每周更新1-3讲。官网: https://wtf.academy | ||||||||||
Mist | 7,271 | 3 years ago | 16 | January 25, 2018 | 788 | gpl-3.0 | JavaScript | |||
[DEPRECATED] Mist. Browse and use Ðapps on the Ethereum network. | ||||||||||
Ethers.js | 6,741 | 2,680 | 4,824 | 3 days ago | 258 | September 16, 2022 | 387 | mit | TypeScript | |
Complete Ethereum library and wallet implementation in JavaScript. |
BlockchainC2 is a small POC server/agent to assess how the Blockchain (specifically Ethereum's Smart Contract functionality) can be used by an attacker for C2.
Details regarding this application can be found here.
The Smart Contract used within this POC is quite simple:
pragma solidity ^0.5.0;
contract EventC2 {
address owner;
event _ServerData(bool f, bool enc, int seq, string agentID, string data);
event _ClientData(bool f, bool enc, int seq, string agentID, string data);
constructor() public {
owner = msg.sender;
}
function AddClientData(string memory agentID, string memory d, int id, bool f, bool enc) public {
emit _ClientData(f, enc, id, agentID, d);
}
function AddServerData(string memory agentID, string memory d, int id, bool f, bool enc) public {
emit _ServerData(f, enc, id, agentID, d);
}
}
The focus of this Solidity code is to pass events between a server and multiple clients in the form of events.
BlockchainC2 was designed to be run on MacOS/Linux, but the agent can be compiled to execute on MacOS, Windows, or Linux.
To build on MacOS using brew:
# Install solidity and ethereum
brew tap ethereum/ethereum
brew install ethereum
brew install solidity
# Build
make all
To build on Ubuntu:
# Install solidity and ethereum
sudo add-apt-repository ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install solc ethereum
# Build
make all
To cross-compile an agent for Windows:
CGO_ENABLED=1 CC="x86_64-w64-mingw32-gcc" GOOS=windows go build blockchainc2/cmd/bc2agent
You will need to setup an account which can be used by the server component. The easiest way to do this is with geth
:
geth account new --keystore /tmp/mykeystore/
cat /tmp/mykeystore/*
Ether can be added to your wallet on the Ropsten testnet using https://faucet.ropsten.be/.
Add the keychain to your config.json, for example:
{
"Key": "{\"address\":\"ADDRESS\",\"crypto\":{\"cipher\":\"aes-128-ctr\",\"ciphertext\":\"CT\",\"cipherparams\":{\"iv\":\"IV\"},\"kdf\":\"scrypt\",\"kdfparams\":{\"dklen\":32,\"n\":262144,\"p\":1,\"r\":8,\"salt\":\"06470fcc2121994e014f85e5ab9cdb3714c76b873a1f1186c3e623e87abc4a7a\"},\"mac\":\"SALT\"},\"id\":\"ID\",\"version\":3}",
"Endpoint": "wss://ropsten.infura.io/_ws",
"ContractAddress": "TODO_VIA_SETUP",
"GasPrice": 0
}
To deploy a contract using bc2server
:
./bin/bc2server -config ./config.json -pass Passw0rd -setup
Once the contract has been deployed, add the address to your config.json and start the server with:
./bin/bc2server -config ./config.json -pass Passw0rd
With the server running, agents can be attached using:
./bin/bc2agent -config ./agent_config.json -pass Passw0rd
It is recommended that a fresh account is used for an agent to avoid errors with pending transactions.