[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78HBK2NNXJQFC9XPH0TQPWG":3,"skill-same:01M78HBK2NNXJQFC9XPH0TQPWG":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":13,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M78HBK2NNXJQFC9XPH0TQPWG","contracts-mev-sandwich",null,"MEV sandwich attacks — front-run + back-run a victim swap on Uniswap V2\u002FV3, Curve, Balancer; mempool monitoring via Flashbots \u002F private RPC, slippage tolerance exploitation, JIT liquidity sandwich, multi-block MEV.","dnzengou\u002Fevo-decepticon","dnzengou","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F7807581?v=4","01M75KKJA3F5ZP7CA10MB2AEXC","01M78GP0FED2V1CDPB1N6G0CTH",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fcontracts\u002Fmev-sandwich\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: contracts-mev-sandwich\ndescription: \"MEV sandwich attacks — front-run + back-run a victim swap on Uniswap V2\u002FV3, Curve, Balancer; mempool monitoring via Flashbots \u002F private RPC, slippage tolerance exploitation, JIT liquidity sandwich, multi-block MEV.\"\nallowed-tools: Bash Read Write\nmetadata:\n  when_to_use: \"mev sandwich front-run back-run uniswap v2 v3 curve balancer slippage flashbots private mempool jit liquidity searcher\"\n  subdomain: contracts\n  tags: defi, mev, front-running, dex\n  mitre_attack: T1565.002\n---\n\n# MEV Sandwich Attack\n\nYou observe a victim's DEX swap in the mempool. Sandwich it: buy the same token before the victim (pushing price up), let the victim swap at a worse price, then sell after them.\n\n## Detect a sandwichable swap\n\n```python\n# Stream pending transactions\nfrom web3 import Web3\nw3 = Web3(Web3.HTTPProvider(\"https:\u002F\u002Feth.merkle.io\"))\n# Or: subscribe to alchemy\u002Fblocknative streams\n\n# Filter for Uniswap V2 swapExactTokensForTokens or V3 exactInputSingle\n# Look at the swap amount + slippage tolerance (deadline + minAmountOut)\n# Sandwichable when: swap_amount * slippage > sandwich_gas_cost * 2\n```\n\nMath: profitable when victim's slippage tolerance exceeds your gas cost. Typical threshold for ETH\u002FUSDC swaps: victim swap >$10k with >1% slippage.\n\n## Construct the sandwich bundle\n\n```solidity\n\u002F\u002F Bundle: 3 tx in same block, in order\n\u002F\u002F 1. attacker_tx_1: swap baseToken -> token (push price UP)\n\u002F\u002F 2. victim_tx:     swap baseToken -> token (worse price now)\n\u002F\u002F 3. attacker_tx_2: swap token -> baseToken (sell back at higher price)\n```\n\n```javascript\n\u002F\u002F Flashbots bundle (Ethereum mainnet — others have similar private RPCs)\nconst ethers = require(\"ethers\");\nconst { FlashbotsBundleProvider } = require(\"@flashbots\u002Fethers-provider-bundle\");\n\nconst provider = new ethers.providers.JsonRpcProvider(process.env.RPC);\nconst wallet = new ethers.Wallet(process.env.PK, provider);\nconst fb = await FlashbotsBundleProvider.create(provider, wallet, \"https:\u002F\u002Frelay.flashbots.net\");\n\nconst blockNumber = await provider.getBlockNumber();\nconst bundle = [\n  { signer: wallet, transaction: attackerTx1 },  \u002F\u002F front-run\n  { signedTransaction: rawVictimTx },             \u002F\u002F victim from mempool\n  { signer: wallet, transaction: attackerTx2 },  \u002F\u002F back-run\n];\n\nconst signedBundle = await fb.signBundle(bundle);\nawait fb.sendRawBundle(signedBundle, blockNumber + 1);\n```\n\n## JIT (Just-In-Time) liquidity sandwich\n\nUniswap V3 concentrated liquidity lets you provide liquidity in a tight range for one block:\n\n```solidity\n\u002F\u002F 1. Just before victim's swap: mint a position concentrated at victim's price\n\u002F\u002F 2. Victim swaps — your liquidity earns 100% of the fee\n\u002F\u002F 3. Just after: burn the position\n\u002F\u002F No price-impact risk; pure fee capture.\n```\n\nWorks when victim's swap is large enough that the fee exceeds gas + capital cost.\n\n## Multi-block MEV\n\nCross-block sandwiches when validator is also the searcher (or in collusion):\n\n```\nBlock N:    attacker front-run TX\nBlock N+1:  victim's TX (separate user, expects same price)\nBlock N+2:  attacker back-run TX\n```\n\nRequires builder\u002Fsearcher cooperation. PBS (proposer-builder separation) on Ethereum makes this harder; still works on chains with single-block validators.\n\n## Defenses that break sandwiches (what to look for as \"harder targets\")\n\n- Victim uses private mempool (Flashbots Protect, MEV-Blocker, bloXroute Private Tx)\n- Victim contract has tight `minAmountOut` (low slippage like 0.1%)\n- DEX uses commit-reveal (rare)\n- Threshold encryption mempools (Shutter, etc.)\n\n## Common pitfalls (sandwich-of-sandwich = your sandwich gets sandwiched)\n\n- Don't broadcast your sandwich publicly — always use Flashbots \u002F private relay\n- Other searchers also see the victim — outbid them via gas price + priority fee\n- Don't sandwich your own user's swap from same Address — easy attribution\n\n## Tooling\n\n- `mev-inspect-py` (Flashbots) — historical sandwich detection (defender + reverse research)\n- `mev-share` — partial-order-flow ecosystem\n- `searcher-sage` — open-source sandwich bot patterns\n- `Eigenphi` — MEV analytics dashboard (for reconning known searcher patterns)\n\n## OPSEC \u002F ethics \u002F legal\n\n- Sandwich attacks are public mempool predation, generally legal but ethically grey. In bounty context: **only ever test on test networks or on a target you own.**\n- For research \u002F detection: use mev-inspect-py against historical blocks; no harm.\n- Some chains (e.g., Solana \u002F Jito) have different MEV architectures — adapt accordingly.\n\n## References\n\n- \"Flash Boys 2.0\" (Daian et al., 2019) — original MEV academic paper\n- Flashbots docs — docs.flashbots.net\n- \"MEV Wiki\" — github.com\u002Fflashbots\u002Fmev-research\n- EthCC \u002F Devcon talks: search \"MEV\" on YouTube\n","# MEV Sandwich Attack\n\nYou observe a victim's DEX swap in the mempool. Sandwich it: buy the same token before the victim (pushing price up), let the victim swap at a worse price, then sell after them.\n\n## Detect a sandwichable swap\n\n```python\n# Stream pending transactions\nfrom web3 import Web3\nw3 = Web3(Web3.HTTPProvider(\"https:\u002F\u002Feth.merkle.io\"))\n# Or: subscribe to alchemy\u002Fblocknative streams\n\n# Filter for Uniswap V2 swapExactTokensForTokens or V3 exactInputSingle\n# Look at the swap amount + slippage tolerance (deadline + minAmountOut)\n# Sandwichable when: swap_amount * slippage > sandwich_gas_cost * 2\n```\n\nMath: profitable when victim's slippage tolerance exceeds your gas cost. Typical threshold for ETH\u002FUSDC swaps: victim swap >$10k with >1% slippage.\n\n## Construct the sandwich bundle\n\n```solidity\n\u002F\u002F Bundle: 3 tx in same block, in order\n\u002F\u002F 1. attacker_tx_1: swap baseToken -> token (push price UP)\n\u002F\u002F 2. victim_tx:     swap baseToken -> token (worse price now)\n\u002F\u002F 3. attacker_tx_2: swap token -> baseToken (sell back at higher price)\n```\n\n```javascript\n\u002F\u002F Flashbots bundle (Ethereum mainnet — others have similar private RPCs)\nconst ethers = require(\"ethers\");\nconst { FlashbotsBundleProvider } = require(\"@flashbots\u002Fethers-provider-bundle\");\n\nconst provider = new ethers.providers.JsonRpcProvider(process.env.RPC);\nconst wallet = new ethers.Wallet(process.env.PK, provider);\nconst fb = await FlashbotsBundleProvider.create(provider, wallet, \"https:\u002F\u002Frelay.flashbots.net\");\n\nconst blockNumber = await provider.getBlockNumber();\nconst bundle = [\n  { signer: wallet, transaction: attackerTx1 },  \u002F\u002F front-run\n  { signedTransaction: rawVictimTx },             \u002F\u002F victim from mempool\n  { signer: wallet, transaction: attackerTx2 },  \u002F\u002F back-run\n];\n\nconst signedBundle = await fb.signBundle(bundle);\nawait fb.sendRawBundle(signedBundle, blockNumber + 1);\n```\n\n## JIT (Just-In-Time) liquidity sandwich\n\nUniswap V3 concentrated liquidity lets you provide liquidity in a tight range for one block:\n\n```solidity\n\u002F\u002F 1. Just before victim's swap: mint a position concentrated at victim's price\n\u002F\u002F 2. Victim swaps — your liquidity earns 100% of the fee\n\u002F\u002F 3. Just after: burn the position\n\u002F\u002F No price-impact risk; pure fee capture.\n```\n\nWorks when victim's swap is large enough that the fee exceeds gas + capital cost.\n\n## Multi-block MEV\n\nCross-block sandwiches when validator is also the searcher (or in collusion):\n\n```\nBlock N:    attacker front-run TX\nBlock N+1:  victim's TX (separate user, expects same price)\nBlock N+2:  attacker back-run TX\n```\n\nRequires builder\u002Fsearcher cooperation. PBS (proposer-builder separation) on Ethereum makes this harder; still works on chains with single-block validators.\n\n## Defenses that break sandwiches (what to look for as \"harder targets\")\n\n- Victim uses private mempool (Flashbots Protect, MEV-Blocker, bloXroute Private Tx)\n- Victim contract has tight `minAmountOut` (low slippage like 0.1%)\n- DEX uses commit-reveal (rare)\n- Threshold encryption mempools (Shutter, etc.)\n\n## Common pitfalls (sandwich-of-sandwich = your sandwich gets sandwiched)\n\n- Don't broadcast your sandwich publicly — always use Flashbots \u002F private relay\n- Other searchers also see the victim — outbid them via gas price + priority fee\n- Don't sandwich your own user's swap from same Address — easy attribution\n\n## Tooling\n\n- `mev-inspect-py` (Flashbots) — historical sandwich detection (defender + reverse research)\n- `mev-share` — partial-order-flow ecosystem\n- `searcher-sage` — open-source sandwich bot patterns\n- `Eigenphi` — MEV analytics dashboard (for reconning known searcher patterns)\n\n## OPSEC \u002F ethics \u002F legal\n\n- Sandwich attacks are public mempool predation, generally legal but ethically grey. In bounty context: **only ever test on test networks or on a target you own.**\n- For research \u002F detection: use mev-inspect-py against historical blocks; no harm.\n- Some chains (e.g., Solana \u002F Jito) have different MEV architectures — adapt accordingly.\n\n## References\n\n- \"Flash Boys 2.0\" (Daian et al., 2019) — original MEV academic paper\n- Flashbots docs — docs.flashbots.net\n- \"MEV Wiki\" — github.com\u002Fflashbots\u002Fmev-research\n- EthCC \u002F Devcon talks: search \"MEV\" on YouTube\n",{"name":5,"metadata":23,"description":7,"allowed-tools":28},{"tags":24,"subdomain":25,"when_to_use":26,"mitre_attack":27},"defi, mev, front-running, dex","contracts","mev sandwich front-run back-run uniswap v2 v3 curve balancer slippage flashbots private mempool jit liquidity searcher","T1565.002","Bash Read Write","main","376de63e2b186eeb9856476ae89186e62b1d3fbe","packages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fcontracts\u002Fmev-sandwich","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon","https:\u002F\u002Fgithub.com\u002Fdnzengou","2026-11-09 16:34:40",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add dnzengou\u002Fevo-decepticon --skill contracts-mev-sandwich",{"tool":41,"command":42},"bunx","bunx skills add dnzengou\u002Fevo-decepticon --skill contracts-mev-sandwich",{"tool":44,"command":45},"pnpm","pnpm dlx skills add dnzengou\u002Fevo-decepticon --skill contracts-mev-sandwich","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fcontracts\u002Fmev-sandwich\u002FSKILL.md",true,[],[50,57,64,71,78,85],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":18},"01M78JAX15GZR5Q5S7RMPWFX43","wps-pixie-dust","WPS Pixie-Dust offline nonce attack (reaver -K \u002F pixiewps) and fallback online PIN brute (bully) to recover the AP's WPA PSK without capturing a handshake.","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwps-pixie-dust\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":18},"01M78JARXE0ZER8P81SFD024YP","wpa3-sae","WPA3-SAE transition-mode downgrade (DragonShift), SSID Confusion CVE-2023-52424, Dragonblood side-channels, and SAE captive-portal credential recovery against WPA3-Personal networks.","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa3-sae\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M78JANJNH8VMR0CK1Y6AM74G","wpa2-psk","WPA\u002FWPA2-PSK handshake capture via targeted deauth + PMKID (no deauth required) + offline hashcat cracking. The most common consumer\u002FSMB encryption mode in 2026.","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa2-psk\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M78JAFCYR2BAJF7KH0ZCXREA","wpa-enterprise-eap","WPA\u002FWPA2\u002FWPA3-Enterprise (802.1X\u002FEAP) rogue-RADIUS evil-twin for MSCHAPv2 capture, GTC downgrade, and PEAP relay. MSCHAPv2 capture equals a NetNTLM hash — the primary wireless on-ramp to Active Directory.","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa-enterprise-eap\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M78JAAQ5T08FR9MY5SFNRWBM","krack-fragattacks","KRACK key-reinstallation (CVE-2017-13077..13082) and FragAttacks fragmentation\u002Faggregation flaws (CVE-2020-24586..24588, CVE-2020-26139..26147) against legacy or embedded 802.11 supplicants with poor patch cadence.","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fkrack-fragattacks\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M78JA6799JQZE0M9B21HRMGY","evil-twin-karma","Evil-twin rogue AP with KARMA\u002FMana PNL-probe response, captive-portal credential capture, and post-association MITM for PSK\u002Fopen networks. Distinct from wpa-enterprise-eap which targets 802.1X.","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fevil-twin-karma\u002FSKILL.md",[],[]]