Skip to content

Instantly share code, notes, and snippets.

View 0xbepresent's full-sized avatar

Misa 0xbepresent

View GitHub Profile
View ArrayLength.t.sol
// 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;
View Unchecked.t.sol
// 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;
View extractHTML.py
import os
import random
import requests
import argparse
import textwrap
import time
def hookFactory(*factory_args, **factory_kwargs):
def saveData(response, *args, **kwargs):
View goliath-db.sh
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..."
View goliath-recon.sh
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
View gist:4720c12679202bfa0bfd148863dfb158
### 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:
@0xbepresent
0xbepresent / tor_connection.py
Created August 19, 2017 14:20
Python Script to connect to TOR via Stem.
View tor_connection.py
"""
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
@0xbepresent
0xbepresent / scrapping_h1.py
Created March 27, 2017 18:26
Spider which helps to send HackerOne reports to Pushbullet.
View scrapping_h1.py
"""
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
@0xbepresent
0xbepresent / get_candidatos.py
Created October 18, 2016 19:40
Obtener candidatos de Santiago.
View get_candidatos.py
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)
@0xbepresent
0xbepresent / mycustomtestrunner.py
Created February 3, 2015 22:23
Mock Get Requests in all Tests
View mycustomtestrunner.py
import requests
from mock import patch
from django.test.runner import DiscoverRunner
class CustomTestRunner(DiscoverRunner):
"""Custom test runner"""
def __init__(self, *args, **kwargs):