Skip to content

Instantly share code, notes, and snippets.

View raylax's full-sized avatar
🍉

raylax raylax

🍉
  • CN
  • 06:09 (UTC +08:00)
View GitHub Profile
public static String normalize(String text) {
StringBuilder sb = new StringBuilder();
int ci;
int pi = -1;
while ((ci = text.indexOf('/', pi + 1)) != -1) {
if (ci == 0) {
sb.append('/');
} else {
String s = text.substring(pi + 1, ci);
if (s.equals("..")) {
@raylax
raylax / 20211210-TLP-WHITE_LOG4J.md
Created December 13, 2021 10:11 — forked from SwitHak/20211210-TLP-WHITE_LOG4J.md
BlueTeam CheatSheet * Log4Shell* | Last updated: 2021-12-12 2204 UTC

Security Advisories / Bulletins linked to Log4Shell (CVE-2021-44228)

Errors, typos, something to say ?

  • 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

Other great ressources

import sys
import tarfile
def check(path: str):
no_asciis: list[str] = []
with tarfile.open(path) as tar:
for item in tar.getmembers():
if item.name.isascii():
continue