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
import { MerkleTree } from 'merkletreejs'; | |
import keccak256 from 'keccak256'; | |
let whiltelistAddresses = [ | |
'0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5', | |
'0x814fae9f487206471b6b0d713cd51a2d35980000', | |
'0x82e7d9afccb8f6e06812c4f2c3e1852e655b8244', | |
'0xf5784072a102089505eae832c85b58abe32c5e22', | |
]; |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
interface ITelephone { | |
function changeOwner(address _owner) external; | |
} | |
contract HackTelephoneOnEthernatu { | |
ITelephone telephoneAddress = ITelephone(0x4536F233885184a92ddF57b6Bc86117A879C0745); |
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.8.7; | |
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
contract SecurityHashrateToken is ERC20 { | |
address private owner; | |
mapping (address => bool) private authorized; | |
constructor(uint256 initialSupply) ERC20("SECURITYHASHRATE", "SHRTK") { | |
owner = msg.sender; |
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
// SPDX-License-Identifier: MIT | |
pragma solidity >=0.6.0 <0.8.0; | |
import "../utils/Context.sol"; | |
/** | |
* @dev Contract module which provides a basic access control mechanism, where | |
* there is an account (an owner) that can be granted exclusive access to | |
* specific functions. | |
* |
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
# | |
# REQUIRES: | |
# - server (the forge server instance) | |
# - event (the forge event instance) | |
# - sudo_password (random password for sudo) | |
# - db_password (random password for database user) | |
# - callback (the callback URL) | |
# |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from flask import Flask, Response, session, render_template | |
from re import compile, escape, search | |
from random import choice, randint | |
from string import lowercase | |
from functools import wraps | |
from os import environ | |
app = Flask(__name__) |
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
#!/bin/sh | |
for i in {1..254} ;do (ping -c 1 192.168.1.$i | grep "bytes from" &) ;done |
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
sudo chown -R $USER:$GROUP ~/.npm | |
sudo chown -R $USER:$GROUP ~/.config |
NewerOlder