This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Open.Nat; | |
namespace ConsoleApplication3 | |
{ | |
class Program |
This file contains 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
#!/usr/bin/env sh | |
# bitdump.sh | |
# | |
# captures Bitcoin network traffic | |
SELF=`basename $0` | |
if [[ $1 = "" ]]; then | |
DEFAULT="en1" |
This file contains 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
#!/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 |
This file contains 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
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); |
This file contains 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 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 |
This file contains 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
// This is just an initial example / tech-demo. | |
#if INTERACTIVE | |
#I "./../packages/NBitcoin/lib/net45/" | |
#I "./../packages/Newtonsoft.Json/lib/net45" | |
#r "NBitcoin.dll" | |
#r "Newtonsoft.Json.dll" | |
#else | |
module BlockChain | |
#endif |
This file contains 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
1) COPY SSH KEYS TO USER@HOST TO ENABLE PASSWORD-LESS SSH LOGINS. (NOT ON MAC) | |
ssh-copy-id user@host | |
To generate the keys use the command ssh-keygen | |
2) START A TUNNEL FROM SOME MACHINE’S PORT 80 TO YOUR LOCAL POST 2001 | |
ssh -N -L2001:localhost:80 somemachine |
OlderNewer