Skip to content

Instantly share code, notes, and snippets.

View kiknaio's full-sized avatar
🦄
Working remotely

George Kiknadze kiknaio

🦄
Working remotely
View GitHub Profile
@kiknaio
kiknaio / Telephone.ethernaut.sol
Created August 22, 2023 17:03
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.8.18+commit.87f61d96.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface ITelephone {
function changeOwner(address _owner) external;
}
contract HackTelephoneOnEthernatu {
ITelephone telephoneAddress = ITelephone(0x4536F233885184a92ddF57b6Bc86117A879C0745);
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;
// 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.
*
@kiknaio
kiknaio / forge.sh
Created December 12, 2020 07:27
Laravel Forge Setup Script
#
# 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)
#
#!/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__)
@kiknaio
kiknaio / ping_sweep.sh
Created March 23, 2020 06:29
Ping sweep with bash
#!/bin/sh
for i in {1..254} ;do (ping -c 1 192.168.1.$i | grep "bytes from" &) ;done
@kiknaio
kiknaio / books.md
Created November 13, 2019 12:36
Books to read from Rain Geometric ☔️ team
@kiknaio
kiknaio / npm-permission.sh
Last active April 29, 2019 19:40
Fix NPM permission problem
sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config
@kiknaio
kiknaio / i18n-express4-cookie-example.js
Created November 10, 2017 20:37 — forked from mashpie/i18n-express4-cookie-example.js
i18n-express4-cookie-example
@kiknaio
kiknaio / app.js
Created February 18, 2017 23:14
How to make guestbook with Express.js (part 1)
const express = require('express');
const morgan = require('morgan');
const bodyParser = require('body-parser');
// Define port for the server
const PORT = 3000;
const app = express();
// Require routes
const routes = require('./routes/routes');