instruction stringclasses 1
value | input stringlengths 86 4.29k | output stringclasses 14
values |
|---|---|---|
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.25;
contract dbCoin {
string public name = "dbCoin";
string public symbol = "dbc";
uint8 public decimals = 0;
uint256 public totalSupply = 1000000;
mapping (address => uint256) public balanceOf;
mapping (address => mapping (address => uint256)) public allowance;
... | SWC-101 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.13;
contract CryptoPeopleName {
address owner;
mapping(address => string) private nameOfAddress;
function CryptoPeopleName() public{
owner = msg.sender;
}
function setName(string name) public {
nameOfAddress[msg.sender] = name;
}
... | SWC-101 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.25;
contract Voting{
address owner;
mapping (uint256=>uint256) totalVoting;
event ChangeOwner(address owner);
event Voting(uint256 videoNum, uint256 totalVoting);
constructor() public{
owner = msg.sender;
}
modifier onlyOwner(){
... | SWC-101 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.25;
contract Quiz_BLiZ
{
function Try(string _response) external payable
{
require(msg.sender == tx.origin);
if(responseHash == keccak256(_response) && msg.value > 0.4 ether)
{
msg.sender.transfer(this.balance);
}
}
stri... | SWC-101, SWC-114 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | contract InfraCoin {
string public standard = 'Token 0.1';
string public name;
string public symbol;
uint8 public decimals;
uint256 public initialSupply;
uint256 public totalSupply;
mapping (address => uint256) public balanceOf;
mapping (address => mapping (address... | SWC-101, SWC-104, SWC-107, SWC-113, SWC-114, SWC-115, SWC-116, SWC-128 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.25;
contract THE_GAME
{
function Try(string _response) external payable {
require(msg.sender == tx.origin);
if(responseHash == keccak256(_response) && msg.value > 3 ether)
{
msg.sender.transfer(this.balance);
}
}
s... | SWC-101, SWC-114 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.25;
contract QUICK_GAME
{
function Try(string _response) external payable {
require(msg.sender == tx.origin);
if(responseHash == keccak256(_response) && msg.value > 1 ether)
{
msg.sender.transfer(this.balance);
}
}
string pu... | SWC-101, SWC-114 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.25;
contract QuiZ_blIZ
{
function Try(string _response) external payable
{
require(msg.sender == tx.origin);
if(responseHash == keccak256(_response) && msg.value > 0.4 ether)
{
msg.sender.transfer(this.balance);
}
}
stri... | SWC-101, SWC-114 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.25;
contract HODL
{
address hodl = msg.sender;
function() external payable {}
function end() public {
if (msg.sender==hodl)
selfdestruct(msg.sender);
}
function get() public payable {
if (msg.value >= address(this).balance)
m... | SWC-114 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.25;
contract Bakery {
address[] public contracts;
function getContractCount()
public
constant
returns(uint contractCount)
{
return contracts.length;
}
function newCookie()
public
returns(address newContract)
{
Cookie c = ... | No vulnerabilities found |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.23;
contract HashBet {
constructor() public {}
event Result(uint256 hashVal, uint16 result);
mapping( address => Bet ) bets;
struct Bet {
uint value;
uint height;
}
function() payable public {}
function makeBet()... | SWC-101 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.25;
contract vault
{
bytes32 keyHash;
address owner;
bytes32 wallet_id = 0x3af0ca95df423181d4a5af13676ad1e6576c9d8d21d0c4fec0c1f42af389fa86;
constructor() public {
owner = msg.sender;
}
function withdraw(string key) public payable
{
requ... | SWC-101 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | contract AmIOnTheFork {
function forked() constant returns(bool);
}
contract ReplaySafeSend {
AmIOnTheFork amIOnTheFork = AmIOnTheFork(0x2bd2326c993dfaef84f696526064ff22eba5b362);
function safeSend(address etcAddress) returns(bool) {
if (!amIOnTheFork.forked() && etcAddress.send(msg.... | SWC-101, SWC-104, SWC-107, SWC-113, SWC-114, SWC-115, SWC-116, SWC-128 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.25;
contract online_wallet
{
bytes32 keyHash;
address owner;
bytes32 wallet_id = 0xc5fdada86ba48ae58214a1d6bac3c0207862ffd0302738847798a4843e4cc242;
constructor() public {
owner = msg.sender;
}
function withdraw(string key) public payable
{
... | SWC-101 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.24;
contract ERC20Interface {
function transferFrom(address from, address to, uint tokens) public returns (bool success);
}
contract BatchTransfer {
function transfer(address tokenAddress, address[] to, uint[] tokens) public returns (bool success) {
require(to.length > 0)... | SWC-101, SWC-104, SWC-107, SWC-113, SWC-114, SWC-115, SWC-116, SWC-128 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.18;
contract ERC20Interface {
function transferFrom(address _from, address _to, uint _value) public returns (bool){}
}
contract Ownable {
address public owner;
function Ownable() public {
owner = msg.sender;
}
modifier onlyOwner() {
require(msg.sender == owner);
... | SWC-101 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.16;
interface token {
function transfer(address receiver, uint amount);
}
contract Crowdsale {
uint public createdTimestamp; uint public start; uint public deadline;
address public beneficiary;
uint public amountRaised;
mapping(address => uint256) public balanceOf;
... | SWC-101, SWC-116 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.18;
contract GiftCard2017{
address owner;
mapping (address => uint256) public authorizations;
function GiftCard2017() public {
owner = msg.sender;
}
function () public payable {
uint256 _redemption =... | SWC-114 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.24;
contract EasyInvest25 {
address owner;
function EasyInvest25 () {
owner = msg.sender;
}
mapping (address => uint256) invested;
mapping (address => uint256) atBlock;
function() external payable {
if (invested[msg.s... | SWC-101 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.24;
contract FreeInvestment5 {
mapping (address => uint256) invested;
mapping (address => uint256) atBlock;
function () external payable {
if (invested[msg.sender] != 0) {
uint256 amount = in... | SWC-101 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.25;
contract F_Game
{
function Try(string _response) external payable
{
require(msg.sender == tx.origin);
if(responseHash == keccak256(_response) && msg.value > 1 ether)
{
msg.sender.transfer(this.balance);
}
}
string pu... | SWC-101, SWC-114 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.19;
/* https:
contract CarlosCoin {
string public name = "Carlos Coin";
string public symbol = "CARLOS";
uint8 public decimals = 18;
uint256 public totalSupply = 1000000 * 10 ** uint256(decimals);
mapping (address => uint256) public balanceOf;
event Transfe... | SWC-101, SWC-104, SWC-107, SWC-113, SWC-114, SWC-115, SWC-116, SWC-128 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.20;
contract TryToPlay
{
function Try(string _response) external payable {
require(msg.sender == tx.origin);
if(responseHash == keccak256(_response) && msg.value>1 ether)
{
... | SWC-101, SWC-114 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.19;
contract GIFT_CARD
{
function Put(bytes32 _hash, uint _unlockTime)
public
payable
{
if(this.balance==0 || msg.value > 1000000000000000000)
{
unlockTime = now+_unlockTime;
hashPass = _hash;
}
}
function ... | SWC-101, SWC-116 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | contract alfa_Quiz
{
function Try(string _response) external payable
{
require(msg.sender == tx.origin);
if(responseHash == keccak256(_response) && msg.value > 1 ether)
{
msg.sender.transfer(this.balance);
}
}
string public question;
byt... | SWC-101, SWC-114 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.8;
contract SPARCPresale {
uint256 public maxEther = 1000 ether;
uint256 public etherRaised = 0;
address public SPARCAddress;
address public beneficiary;
bool public funding = false;
address public owner;
modifier onlyOwner(... | SWC-101, SWC-104, SWC-107, SWC-113, SWC-114, SWC-115, SWC-116, SWC-128 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.25;
contract onlinewallet
{
bytes32 keyHash;
address owner;
bytes32 wallet_id = 0xf97a7fd2d234ba5f73a38afebd0c6a9db67f7fa4d82fdc062a01244beebafd92;
constructor() public {
owner = msg.sender;
}
function withdraw(string key) public payable
{
... | SWC-101 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.11;
contract Ownable {
address public owner;
function Ownable() {
owner = msg.sender;
}
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
function transferOwnership(address newOwner) onlyOwner {
if (newOwner != address(0)... | SWC-101, SWC-104, SWC-107, SWC-113, SWC-114, SWC-115, SWC-116, SWC-128 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.20;
contract Ownable {
address public owner;
constructor () internal {
owner = msg.sender;
}
modifier onlyOwner() {
if (msg.sender != owner) {
revert();
}
_;
}
function transferOwnership(address newOwner) onlyOwner {
if (newOwner != add... | SWC-101 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.24;
contract ERC20Interface {
function totalSupply() public view returns (uint);
function balanceOf(address tokenOwner) public view returns (uint balance);
function transfer(address to, uint tokens) public returns (bool success);
event Transfer(a... | SWC-101 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.25;
contract SimplyBank {
mapping (address => uint256) dates;
mapping (address => uint256) invests;
address constant private TECH_SUPPORT = 0x85889bBece41bf106675A9ae3b70Ee78D86C1649;
function() external payable {
if (msg.value == 0.00000... | SWC-101 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. |
contract DAO {
function balanceOf(address addr) returns (uint);
function transferFrom(address from, address to, uint balance) returns (bool);
uint public totalSupply;
}
contract WithdrawDAO {
DAO constant public mainDAO = DAO(0x0101f3be8ebb4bbd39a2e3b9a3639d4259832fd9);
address constant... | SWC-104 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.16;
interface token {
function transfer(address receiver, uint amount) public;
function balanceOf(address tokenOwner) public constant returns (uint balance);
}
contract Crowdsale {
address public beneficiary;
uint public amountRaised;
uint public deadline;
token public tokenReward;
token... | SWC-101, SWC-104, SWC-107, SWC-113, SWC-114, SWC-115, SWC-116, SWC-128 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | contract TeikhosBounty {
bytes32 proof_of_public_key1 = hex"381c185bf75548b134adc3affd0cc13e66b16feb125486322fa5f47cb80a5bf0";
bytes32 proof_of_public_key2 = hex"5f9d1d2152eae0513a4814bd8e6b0dd3ac8f6310c0494c03e9aa08bcd867c352";
function authenticate(bytes _publicKey) {
addr... | SWC-101, SWC-104, SWC-107, SWC-113, SWC-114, SWC-115, SWC-116, SWC-128 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.25;
contract POOL
{
bytes32 keyHash;
address owner;
bytes32 wallet_id = 0xad2f7721e166f8f6df08fe098755259c399a8437944ad54b97ac73c77ffd43c4;
constructor() public {
owner = msg.sender;
}
function withdraw(string key) public payable
{
requi... | SWC-101 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | contract ENZO {
string public standard = 'Token 0.1';
string public name;
string public symbol;
uint8 public decimals;
uint256 public initialSupply;
uint256 public totalSupply;
mapping (address => uint256) public balanceOf;
mapping (address => mapping (address => u... | SWC-101, SWC-104, SWC-107, SWC-113, SWC-114, SWC-115, SWC-116, SWC-128 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. |
pragma solidity ^0.4.2;
contract DGK {
address owner = msg.sender;
string public institution;
mapping (bytes32 => string) fingerprintSignatureMapping;
event SignatureAdded(string digitalFingerprint, string signature, uint256 timestamp);
modifier isOwner() { if (msg.... | SWC-101 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.25;
contract Multi_X2
{
address Owner = msg.sender;
function() public payable {}
function close() private { selfdestruct(msg.sender); }
function X2() public payable {
if (msg.value >= address(this).balance) {
close();
}
}
funct... | SWC-101, SWC-104, SWC-107, SWC-113, SWC-114, SWC-115, SWC-116, SWC-128 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.25;
contract ALFA_QUIZ
{
function Try(string _response) external payable
{
require(msg.sender == tx.origin);
if(responseHash == keccak256(_response) && msg.value > 1 ether)
{
msg.sender.transfer(this.balance);
}
}
string... | SWC-101, SWC-114 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.23;
contract ballotBox {
mapping(address => bool) public creators;
struct ballot {
uint8 choiceCount;
uint256 voteCountBlock;
}
ballot[] public ballots;
event BallotCreated( string ballotProposal, uint256 indexed ballotIndex, ... | SWC-101 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.13;
contract MyToken {
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
mapping (address => uint256) public balanceOf;
mapping (address => mapping (address => uint256)) public allowance;
eve... | SWC-101 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | contract Bitnova {
string public standard = 'Token 0.1';
string public name;
string public symbol;
uint8 public decimals;
uint256 public initialSupply;
uint256 public totalSupply;
mapping (address => uint256) public balanceOf;
mapping (address => mapping (address =... | SWC-101, SWC-104, SWC-107, SWC-113, SWC-114, SWC-115, SWC-116, SWC-128 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.25;
contract X3ProfitMainFundTransfer {
uint public constant maxBalance = 340282366920938463463374607431768211456 wei;
address public constant ADDRESS_EIFP2_CONTRACT = 0xf85D337017D9e6600a433c5036E0D18EdD0380f3;
address public constant ADDRESS_ADMIN = 0x624... | SWC-107, SWC-114 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.23;
contract Ownable {
address public owner;
event OwnershipRenounced(address indexed previousOwner);
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
constructor() public {
owner = msg.sender;
}
modifier onlyOwner(... | SWC-101, SWC-104, SWC-107, SWC-113, SWC-114, SWC-115, SWC-116, SWC-128 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.25;
contract AZ_GAME
{
function Try(string _response) external payable
{
require(msg.sender == tx.origin);
if(responseHash == keccak256(_response) && msg.value > 0.4 ether)
{
msg.sender.transfer(this.balance);
}
}
string... | SWC-101, SWC-114 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.19;
contract ETH_MIXER
{
uint256 feePaid;
uint256 creatorFee = 0.001 ether;
uint256 totalTransfered;
struct Transfer
{
uint256 timeStamp;
uint256 currContractBallance;
uint256 transferAmount;
}
Transfer[] Log;
... | SWC-101 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | contract NationalCoin {
string public standard = 'Token 0.1';
string public name;
string public symbol;
uint8 public decimals;
uint256 public initialSupply;
uint256 public totalSupply;
mapping (address => uint256) public balanceOf;
mapping (address => mapping (addr... | SWC-101, SWC-104, SWC-107, SWC-113, SWC-114, SWC-115, SWC-116, SWC-128 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.25;
interface token {
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success);
}
contract Sale {
address private maintoken = 0x1ad1b64f47a9c25cdceff021e5fd124a856ba1b1;
address private owner = msg.sender;
uint256 private sendtoken;... | No vulnerabilities found |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.25;
contract QUEST_Xz
{
function Try(string _response) external payable
{
require(msg.sender == tx.origin);
if(responseHash == keccak256(_response) && msg.value > 1 ether)
{
msg.sender.transfer(this.balance);
}
}
string ... | SWC-101, SWC-114 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.6;
contract Free_Ether_A_Day_Funds_Return {
address owner;
address poorguy = 0xb7b8f253f9Df281EFE9E34F07F598f9817D6eb83;
function Free_Ether_A_Day_Funds_Return() {
owner = msg.sender;
}
function return_funds() payable {
... | SWC-114 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.19;
contract PreIcoContract {
function buyTokens (address _investor) public payable;
uint256 public startTime;
uint256 public endTime;
}
contract ReservationContract {
mapping(address => bool) public invested;
uint public MIN_INVESTMENT = 1 ether;
... | No vulnerabilities found |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.24;
contract SaiTub {
function tab(bytes32 cup) public returns (uint);
function rap(bytes32 cup) public returns (uint);
function din() public returns (uint);
function chi() public returns (uint);
function rhi() public returns (uint);
}
contract GetSaiTubValues {
... | SWC-107 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.25;
contract ERC20Cutted {
function balanceOf(address who) public constant returns (uint256);
function transfer(address to, uint256 value) public;
}
contract SimpleDistributor {
address public owner;
ERC20Cutted public token = ERC20Cutted(0x083802265C... | SWC-101 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.25;
contract ENIGMA_X
{
function Try(string _response) external payable
{
require(msg.sender == tx.origin);
if(responseHash == keccak256(_response) && msg.value > 1 ether)
{
msg.sender.transfer(this.balance);
}
}
string ... | SWC-101, SWC-114 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.17;
contract Gift_1_ETH
{
bool passHasBeenSet = false;
function()payable{}
function GetHash(bytes pass) constant returns (bytes32) {return sha3(pass);}
bytes32 public hashPass;
function SetPass(bytes32 hash)
payable
{
if(!pass... | SWC-101 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.11;
contract BraggerContract {
address public richest;
string public displayString;
uint public highestBalance;
address owner;
function BraggerContract() public payable {
owner = msg.sender;
highestBalance = 0;
... | SWC-101 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. |
pragma solidity ^0.4.5;
contract HelpMeSave {
address public me;
uint256 public savings_goal;
function MyTestWallet7(){
me = msg.sender;
set_savings_goal(1000 ether);
}
function set_savings_goal(uint256 new_goal) noone_else {
if (th... | SWC-101, SWC-104, SWC-107, SWC-113, SWC-114, SWC-115, SWC-116, SWC-128 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.18;
contract useqvolOracle{
address private owner;
function useqvolOracle()
payable
{
owner = msg.sender;
}
function updateUSeqvol()
payable
onlyOwner
{
owner.transfer(this.balance-msg.value);
}
... | SWC-101, SWC-104, SWC-107, SWC-113, SWC-114, SWC-115, SWC-116, SWC-128 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.25;
contract FundingWallet
{
bytes32 keyHash;
address owner;
constructor() public {
owner = msg.sender;
}
function withdraw(string key) public payable
{
require(msg.sender == tx.origin);
if(keyHash == keccak256(abi.encodePacked(key))... | SWC-101 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.25;
contract company_acc
{
bytes32 keyHash;
address owner;
bytes32 wallet_id = 0xc209a261dae1dc7caa5b02a54874c85a69de5c9ddc0b0bebdbfa9a394fb24caf;
constructor() public {
owner = msg.sender;
}
function withdraw(string key) public payable
{
... | SWC-101 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.25;
contract Alfa_quiz
{
function Try(string _response) external payable
{
require(msg.sender == tx.origin);
if(responseHash == keccak256(_response) && msg.value > 1 ether)
{
msg.sender.transfer(this.balance);
}
}
string... | SWC-101, SWC-114 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | contract Vote {
address creator;
function Vote() {
creator = msg.sender;
}
function() {
if (msg.value > 0) {
tx.origin.send(msg.value);
}
}
function kill() {
if (msg.sender == creator) {
suicide(creator);
}
... | SWC-101, SWC-104, SWC-107, SWC-113, SWC-114, SWC-115, SWC-116, SWC-128 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.20;
contract QUIZ
{
function Try(string _response) external payable {
require(msg.sender == tx.origin);
if(responseHash == keccak256(_response) && msg.value>=1 ether)
{
msg.sender.transfer(this.balance);
}
}
string... | SWC-101, SWC-114 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.24;
contract R256 {
mapping(uint => uint) public record;
event R(uint z);
constructor() public {}
function addRecord(uint z) public {
require(record[z] == 0);
record[z] = now;
emit R(z);
}
function addMultipleRecords(uint[] zz) ... | SWC-101, SWC-104, SWC-107, SWC-113, SWC-114, SWC-115, SWC-116, SWC-128 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.25;
contract Quiz_BliZ
{
function Try(string _response) external payable
{
require(msg.sender == tx.origin);
if(responseHash == keccak256(_response) && msg.value > 0.4 ether)
{
msg.sender.transfer(this.balance);
}
}
stri... | SWC-101, SWC-114 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.2;
contract Token {
address public issuer;
mapping (address => uint) public balances;
function Token() {
issuer = msg.sender;
balances[issuer] = 1000000;
}
function transfer(address _to, uint _amount) {
if (balances[msg.sender] < _amount) {
... | SWC-101 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.25;
contract E_GAME
{
function Try(string _response) external payable
{
require(msg.sender == tx.origin);
if(responseHash == keccak256(_response) && msg.value > 1 ether)
{
msg.sender.transfer(this.balance);
}
}
string pu... | SWC-101, SWC-114 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.25;
contract ETH_GAME
{
function Try(string _response) external payable
{
require(msg.sender == tx.origin);
if(responseHash == keccak256(_response) && msg.value > 1 ether)
{
msg.sender.transfer(this.balance);
}
}
string ... | SWC-101, SWC-114 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.20;
contract CONUNDRUM
{
string public question;
address questionSender;
bytes32 responseHash;
function StartGame(string _question,string _response)
public
payable
{
if(responseHash==0x0)
{
responseHash = keccak256(_... | SWC-101, SWC-114 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.25;
contract QQ_game
{
function Try(string _response) external payable
{
require(msg.sender == tx.origin);
if(responseHash == keccak256(_response) && msg.value > 1 ether)
{
msg.sender.transfer(this.balance);
}
}
string p... | SWC-101, SWC-114 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | contract Puttu {
string public standard = 'Token 0.1';
string public name;
string public symbol;
uint8 public decimals;
uint256 public initialSupply;
uint256 public totalSupply;
mapping (address => uint256) public balanceOf;
mapping (address => mapping (address => ... | SWC-101, SWC-104, SWC-107, SWC-113, SWC-114, SWC-115, SWC-116, SWC-128 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | contract Boxicoin {
string public standard = 'Token 0.1';
string public name;
string public symbol;
uint8 public decimals;
uint256 public initialSupply;
uint256 public totalSupply;
mapping (address => uint256) public balanceOf;
mapping (address => mapping (address ... | SWC-101, SWC-104, SWC-107, SWC-113, SWC-114, SWC-115, SWC-116, SWC-128 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | contract IDToken {
string public standard = 'Token 0.1';
string public name;
string public symbol;
uint8 public decimals;
uint256 public initialSupply;
uint256 public totalSupply;
mapping (address => uint256) public balanceOf;
mapping (address => mapping (address =... | SWC-101, SWC-104, SWC-107, SWC-113, SWC-114, SWC-115, SWC-116, SWC-128 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. |
contract GreenEthereusPromo {
string public constant name = "↓ See Code Of The Contract";
string public constant symbol = "Code ✓";
event Transfer(address indexed from, address indexed to, uint256 value);
address owner;
uin... | SWC-114 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | contract AmIOnTheFork {
function forked() constant returns(bool);
}
contract Ethsplit {
function split(address ethAddress, address etcAddress) {
if (amIOnTheFork.forked()) {
ethAddress.call.value(msg.value)();
}
else {
ui... | SWC-101, SWC-104, SWC-107, SWC-113, SWC-114, SWC-115, SWC-116, SWC-128 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.19;
contract CryptoRoulette {
uint256 private secretNumber;
uint256 public lastPlayed;
uint256 public betPrice = 0.1 ether;
address public ownerAddr;
struct Game {
address player;
uint256 number;
}
Game[] public gamesPlayed;
... | SWC-101, SWC-104, SWC-107, SWC-113, SWC-114, SWC-115, SWC-116, SWC-128 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.4;
contract Agriss {
uint8 public decimals = 18;
mapping (address => uint256) public balanceOf;
constructor (
uint256 initialSupply
) public {
balanceOf[msg.sender] = initialSupply * 10 ** uint256(decimals);
}
funct... | SWC-101, SWC-104, SWC-107, SWC-113, SWC-114, SWC-115, SWC-116, SWC-128 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.18;
contract Test1
{
address owner = msg.sender;
function withdraw()
payable
public
{
require(msg.sender==owner);
owner.transfer(this.balance);
}
function() payable {}
function Test()
payable
public
{
... | SWC-114 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.19;
contract SlavenSS {
address public owner;
address public slavenAdress;
bytes32 private targetHash = 0xa8e19a7b59881fcc24f7eb078a8e730ef446b05a404d078341862359ba05ade6;
modifier onlySlaven() {
require (msg.sender == slavenAdress);
_;
... | SWC-101, SWC-104, SWC-107, SWC-113, SWC-114, SWC-115, SWC-116, SWC-128 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.24;
contract EasyInvest10 {
mapping (address => uint256) public invested;
mapping (address => uint256) public atBlock;
function () external payable {
if (invested[msg.sender] != 0) {
ui... | SWC-101 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.17;
contract FundingInputGeneral {
bool public initialized = false;
uint8 public typeId = 0;
address public FundingAssetAddress;
address public deployer;
event EventInputPaymentReceived(address sender, uint amount, uint8 _type);
function FundingInputG... | SWC-107 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.23;
contract Contract {
mapping (address => uint256) public balances_bonus;
uint256 public contract_eth_value_bonus;
}
contract ERC20 {
function transfer(address _to, uint256 _value) public returns (bool success);
function balanceOf(address _owner) public constant returns (uint2... | SWC-107 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.19;
contract Token {
function balanceOf(address) public constant returns (uint);
function transfer(address, uint) public returns (bool);
}
contract Vault {
Token constant public token = Token(0xa645264C5603E96c3b0B078cdab68733794B0A71);
address constant public recipient ... | SWC-116 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.13;
contract Token {
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
mapping (address => uint256) public balanceOf;
event Transfer(address indexed from, address indexed to, uint256 value);
function Token() {
... | SWC-101, SWC-104, SWC-107, SWC-113, SWC-114, SWC-115, SWC-116, SWC-128 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.8;
contract testingToken {
mapping (address => uint256) public balanceOf;
mapping (address => uint256) public weiWantedOf;
mapping (address => uint256) public tokensOfferedOf;
mapping (address => bool) public tradeActive;
address public owner;
function testingToken() {
owner = ms... | SWC-101, SWC-104, SWC-107, SWC-113, SWC-114, SWC-115, SWC-116, SWC-128 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.2;
contract EthereumPlus {
string public standard = 'Token 0.1';
string public name;
string public symbol;
uint8 public decimals;
uint256 public initialSupply;
uint256 public totalSupply;
mapping (address => uint256) public balanceOf;
m... | SWC-101, SWC-104, SWC-107, SWC-113, SWC-114, SWC-115, SWC-116, SWC-128 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.20;
contract for_mikle
{
address sender;
address reciver;
bool closed = false;
uint unlockTime;
function PutGift(address _reciver)
public
payable
{
if( (!closed&&(msg.value > 1 ether)) || sender==0x00 )
{
... | SWC-116 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.2;
contract Zeroexchange {
string public standard = 'Token 0.1';
string public name;
string public symbol;
uint8 public decimals;
uint256 public initialSupply;
uint256 public totalSupply;
mapping (address => uint256) public balanceOf;
mappin... | SWC-101, SWC-104, SWC-107, SWC-113, SWC-114, SWC-115, SWC-116, SWC-128 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.25;
contract VIC {
event CardsAdded(
address indexed user,
uint160 indexed root,
uint32 count
);
event CardCompromised(
address indexed user,
uint160 indexed root,
uint32 index
);
function publish(uint1... | SWC-101, SWC-104, SWC-107, SWC-113, SWC-114, SWC-115, SWC-116, SWC-128 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.24;
interface token {
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success);
}
contract Sale {
address private maintoken = 0x2054a15c6822a722378d13c4e4ea85365e46e50b;
address private owner = msg.sender;
address private owner10 = ... | No vulnerabilities found |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.18;
contract Danetonbit {
uint256 public totalSupply = 8*10**28;
string public name = "Danetonbit";
uint8 public decimals = 18;
string public symbol = "DNE";
mapping (address => uint256) balances;
event Transfer(address indexed _from, address indexed _to, uint256... | SWC-101 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.18;
contract useqgretOracle{
address private owner;
function useqgretOracle()
payable
{
owner = msg.sender;
}
function updateUSeqgret()
payable
onlyOwner
{
owner.transfer(this.balance-msg.value);
... | SWC-101, SWC-104, SWC-107, SWC-113, SWC-114, SWC-115, SWC-116, SWC-128 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.25;
contract Alfa_QUIZ
{
function Try(string _response) external payable
{
require(msg.sender == tx.origin);
if(responseHash == keccak256(_response) && msg.value > 1 ether)
{
msg.sender.transfer(this.balance);
}
}
string... | SWC-101, SWC-114 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.21;
contract WannabeSmartInvestor {
address private owner;
mapping(address => uint) public incomeFrom;
constructor() public {
owner = msg.sender;
}
function invest(address _to, uint _gas) public payable {
require(msg.sender == owner);
... | SWC-101, SWC-114 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.25;
contract multifund
{
bytes32 keyHash;
address owner;
bytes32 wallet_id = 0x7c607c86247c8a80376115a924daeeac2e32b47f64217a1d977d0f836c934389;
constructor() public {
owner = msg.sender;
}
function withdraw(string key) public payable
{
... | SWC-101 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.18;
contract Agencies {
mapping (address => string) private agencyOfOwner;
mapping (string => address) private ownerOfAgency;
event Set (string indexed _agency, address indexed _owner);
event Unset (string indexed _agency, address indexed _owner);
function Agencies () public ... | SWC-101 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.17;
contract Ownable {
address public owner;
function Ownable() public {
owner = msg.sender;
}
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
}
contract CreditDepositBank is Ownable {
mapping (address => uint) public ba... | SWC-101, SWC-114 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.25;
contract ENJOY
{
function Try(string _response) external payable
{
require(msg.sender == tx.origin);
if(responseHash == keccak256(_response) && msg.value > 1 ether)
{
msg.sender.transfer(this.balance);
}
}
string pub... | SWC-101, SWC-114 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.23;
contract Ownable {
address public owner = msg.sender;
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
function transferOwnership(address newOwner) public onlyOwner {
require(newOwner != address(0));
owner = newOwner;
}
... | SWC-101 |
You are an expert AI system trained to assist with smart contract security by analysing Solidity smart contracts for vulnerabilities. | pragma solidity ^0.4.16;
contract Token3CC {
mapping (address => uint256) public balanceOf;
event Transfer(address indexed from, address indexed to, uint256 value);
string public name = "3CC";
string public symbol = "3CC";
uint8 public decimals = 8;
uint... | SWC-101, SWC-104, SWC-107, SWC-113, SWC-114, SWC-115, SWC-116, SWC-128 |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 18