KS note – Telegram
KS note
495 subscribers
61 photos
2 files
71 links
・ Web3 & etc.

🥷⛓️🍷 @MostPow3rful
Download Telegram
🍾2
KS note
🥷 You learn more by doing
👾 CTF/Challenge(s)

1️⃣ HTB
2️⃣ damnvulnerabledefi
3️⃣ ethernaut
4️⃣ onlypwner
5️⃣ Web3PWN
🔥1
Forwarded from Remedy
Calling all Web3 Security firms

Let us join forces and together fortify our blockchain ecosystems!

We're excited to offer Glider Ethereum mainnet access to all our Web3 cybersecurity comrades. Time to level up our defense game!

Start finding bugs at scale now👉🏼 https://exty84bdiei.typeform.com/gliderpartners
🔥2
KS note
💎 Ethereum API Documentation 🔗 https://ethereum.github.io/execution-apis/api-documentation/ 🔗 https://github.com/ethereum/execution-apis 🔗 https://ethereum.org/en/developers/docs/apis/json-rpc/
const axios = require('axios');

async function MakeCall(_method, _jsonRPCUrl) {
try {
const response = await axios.post(_jsonRPCUrl, {
jsonrpc: '2.0',
method: _method,
params: [],
id: 1,
});

console.log(`[Result] ${response.data.result}`);

} catch (error) {
console.error(`[Error] ${error.message}`);
}
}

MakeCall("eth_blockNumber", "http://localhost:8545");
4👌1
🤓 Do not memorize commands. Understand them
💻 foundry — [cast call]
VS [cast send]


1️⃣ cast call
to call a view/pure function ( non state changing function )
・ required arguments :
RPC URL
Contract Address
Function Name


2️⃣ cast send

to call a non view/pure function ( a state changing function )
・ required arguments :
RPC URL
Contract Address
Function Name
Private Key


👀 where is RPC URL ?
default value for RPC URL is http://127.0.0.1:8545 —> Anvil

👀 why your Private key is plain text ?
it belongs to anvil. so, not important


🔗https://book.getfoundry.sh/cast/
👌51
🥷 Becoming a Security Researcher - Live on X

🔗 https://x.com/HatsFinance/status/1806284016254902592
5