Skip to content

Instantly share code, notes, and snippets.

View llazzaro's full-sized avatar
👨‍🚒
Fighting fire with fire 🔥

Leonardo Lazzaro llazzaro

👨‍🚒
Fighting fire with fire 🔥
View GitHub Profile
When
[Case
(Deposit
(PK "be")
(Role "player1")
(Token "" "")
(Constant 15)
)
(When
[Case
@llazzaro
llazzaro / recover.py
Created July 16, 2021 20:25
Recover bitcoin from seeds
import sys
import tempfile
from pybloom_live import ScalableBloomFilter
try:
from electrum import SimpleConfig
from electrum.keystore import from_seed
from electrum.tests.test_wallet_vertical import WalletIntegrityHelper
from electrum.util import BitcoinException
@llazzaro
llazzaro / bash_dispatcher.ini
Created January 21, 2020 03:15
Bash dispatcher.ini example
[server]
host = 127.0.0.1
api_port = 5985
websocket_port = 9000
workspace = agent
[tokens]
registration = TOKEN
[agent]
@llazzaro
llazzaro / echo.sh
Last active January 21, 2020 03:10
Example agent script code
printf '{"hosts":[{"ip":"127.0.0.1","description":"host description","vulnerabilities":[],"credentials":[],"services":[{"name":"http","protocol":"tcp","port":80,"vulnerabilities":[{"name":"vuln test from agent","severity":"high","desc":"vuln desc","type":"Vulnerability"}]}]}]}}'
@llazzaro
llazzaro / redis_cheatsheet.bash
Created July 16, 2017 23:31 — forked from Yogendra0Sharma/redis_cheatsheet.bash
Redis Cheatsheet - Basic Commands You Must Know
# Redis Cheatsheet
# All the commands you need to know
redis-server /path/redis.conf # start redis with the related configuration file
redis-cli # opens a redis prompt
# Strings.
@llazzaro
llazzaro / check_file.py
Created April 11, 2017 21:16
How to check that a file or directory exists with Python?
# example taken from https://tutorials.technology/tutorials/08-How-to-check-that-file-exists-with-Python.html
from pathlib import Path
def file_or_directory(pathname):
file_or_directory = Path(pathname)
if file_or_directroty.exists():
if file_or_directory.is_file():
print('Filename {0} is a file!'.format(pathname)
else:
print('Filename {0} is a directory!'.format(pathname)
@llazzaro
llazzaro / README.md
Created April 3, 2017 04:18 — forked from balupton/README.md
DocPad: Query custom category objects (via parse event)
@llazzaro
llazzaro / install.sh
Last active November 8, 2016 21:17 — forked from jamesdavidson/install.sh
How to install CouchDB 1.2.0 on fresh Ubuntu 12 LTS edition.
#!/bin/bash
# @jsdavo 6th July 2012
# Derived mainly from https://onabai.wordpress.com/2012/05/10/installing-couchdb-1-2-in-ubuntu-12-04/
# @llazzaro 8th Nov 2016: Update to work with ubuntu 16
# For Ubuntu 16
# Get some 300MB of dependencies
sudo apt-get install automake autoconf libtool subversion-tools help2man
sudo apt-get install build-essential erlang libicu-dev
@llazzaro
llazzaro / gist:c0232e70ae95786079b11485b9966ea2
Created July 13, 2016 04:00
Assigning VLANs to LXC containers connected to OpenVswitch
sudo apt-get install build-essential
wget http://www.cmake.org/files/v3.2/cmake-3.2.2.tar.gz
tar xf cmake-3.2.2.tar.gz
cd cmake-3.2.2
./configure
make
git clone https://github.com/openbabel/openbabel.git
cd openbabel
mkdir build