Skip to content

Instantly share code, notes, and snippets.

Fighting fire with fire 🔥

Leonardo Lazzaro llazzaro

Fighting fire with fire 🔥
Block or report user

Report or block llazzaro

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
llazzaro / bash_dispatcher.ini
Created Jan 21, 2020
Bash dispatcher.ini example
View bash_dispatcher.ini
host =
api_port = 5985
websocket_port = 9000
workspace = agent
registration = TOKEN
llazzaro /
Last active Jan 21, 2020
Example agent script code
printf '{"hosts":[{"ip":"","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 / redis_cheatsheet.bash
Created Jul 16, 2017 — forked from Yogendra0Sharma/redis_cheatsheet.bash
Redis Cheatsheet - Basic Commands You Must Know
View redis_cheatsheet.bash
# 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 /
Created Apr 11, 2017
How to check that a file or directory exists with Python?
# example taken from
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)
print('Filename {0} is a directory!'.format(pathname)
llazzaro /
Created Apr 3, 2017 — forked from balupton/
DocPad: Query custom category objects (via parse event)
llazzaro /
Last active Nov 8, 2016 — forked from jamesdavidson/
How to install CouchDB 1.2.0 on fresh Ubuntu 12 LTS edition.
# @jsdavo 6th July 2012
# Derived mainly from
# @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 / gist:c0232e70ae95786079b11485b9966ea2
Created Jul 13, 2016
Assigning VLANs to LXC containers connected to OpenVswitch
View gist:c0232e70ae95786079b11485b9966ea2
View gist:28d84f5daf936b707b2157ef896ee1b6
sudo apt-get install build-essential
tar xf cmake-3.2.2.tar.gz
cd cmake-3.2.2
git clone
cd openbabel
mkdir build
llazzaro /
Last active Sep 8, 2015 — forked from blacktm/
A Bash script to install Ruby 2.2 on the Raspberry Pi (Raspbian).
# -----------------------------------------------------------------------
# Installs Ruby 2.2 using rbenv/ruby-build on the Raspberry Pi (Raspbian)
# Run from the web:
# bash <(curl -s raw_script_url_here)
# -----------------------------------------------------------------------
# Set up variables
llazzaro /
Last active Jan 9, 2018 — forked from lanceliao/
Auto mount USB storage device by uuid on OpenWrt
  1. Install USB device support;
opkg install kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-storage e2fsprogs fdisk usbutils mount-utils block-mount kmod-fs-ext4 kmod-fs-vfat kmod-nls-utf-8 kmod-nls-cp437 kmod-nls-iso8859-1

  1. Install blkid, run opkg update && opkg install blkid;
  2. Copy to directory /lib/functions;
  3. Copy 10-mount and 20-swap to directory /etc/hotplug.d/block;
  4. That's it! run logread -f command then plug in a USB stick to test.
You can’t perform that action at this time.