Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sbellem committed Feb 13, 2024
1 parent 47a67e5 commit ec9f6d6
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions hacking/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ git submodule update --init --recursive --remote
```

### Requirements
Docker Engine: https://docs.docker.com/engine/install/
Docker compose
* Docker Engine: https://docs.docker.com/engine/install/
* Docker compose: https://docs.docker.com/compose/

### Setup Environment

Expand All @@ -32,7 +32,7 @@ The victim account has a balance of 12343. Two attacker accounts have balance of

4) Shut down node-1 to launch the attack in simulation mode without broadcasting any transactions to the network.

### Launch MEV Attack
## Launch MEV Sandwich Attack

```shell
make sandwich-attack
Expand All @@ -56,7 +56,7 @@ The above command simulates an adversary executing the following steps:
![](./sandwich-attack.gif)


#### Transfer amount privacy attack
## Transfer Amount Privacy Attack
Getting transfer amount. This script generates a victim transaction sending 10 of a SNIP-20 token to another account. It figures out the transfer amount prints it.

```shell
Expand All @@ -79,7 +79,7 @@ The above command simulates an adversary executing the following steps:
![](./transfer-privacy-attack.gif)


#### Account balance privacy attack
## Account Balance Privacy Attack
Getting the account balance. The script prints out the victim's balance of 12343.

```shell
Expand All @@ -96,10 +96,14 @@ The above command simulates an adversary executing the following steps:

3) The victim's balance is the `2**128-1-guess`

### Cleanup
## Cleanup
```shell
make stop
```

## Help
```shell
docker compose down --volumes
make
```


Expand Down

0 comments on commit ec9f6d6

Please sign in to comment.