Skip to content

Instantly share code, notes, and snippets.

View pentest cheat sheet
----------------------------------------------------------------------------------------------------
sudo apt-get install p0f -yqq
p0f -L #LISTENING ALL THE INTERFACES
p0f -i eth0 -p -o /tmp/p0f.log # one interface and logging, -p promiscous mode
p0f -r /tmp/dump.pcap -o dump-result.log # analyze pcap file
----------------------------------------------------------------------------------------------------
#ZIP Password Cracking Windows
>zip2john.exe test.zip > test.hash #generate the hash with zip2john
>type test.hash
>john.exe --pot=test.pot --wordlist=\tmp\wordlists\Passwords\Common-Credentials\10-million-password-list-top-1000000.txt
@lontivero
lontivero / productivity.md
Created Jan 21, 2021
Productivity with git worktree
View productivity.md

Productivity

Developers work with many branches at the same time because during any single day they review others' pull requests, try new crazy things, work on new features/bug-fixes and also fix somebody else's PRs. All this forces a combination of git stash [pop|save], git fetch, git checkout [-f] and again git stash [pop|apply]. No matter if this is done by command line or with a tool the problem of having only one copy of the code is an ugly constrain.

Wasabi Wallet folders organization (suggestion)

Create main local bare repository

First clone your existing repository as a bare repo (a repository without files) and do it in a .git directory.

@lontivero
lontivero / simul.py
Created Aug 10, 2020
Fee rates under mepool pressure simulation
View simul.py
import sys, random, math
def hours(hrs):
return hrs * minutes(60)
def minutes(mins):
return 60 * mins
def megabytes(mega):
return mega * 1024 * 1024
@lontivero
lontivero / WabiSabi.hs
Created Aug 3, 2020
WabiSabi toy impl in Haskell
View WabiSabi.hs
module WabiSabi where
data GE = GE Integer Integer | Infinity
deriving Show
instance S.Semigroup GE where
(<>) = (⊕)
instance M.Monoid GE where
mempty = Infinity
@lontivero
lontivero / bundle.sh
Created Aug 3, 2020
Wasabi AppImage bundle
View bundle.sh
#!/bin/sh
set -e
rm -rf .AppDir
mkdir -p ./AppDir/usr/bin
dotnet publish \
--configuration Release
--force \
--output ./AppDir/usr/bin \
@lontivero
lontivero / Monoid.cs
Last active Jul 15, 2020 — forked from reidev275/Monoid.cs
Monoid and Foldable for C#
View Monoid.cs
public interface Monoid<A>
{
public A Empty => default(A);
A Append(A x, A y);
}
public static class Foldable
{
public static A Fold<A>(this IEnumerable<A> list, Monoid<A> M) =>
list.FoldMap(x => x, M);
@lontivero
lontivero / README.md
Last active Jun 20, 2020
Wasabi CLI
View README.md

Wasabi CLI

A tiny bash script to effortless interaction with Wasabi RPC Server.

$ ./wcli.sh listkeys | head -10 

fullkeypath       internal  keystate  label  p2wpkhscript                              pubkey                                                              pubkeyhash
84'/0'/0'/1/0     true      2         0      b0ba6bb14314bacd1f908eb2b9ecc74e0b041717  039d67f2c7c3dd1ed0ac301e677fe3abf6f059067796553211d562f46f2e420043  b0ba6bb14314bacd1f908eb2b9ecc74e0b041717
84'/0'/0'/1/1     true      2         0      6b470de643697581b2717e6d2b878470a26d5e83  02efaf8fddc729e51826439ebac6e5782f60890262fd6c0702f537062bc4fe00f2  6b470de643697581b2717e6d2b878470a26d5e83
@lontivero
lontivero / Program.cs
Last active Apr 19, 2019
Get Bitcoin nodes on onion domains
View Program.cs
using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace seeds
{
@lontivero
lontivero / onion_bitcoin
Created Apr 17, 2019 — forked from hungryduck/onion_bitcoin
List active .onion bitcoin nodes (Bash)
View onion_bitcoin
#!/bin/bash
# Command to get a list of active bitcoin .onion addresses from bitnodes.21.co
curl -s https://bitnodes.21.co/api/v1/snapshots/latest/ | egrep -o '[a-z0-9]{16}\.onion:?[0-9]*' | sort -ru
@lontivero
lontivero / bitdump.sh
Created Mar 26, 2019 — forked from altamic/bitdump.sh
dumps Bitcoin network traffic
View bitdump.sh
#!/usr/bin/env sh
# bitdump.sh
#
# captures Bitcoin network traffic
SELF=`basename $0`
if [[ $1 = "" ]]; then
DEFAULT="en1"