剑庭安
首页
黑客安全首页全部安全栏目 黑客技术黑客技术、渗透测试、漏洞利用工具与教程 安全软件安全工具、扫描器、检测与审计软件 病毒分析恶意软件分析、样本、逆向与沙箱 CTF思路CTF 题目、writeup、解题思路与工具 防护思路防御技术、加固、检测响应与蓝队 红蓝攻防红队攻击模拟、蓝队对抗、攻防演练 漏洞知识库漏洞、CVE、PoC、EXP 与安全研究
逆向|反编译
PHP源码PHP 网站源码、程序、系统 APP源码安卓/iOS APP 源码 ASP源码ASP 网站源码与程序 NET源码.NET 网站源码与系统 小程序源码微信/支付宝小程序源码 Dedecms风格模板Dedecms 织梦风格模板 Empirecms风格模板EmpireCMS 帝国风格模板 Discuz商业模板/插件Discuz 商业模板与插件 WordPress主题/插件WordPress 主题与插件 其它源码、模板其它各类源码与模板 游戏源码游戏源码与引擎项目 加密货币源码加密货币、区块链、钱包、USDT/比特币相关源码与工具 手游源码手机游戏源码、服务端、客户端与引擎项目 传奇源码热血传奇、传奇世界、复古传奇等客户端/服务端/引擎源码 页游源码网页游戏、H5 游戏、浏览器游戏源码 端游源码电脑单机游戏、PC 网游客户端/服务端源码
最新万能免驱动支持所有型号打印机下载程序 日历天气老黄历 · 每天同步真实日期与天气
站长工具站长工具 自助开通会员浏览该分类 其他资源qtziy SEO工具SEO工具 站群源码站群源码 泛程序泛程序 蜘蛛模板蜘蛛模板 蜘蛛池蜘蛛池 外链工具外链工具
搜索 自助开通会员🔓 破甲 API
登录 注册
首页 分类列表 加密货币源码 erc20-token-scam - ERC20 授权盗…
erc20-token-scam - ERC20 授权盗币钓鱼演示( JavaScript ) 加密货币源码 点击放大
作者:admin 发布:2026-10-05

erc20-token-scam - ERC20 授权盗币钓鱼演示( JavaScript )

项目说明erc20-token-scamA phishing website to demonstrate how a hacker can steal your ERC-20 tokens with the approve and transferFrom functions, and the r…
资源可下载 免费下载 0 条讨论
会员资源
开通会员后即可下载全部资源。
登录后开通会员
会员方案
309浏览量
0讨论
2下载链接
可下载资源状态
内容可验证
更新 2026-10-05
人工审核发布
评论区答疑

erc20-token-scam - ERC20 授权盗币钓鱼演示(Ja)

erc20-token-scam - ERC20 授权盗币钓鱼演示(Ja)

erc20-token-scam - ERC20 授权盗币钓鱼演示(Ja)

项目说明

erc20-token-scam


