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
// Usign the gas-lab as a reference https://github.com/0xKitsune/gas-lab | |
// SPDX-License-Identifier: UNLICENSED | |
pragma solidity >=0.8.12; | |
import "../../lib/test.sol"; | |
import "../../lib/Console.sol"; | |
contract GasTest is DSTest { | |
Contract0 c0; | |
Contract1 c1; |
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
// Usign the gas-lab as a reference https://github.com/0xKitsune/gas-lab | |
// SPDX-License-Identifier: UNLICENSED | |
pragma solidity >=0.8.12; | |
import "../../lib/test.sol"; | |
import "../../lib/Console.sol"; | |
contract GasTest is DSTest { | |
Contract0 c0; | |
Contract1 c1; |
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
import os | |
import random | |
import requests | |
import argparse | |
import textwrap | |
import time | |
def hookFactory(*factory_args, **factory_kwargs): | |
def saveData(response, *args, **kwargs): |
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
echo "Installing Docker..." | |
sudo apt -y update | |
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" | |
sudo apt -y update | |
apt-cache policy docker-ce | |
sudo apt install -y docker-ce | |
echo "Download ElasticSearch..." |
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
sudo apt-get -y update | |
sudo apt-get -y upgrade | |
sudo apt-get install -y build-essential libssl-dev libffi-dev python-dev | |
sudo apt-get install -y python-setuptools | |
sudo apt-get install -y libldns-dev | |
sudo apt-get install -y python3-pip | |
sudo apt-get install -y python-pip | |
sudo apt-get install -y python-dnspython | |
sudo apt-get install -y git |
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
### Keybase proof | |
I hereby claim: | |
* I am misalabs on github. | |
* I am misalabs (https://keybase.io/misalabs) on keybase. | |
* I have a public key whose fingerprint is 31CC ED0F 52CF 1F05 F448 8A6B C5A7 046D 8FE9 399A | |
To claim this, I am signing this object: |
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
""" | |
Python script to connect to TOR via STEM. I also recommend this source https://gist.github.com/KhepryQuixote/46cf4f3b999d7f658853 | |
""" | |
import socks | |
import requests | |
import socket | |
from stem import Signal | |
from stem.control import Controller | |
from stem.util import term |
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
""" | |
Spider which helps to send HackerOne reports to Pushbullet. | |
""" | |
import datetime | |
from scrapy import signals, Spider | |
from scrapy.xlib.pydispatch import dispatcher | |
from pushbullet import Pushbullet | |
from settings_prod import PUSHBULLET_KEY |
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
import csv | |
import requests | |
from bs4 import BeautifulSoup | |
servel_html = requests.get('http://www.servel.cl/declaraciones-de-patrimonio-e-intereses-alcaldes/') | |
page_servel = BeautifulSoup(servel_html.text, 'lxml') | |
with open("candidatos.csv", 'a+') as f: | |
w = csv.writer(f) |
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
import requests | |
from mock import patch | |
from django.test.runner import DiscoverRunner | |
class CustomTestRunner(DiscoverRunner): | |
"""Custom test runner""" | |
def __init__(self, *args, **kwargs): |
NewerOlder