SSU CTF 2025 - meme, check the target

Gunter·2025년 2월 21일
0

CTF

목록 보기
7/8

SSU CTF 2025

 

meme

MetaMask Developer에서 API key 하나 생성하고

const { ethers } = require("ethers");

async function scanSlots(provider, contractAddress, startSlot, endSlot) {
    for (let i = startSlot; i <= endSlot; i++) {
        const slotValue = await provider.getStorageAt(contractAddress, i);
        console.log(`Slot ${i}: ${slotValue}`);
    }
}

async function main() {
    const provider = new ethers.providers.JsonRpcProvider("https://sepolia.infura.io/v3/dd96abf2cf5c4458a9988bb4d7e17bda");
    const contractAddress = "0xc48bdba1481c391cf67249818d2e972f737976d8";

    console.log("Scanning slots ");
    await scanSlots(provider, contractAddress, 0, 10); 
}

main().catch(console.error);

 


 

check the target

from PIL import Image
import base64
import io


img = Image.new('L', (28, 28), color=255)  


buffer = io.BytesIO()
img.save(buffer, format="PNG")
base64_data = base64.b64encode(buffer.getvalue()).decode()

print(base64_data)


0개의 댓글