-
-
Save morrigan/7d4430dc0ee6fd08e568e2bad9eb523b to your computer and use it in GitHub Desktop.
Vulnerability monitor example
This file contains 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.24; | |
contract DosOneFunc { | |
address[] listAddresses; | |
function ifillArray() public returns (bool){ | |
if(listAddresses.length<1500) { | |
for(uint i=0;i<350;i++) { | |
listAddresses.push(msg.sender); | |
} | |
return true; | |
} else { | |
listAddresses = new address[](0); | |
return false; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment