https://github.com/root-tanishq/fuconv
uint and hex values converter for solidity CTFs
https://github.com/root-tanishq/fuconv
ethereum ethernaut python solidity
Last synced: 4 months ago
JSON representation
uint and hex values converter for solidity CTFs
- Host: GitHub
- URL: https://github.com/root-tanishq/fuconv
- Owner: root-tanishq
- Created: 2024-04-21T17:34:20.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-21T17:55:07.000Z (about 1 year ago)
- Last Synced: 2025-02-03T18:16:23.124Z (4 months ago)
- Topics: ethereum, ethernaut, python, solidity
- Language: Python
- Homepage: https://pypi.org/project/fuconv/
- Size: 2.93 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fuconv
- uint and hex values converter for solidity CTFs
- and yes this tool is name after that word only because of my frustration of creating a `sol` file for basic conversion during CTF
---
# Installation
- pip
```
pip3 install fuconv==0.0.2
```
- setup tools
```
git clone https://github.com/root-tanishq/fuconv
cd fuconv
sudo python3 setup.py install
```
---
# Usage
```
$ fuconv [-ui] [-uo] # ui / uo are optional params for some conversion's
```
- for conversion type use `--help`
```
❯ fuconv --help
😴 Fuccccccc²⁵⁶conv↴ @github.com/root-tanishqusage: fuconv [-h] {u160,u128,u64,u32,u16,u8,b16,b8,b4,wei,eth,hex,uint} ...
conversion script for solidity ctfs
options:
-h, --help show this help message and exitSubcommands:
{u160,u128,u64,u32,u16,u8,b16,b8,b4,wei,eth,hex,uint}
u160 convert a value to uint160
u128 convert a value to uint128
u64 convert a value to uint64
u32 convert a value to uint32
u16 convert a value to uint16
u8 convert a value to uint8
b16 convert a value to bytes16
b8 convert a value to bytes8
b4 convert a value to bytes4
wei convert ethers to wei
eth convert wei to ethers
hex convert a uint to bytes32 hex
uint convert a bytes hex value to uint
```