
OnChain Transaction Debugging - Lesson 2: Warm up
Author: Sun Translation: Helen Community Discord This article is published on XREX and WTF Academy On-chain data can include simple one-time transfers, interactions with one DeFi contract or multiple DeFi contracts, flash loan arbitrage, governance proposals, cross-chain transactions, and more. In this section, let’s begin with a simple start. I will introduce on BlockChain Explorer - Etherscan what we are interested in, and then use Phalcon to compare the differences between these transactio...

OnChain Transaction Debugging - Lesson 2: Warm up
Author: Sun Translation: Helen Community Discord This article is published on XREX and WTF Academy On-chain data can include simple one-time transfers, interactions with one DeFi contract or multiple DeFi contracts, flash loan arbitrage, governance proposals, cross-chain transactions, and more. In this section, let’s begin with a simple start. I will introduce on BlockChain Explorer - Etherscan what we are interested in, and then use Phalcon to compare the differences between these transactio...

OnChain Transaction Debugging - Lesson 2: 熱身篇
Author: Sun 社群 Discord 同步發表: XREX | WTF Academy 鏈上交易數據包含從簡單的單筆交易轉帳、1 個 DeFi 合約交互、多個 DeFi 合約交互、閃電貸套利、治理提案、跨鏈交易等等,這一節我們先來熱身一下,先從簡單的開始。我將介紹通常使用區塊鏈瀏覽器 Etherscan 哪些訊息是我們所在意的,再來我們會使用交易分析工具 Phalcon 看一下這些交易從簡單的轉帳、UniSWAP上 Swap、Curve 3pool 增加流動性、Compound 治理提案、閃電貸的調用差異。開始進入熱身篇首先環境上需要先安裝 Foundry,安裝方法請參考 instructions.測試主要會用到 Forge test,如果第一次使用 Foundry,可以參考 Foundry book、Foundry @EthCC、WTF Solidity - Foundry每條鏈上都有專屬的區塊鏈瀏覽器,這節我們都會使用 Ethereum 主網來當案例所以可以透過 Etherscan 來分析.通常我會特別想看的欄位包含:Transaction Action: 因為複雜的...

OnChain Transaction Debugging - Lesson 2: 熱身篇
Author: Sun 社群 Discord 同步發表: XREX | WTF Academy 鏈上交易數據包含從簡單的單筆交易轉帳、1 個 DeFi 合約交互、多個 DeFi 合約交互、閃電貸套利、治理提案、跨鏈交易等等,這一節我們先來熱身一下,先從簡單的開始。我將介紹通常使用區塊鏈瀏覽器 Etherscan 哪些訊息是我們所在意的,再來我們會使用交易分析工具 Phalcon 看一下這些交易從簡單的轉帳、UniSWAP上 Swap、Curve 3pool 增加流動性、Compound 治理提案、閃電貸的調用差異。開始進入熱身篇首先環境上需要先安裝 Foundry,安裝方法請參考 instructions.測試主要會用到 Forge test,如果第一次使用 Foundry,可以參考 Foundry book、Foundry @EthCC、WTF Solidity - Foundry每條鏈上都有專屬的區塊鏈瀏覽器,這節我們都會使用 Ethereum 主網來當案例所以可以透過 Etherscan 來分析.通常我會特別想看的欄位包含:Transaction Action: 因為複雜的...

OnChain Transaction Debugging - Lesson 1: 工具篇
Author: Sun 社群 Discord 同步發表: XREX | WTF Academy 當初我在學習鏈上交易分析時,很少相關教學文章,只能自己慢慢地收集資料從中挖掘如何分析到測試。 我們將推出一系列 Web3 安全的教學文章, 幫助更多人加入 Web3 安全,共創安全網路。 第一個系列我們將介紹如何進行鏈上分析到撰寫攻擊重現。此技能將能幫助你分析攻擊過程和漏洞原因甚至套利機器人如何套利!工欲善其事,必先利其器在進入分析之前,我先介紹一些常用工具,正確的工具可以幫助你做研究時更有效率。Transaction debugging toolsPhalcon | Tx.viewer | Cruise | Ethtx | Tenderly Transaction Viewer 這類工具是最常用的,可以幫助我們針對想要分析的交易 Transaction,以可視化列出函數呼叫的流程以及每個函式帶入了什麼的參數等。 每個工具大同小異,只差異在鏈的支援度不同和輔助功能,我個人是比較常用 Phalcon 和 Sam 的 Transaction Viewer,如果遇到不支援的鏈則會使用 Ten...

OnChain Transaction Debugging - Lesson 1: 工具篇
Author: Sun 社群 Discord 同步發表: XREX | WTF Academy 當初我在學習鏈上交易分析時,很少相關教學文章,只能自己慢慢地收集資料從中挖掘如何分析到測試。 我們將推出一系列 Web3 安全的教學文章, 幫助更多人加入 Web3 安全,共創安全網路。 第一個系列我們將介紹如何進行鏈上分析到撰寫攻擊重現。此技能將能幫助你分析攻擊過程和漏洞原因甚至套利機器人如何套利!工欲善其事,必先利其器在進入分析之前,我先介紹一些常用工具,正確的工具可以幫助你做研究時更有效率。Transaction debugging toolsPhalcon | Tx.viewer | Cruise | Ethtx | Tenderly Transaction Viewer 這類工具是最常用的,可以幫助我們針對想要分析的交易 Transaction,以可視化列出函數呼叫的流程以及每個函式帶入了什麼的參數等。 每個工具大同小異,只差異在鏈的支援度不同和輔助功能,我個人是比較常用 Phalcon 和 Sam 的 Transaction Viewer,如果遇到不支援的鏈則會使用 Ten...

OnChain transaction debugging - Lesson 1: Tools
Author: Sun Community Discord This article is published on XREX and WTF Academy Online resources were scarce when I started learning on-chain transaction analysis. Although slowly, l was able to piece together bits and pieces of information to perform tests and analysis. From my studies, we will launch a series of Web3 security articles to entice more people to join Web3 security and create a secure network together. In the first series, we will introduce how to conduct an on-chain analysis, ...

OnChain transaction debugging - Lesson 1: Tools
Author: Sun Community Discord This article is published on XREX and WTF Academy Online resources were scarce when I started learning on-chain transaction analysis. Although slowly, l was able to piece together bits and pieces of information to perform tests and analysis. From my studies, we will launch a series of Web3 security articles to entice more people to join Web3 security and create a secure network together. In the first series, we will introduce how to conduct an on-chain analysis, ...