It happens that there are many standards for storing cryptography materials (key, certificate, ...) and it isn't always obvious to know which standard is used by just looking at file name extension or file content. There are bunch of questions on stackoverflow asking about how to convert from PEM to PKCS#8 or PKCS#12, while many tried to answer the questions, those answers may not help because the correct answer depends on the content inside the PEM file. That is, a PEM file can contain many different things, such as an X509 certificate, a PKCS#1 or PKCS#8 private key. The worst-case scenario is that someone just store a non-PEM content in "something.pem" file.
This file contains hidden or 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
| ;;; Startup | |
| ;;; PACKAGE LIST | |
| (setq package-archives | |
| '(("melpa" . "https://melpa.org/packages/") | |
| ("elpa" . "https://elpa.gnu.org/packages/"))) | |
| ;;; BOOTSTRAP USE-PACKAGE | |
| (package-initialize) | |
| (setq use-package-always-ensure t) | |
| (unless (package-installed-p 'use-package) |
This file contains hidden or 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 Debuggable { | |
| default String debug() { | |
| StringBuilder sb = new StringBuilder(this.getClass().getName()); | |
| sb.append(" [ "); | |
| Field[] fields = this.getClass().getDeclaredFields(); | |
| for(Field f: fields) { | |
| f.setAccessible(true); | |
| try { | |
| sb.append(f.getName() + " = " + f.get(this)); | |
| sb.append(", "); |
Security Advisories / Bulletins / vendors Responses linked to Log4Shell (CVE-2021-44228)
- If you want to add a link, comment or send it to me
- Feel free to report any mistake directly below in the comment or in DM on Twitter @SwitHak
- Royce Williams list sorted by vendors responses Royce List
- Very detailed list NCSC-NL
- The list maintained by U.S. Cybersecurity and Infrastructure Security Agency: CISA List
This file contains hidden or 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
| ;;; Startup | |
| ;;; PACKAGE LIST | |
| (setq package-archives | |
| '(("melpa" . "https://melpa.org/packages/") | |
| ("elpa" . "https://elpa.gnu.org/packages/"))) | |
| ;;; BOOTSTRAP USE-PACKAGE | |
| (package-initialize) | |
| (setq use-package-always-ensure t) | |
| (unless (package-installed-p 'use-package) |
This file contains hidden or 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
| ############################## | |
| ## Java | |
| ############################## | |
| .mtj.tmp/ | |
| *.class | |
| *.jar | |
| *.war | |
| *.ear | |
| *.nar | |
| hs_err_pid* |
This is a small tool using Tinyscript and pypdf or pikepdf to bruteforce the password of a PDF given an alphabet (defaults to printables) and a length (default is 8).
$ pip install pypdf tinyscript
$ tsm pdf-password-bruteforcer
This file contains hidden or 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
| package main | |
| import ( | |
| "bytes" | |
| "crypto/tls" | |
| "encoding/xml" | |
| "fmt" | |
| "io/ioutil" | |
| "net/http" | |
| "strings" |
This file contains hidden or 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
| # Copyright (c) 2019 Will Bender. All rights reserved. | |
| # This work is licensed under the terms of the MIT license. | |
| # For a copy, see <https://opensource.org/licenses/MIT>. | |
| # Very fast __git_ps1 implementation | |
| # Inspired by https://gist.github.com/wolever/6525437 | |
| # Mainly this is useful for Windows users stuck on msys, cygwin, or slower wsl 1.0 because git/fs operations are just slower | |
| # Caching can be added by using export but PROMPT_COMMAND is necessary since $() is a subshell and cannot modify parent state. | |
| # Linux: time __ps1_ps1 (~7ms) |