Currently updated for Debian 12 "Bookworm"
Edit /etc/ssl/openssl.cnf
[openssl_init]
providers = provider_sect
ssl_conf = ssl_sect
| #!/bin/sh | |
| # Simple htpasswd replacement using OpenSSL | |
| set -eu | |
| if [ "$#" -ne 2 ]; then | |
| echo "Usage: "$(basename "$0")" <username> <password>" >&2 | |
| exit 1 | |
| fi |
| #!/bin/bash | |
| # acme-status.sh | |
| # Show status of all acme.sh certificates | |
| ACME_HOME="$HOME/.acme.sh" | |
| if [ ! -d "$ACME_HOME" ]; then | |
| echo "acme.sh home directory not found at $ACME_HOME" | |
| exit 1 | |
| fi |
| // prng.c | |
| #include <stdint.h> | |
| /* ********************* */ | |
| /* * XORSHIFT798 * */ | |
| /* * 16-bit * */ | |
| /* ********************* */ | |
| static uint16_t x798_s = 0; |
| #!/usr/bin/env bash | |
| # OpenSSL requires the port number. | |
| SERVER=$1 | |
| DELAY=1 | |
| if [ -z "$SERVER" ]; then | |
| echo Usage: $0 IP:PORT | |
| exit 1 | |
| fi |
| #!/bin/sh | |
| # All ciphers | |
| openssl ciphers -v "ALL:eNULL" | |
| # Good ciphers | |
| # openssl ciphers -v "aNULL:-aNULL:ALL:!EXPORT:!LOW:+RC4:@STRENGTH" |
| #!/bin/sh | |
| # create CA certificate | |
| openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -sha256 -days 10950 -nodes -subj "/CN=www.example.com" | |
| # create non-CA certificate (OpenSSL >=v1.1.1) | |
| #openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -sha256 -days 10950 -nodes -subj "/CN=www.example.com" -addext "authorityKeyIdentifier=keyid" -addext "basicConstraints=CA:FALSE" | |
| # create non-CA TLS certificate (OpenSSL >=v1.1.1) | |
| #openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -sha256 -days 10950 -nodes -subj "/CN=www.example.com" -addext "authorityKeyIdentifier=keyid" -addext "basicConstraints=CA:FALSE" -addext "extendedKeyUsage=serverAuth" -addext "subjectAltName=DNS:www.example.com" |
| // cave.idc : An IDA IDC script to find alignment blocks | |
| // (also called 'code cave') in an IDA database. | |
| // Useful when you need to add code to a binary file | |
| // Say for example you found an exploitable bug in a program | |
| // and you don't want to wait for the developer to provide a bugfix, | |
| // you can add your own code to the alignment block in order to manually | |
| // fix the bug. | |
| // Code by trapflag | |
| // bugfixed by death |
| <# : | |
| @setlocal disabledelayedexpansion enableextensions | |
| @echo off | |
| powershell -nol -noni -nop -ex bypass -c "&{[ScriptBlock]::Create((cat '%~f0') -join [Char[]]10).Invoke(@(&{$args}%*))}" | |
| exit /b | |
| #> | |
| Write-Host === CRLF -> LF ===`n | |
| $items = dir .\ -recurse | where {$_.extension -in ".sln",".vcproj",".vcxproj",".vcxproj.filters",".md",".cs",".c",".h",".cpp",".inc",".hpp",".txt",".cc",".log",".def",".asm",".mk",".s",".json",".lua",".xml",".ini",".sql",".cfg",".nsh",".nsi",".sma",".php",".sh",".res",".bat",".conf",".js"} |
| // tada.c | |
| // compile (msvc): | |
| // cl /MD /O2 /Zl /GS- /kernel /D "WIN32" /D "NDEBUG" /D "_WINDOWS" tada.c /link kernel32.lib winmm.lib /entry:main /subsystem:windows /pdb:none /machine:I386 /nodefaultlib /incremental:no /manifest:no /safeseh:no /emitpogophaseinfo /RELEASE /OPT:REF /OPT:ICF | |
| #define WINVER 0x0501 | |
| #define _WIN32_WINNT 0x0501 | |
| #include <windows.h> |