A phishing website to demonstrate how a hacker can steal your ERC-20 tokens with the approve and transferFrom functions, and the risk of confirming token transfer appro checking transaction details carefully. This website is just for educational purposes only.


  • Solidity: 0.8.4

  • MetaMask: 10.1.1

  • hardhat: 2.6.1

  • ethers: 5.4.5

  • Node.js: 16.9.1

  • /contracts: 4.3.2
  • ERC-20 Token


    ##### Installation
    Install Node.js.

    Install the required Node.js packages in this project including hardhat, ethers and /contracts.

    ##### Configuration
    By default, Hardhat will create 20 accounts and preload each with 10000 ETH on your local blockchain 网络. If you want to connect to other Ethereum networks, you will need to update the Hardhat configuration file hardhat.config.js. The artifacts output path is set to ./dapp/src/artifacts since the DApp needs to use the ABI in the artifacts.

    ##### Deployment
    1. Run Hardhat Network.

    2. Compile the smart contracts.

    3. Deploy the smart contracts.

    ##### MetaMask
    1. Install MetaMask extension in Chrome.

    2. After running npx hardhat node, a list of accounts will be shown on the terminal. Import Account #0 and Account #1 to your MetaMask 钱包.

    DApp


    ##### Installation
    Change current directory to dapp and install the required Node.js packages in this DApp including React and ethers.

    ##### Configuration
    In dapp directory, create a .env file containing the address of the deployed Token smart contract and the Account #1 address as the hacker account. Since this DApp is created from create-react-app, the en should start with REACT_APP_.

    ##### Get Started
    In dapp directory, run the application.

    1. Open Chrome and go to . Click Play Now.
    <br/>
    !Initialization

    2. Connect MetaMask to Localhost 8545 and select the account. Click Retry on our phishing website.
    <br/>
    !Connect to Localhost 8545
    <br/>
    !Retry

    3. Buy a ticket. Confirm the transaction and wait until the transaction is confirmed.
    <br/>
    !Buy ticket
    <br/>
    !Confirm transfer approval

    4. Now the hacker is authorized to spend TOX from the account. Go to . We can see 's TOX balance is still 0 and hacker is 0.
    <br/>
    !Balance before hacking

    5. Let's steal the 's TOX! Switch to the hacker account in the MetaMask 钱包. Click Get TOX and confirm the transaction.
    <br/>
    !Hacker account
    <br/>
    !Confirm transfer

    6. Reload . 's TOX balance now becomes 1 and hacker is !
    <br/>
    !Balance after hacking

    Phishing Attack Pre


    Check the full transaction details carefully before confirming any transactions. In this phishing website, the ticket fee is intentionally set to a price same as the estimated transaction fee so as to mislead the users. In fact, the transaction fee is just a service charge you should pay along with the ticket fee. From the example above, if we expand the transaction details, we can see the amount that the hacker is allowed to spend is 9.9999999999e-8 TOX (). It is extremely dangerous to authorize any accounts to spend your tokens without checking the amount in Permission.
    <br/>
    !Transaction details

    Account Cleanup


    If you want to clean up your accounts and play again, you may need to remove the cache and artifacts using the following command. Then restart Hardhat 网络, recompile and redeploy the Token smart contract.

    To reset the nonce for an account in the MetaMask 钱包, na to Settings, go into Ad and click Reset Account.
    <br/>
    !Settings
    <br/>
    !Ad
    <br/>
    !Reset account

    技术栈

    开发语言:Ja

    项目类型:ERC20 授权盗币钓鱼演示(Ja)

    Star 数:45

    功能特点

    这是一套ERC20 授权盗币钓鱼演示(Ja),代码结构清晰,适合安全研究人员学习加密货币钱包安全、剪贴板劫持、私钥碰撞等攻击面的原理与实现。项目涵盖了地址生成、私钥管理、链上交互、剪贴板监控等核心模块,对理解区块链资产安全机制具有较高的研究价值。

    从技术实现角度看,此类项目的技术点在于:私钥熵源与生成算法、链上余额查询接口、剪贴板监听与地址替换逻辑、以及多链钱包地址的编码差异。本项目在这些方面提供了可运行的实现,研究者可以在此基础上进行安全分析或防御研究。

    使用说明

    1. 下载源码压缩包,解压到本地环境。

    2. 根据项目类型准备对应的运行环境(Python / Node.js / Go / C# 等)。

    3. 按照 README 中的步骤安装依赖、配置环境变量。

    4. 运行脚本或编译程序,观察输出结果。

    注意:本项目仅供安全研究与学习使用,请勿用于任何非法用途。

    研究价值

    对于从事区块链安全、渗透测试或恶意样本分析的研究者来说,这套源码是一个很好的研究对象。通过阅读代码,可以学习到加密货币钱包的攻击面、剪贴板劫持的检测方法、私钥碰撞的概率原理、以及链上资产的追踪技术等关键知识点。

    同时,项目中的代码组织和模块划分,也展示了安全工具在工程化方面的实践经验。理解这些攻击工具的实现原理,对后续开发防御检测工具、建立资产风控模型也很有帮助。

    免责声明

    本资源来源于开源社区,仅供安全研究、技术学习与攻防演练使用,请勿用于任何非法或侵害他人权益的用途。使用本项目产生的一切后果由使用者自行承担。若涉及第三方权益,请联系删除。

    资源标题erc20-token-scam - ERC20 授权盗币钓鱼演示( JavaScript )
    所属分类加密货币源码
    发布作者admin
    发布时间2026-10-05 18:55:34
    下载权限 免费下载
    附件数量2 个下载链接
    浏览次数309
    讨论数量0
    主题状态正常讨论中

    本资源免费,登录后即可在本页「下载链接」区域获取全部附件。

    请在评论区留言说明具体链接,或联系作者补档。楼主更新后本页会同步最新的下载地址。

    请先阅读正文中的授权说明;未注明的默认仅限站内学习交流,禁止直接搬运到其他站点二次售卖。
    还没有讨论,快来抢沙发~
    登录 后才能参与讨论
    下载链接
    会员才能下载
    登录后开通会员
    同分类推荐
    暂无同类资源
    免费登录即可下载
    查看会员
    放大预览

    © 2026 剑庭安 - 网站开发定制 SEO 优化蜘蛛池代做 在线看手相算命. 保留所有权利。

    Powered by 酷像SEOv3.0

    网站地图 Sitemap.xml
    首页 全部分类 黑客安全 逆向|反编译 精品源码 站长工具自助开通会员其他资源SEO工具站群源码泛程序蜘蛛模板蜘蛛池外链工具创意乐园 搜索 会员服务 登录 注册