26 lines
548 B
Markdown
26 lines
548 B
Markdown
# Intro
|
|
Solana CTF Solve
|
|
|
|
## Prerequisites
|
|
sudo apt -y install pkg-config build-essential
|
|
|
|
## Installing solana
|
|
sh -c "$(curl -sSfL https://release.solana.com/v1.10.5/install)"
|
|
|
|
## Build the CTF
|
|
cd ctf && cargo build-bpf
|
|
|
|
## Check project dependencies
|
|
cd solution && cargo check && cd ..
|
|
|
|
## Solana binary
|
|
mkdir -p solution/target/deploy/ && cp ctf/target/deploy/ctf_solana.farm.so solution/target/deploy/ctf_solana_farm.so
|
|
|
|
## Executing poc
|
|
cd ctf && cargo run --bin main
|
|
|
|
## Environment
|
|
Rustc 1.59.0
|
|
Solana 1.10.5
|
|
Vscode Extension: rust-analyzer
|