Skip to content

Instantly share code, notes, and snippets.

View orangecms's full-sized avatar
🐢
Hack the planet!

Daniel Maslowski orangecms

🐢
Hack the planet!
View GitHub Profile
@orangecms
orangecms / build.sh
Created January 30, 2024 00:10
build Zephyr for VF2 / JH7110
#!/bin/bash
# get a toolchain; the one in current Ubuntu is not suitable, so use Zephyr's
# TOOLCHAIN_DL_BASE=https://github.com/zephyrproject-rtos/sdk-ng/releases/download
# TOOLCHAIN_VER=v0.16.5-rc1
# TOOLCHAIN_TAR=toolchain_linux-x86_64_riscv64-zephyr-elf.tar.xz
# wget $TOOLCHAIN_DL_BASE/$TOOLCHAIN_VER/$TOOLCHAIN_TAR
# tar -xf $TOOLCHAIN_TAR
TOOLCHAIN_DIR=$(pwd)/riscv64-zephyr-elf
@orangecms
orangecms / notes.md
Created January 16, 2024 14:53
UEFI hacking workshop

Abstract

We take a look at UEFI platform initialization firmware such as found on many current mainboards like laptops, desktops and servers.

Many security flaws, such as the recently discovered LogoFAIL vulnerability, expose both consumers and organizations to severe risks.

What strategies are there to find such issues, and how do we exploit them?

Description

From 482094ba156b7257ed88c396872e022bc299d629 Mon Sep 17 00:00:00 2001
From: Daniel Maslowski <cyrevolt@gmail.com>
Date: Fri, 8 Dec 2023 21:36:37 +0000
Subject: [PATCH] www/minio: downgrade to RELEASE.2022-10-24T18-35-07Z
This is the tagged commit: `bd099f5e71d0ea511846372869bfcb280a5da2f6`
Using the release timestamp and hash to identify the module (variable
GO_MODULE)
errors when running `make makesum`, because the Go proxy does not know
@orangecms
orangecms / veve.md
Last active August 27, 2023 02:46
9loa veve
      ╮     ╭
      ⌺  ⌺  ⌺
      │╱│╱│
    ✳─⌺  ⌺  ⌺─✳
      │╱│╱│
      ⌺  ⌺  ⌺
      ╯     ╰
@orangecms
orangecms / oreboot-jh7110-dtfs-uboot.log
Last active April 8, 2024 00:34
VF2 upstream boot log
oreboot 🦀 bt0
boot mode: UART
RISC-V arch 8000000000000007
RISC-V core vendor: SiFive (0x0489)
RISC-V implementation: 21G1.02.00 / llama.02.00-general (0x04210427)
RISC-V hart ID 1
vout clk axi: 0x00000000
vout clk core: 0x00000000
vout clk ahb: 0x00000000
vout_reset_status: 0x00000000
@orangecms
orangecms / boot-timer-error.log
Last active August 19, 2023 02:53
Mainline Linux on ShareVDI R1
U-Boot SPL 2023.04-rc2-00032-g775e48a0ca (Jul 22 2023 - 20:28:33 +0200)
DRAM (YOLO): 256 MiB
size=18, ptr=18, limit=100000: 4fd00000
Boot devices:
- FEL
- BOOTROM
Trying to boot from FEL
Jump to boot ROM
BCDEFGJ[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 6.4.0+ (dama@orangelemp) (arm-linux-gnueabi-gcc (Ubuntu 11.3.0-1ub3
@orangecms
orangecms / boot.log
Last active September 28, 2023 07:25
S905X4 TV-Box with AOSP Arm64 kernel
����SC2:BL:fb9e82;ID:0056000142A21C05;FEAT:30F:1FFE0000:B002F:1;POC:FF;RCY:0;OVD:0;DFU:0;eMMC:0;RD-0:0;CHK:0;RVK-N:8000;RVK-C:8000;RVK-A:800;RVK-C:8800;RVK-A:800;RVK-C:8800;RVK-N:8000;RVK-C:8800;SCS:0;RVK-N:00004000;RVK-C:0000c800;RVK-N:00002000;RVK-C:0000e800;
build in ddr magic:ddr4
OTP_LIC00 : 0f0300000000fe1f2f000b0000000000
OTP_LIC10 : 00820700aa01fe00ff00001f00400300
OTP_LIC20 : ffffffbf00000000c280000000000001
OTP_LIC30 : 000000f201000000ff0200f207000000
TE: 181407
BL2 Built : 20:42:11, Aug 9 2021. sc2 griscure-review-sc2-bl2-08032020-120-g922477b - jenkins@walle02-sh
@orangecms
orangecms / boot.log
Last active July 4, 2023 21:58
oreboot on JH7110 / VF2 with RustSBI
oreboot 🦀 bt0
boot mode: UART
RISC-V arch 8000000000000007
RISC-V core vendor: SiFive (0x0489)
RISC-V implementation: 21G1.02.00 / llama.02.00-general (0x04210427)
RISC-V hart ID 1
apb0 80000000
apb0 80000000
DRAM: 4G: false 2G: false
[DRAM] init start
@orangecms
orangecms / goswid.json
Last active October 18, 2022 23:30
SBoM JSON exports
[
{
"lang": "en-US",
"tag-id": "a9032c9d-2aaa-5a25-a0e6-6d865b24e6d2",
"tag-version": 0,
"software-name": "coreboot",
"software-version": "bd34cca50aba130364f362618881693c0478a4a6",
"version-scheme": "alphanumeric",
"software-meta": [
{
@orangecms
orangecms / uefi-pi-rs.error.log
Created September 30, 2022 08:55
first time I get a Rust compiler error
warning: `pe-loader` (lib) generated 1 warning
Compiling rust-firmware-layout v0.1.0 (/home/dama/Projects/Fiedka/uefi-pi-rs/rust-firmware-layout)
thread 'rustc' panicked at 'failed to lookup `SourceFile` in new context', compiler/rustc_query_impl/src/on_disk_cache.rs:514:22
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md