Skip to content

Instantly share code, notes, and snippets.

Shawn Webb lattera

Block or report user

Report or block lattera

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:68cf684364d46fe57d84fc3fe4f186fe
Loading kernel...
/boot/kernel/kernel text=0x8ec200 data=0x17f840+0x84aaa4 syms=[0x8+0x130f08+0x8+0x1205e9]
Loading configured modules...
/boot/entropy size=0x1000
No valid device tree blob found!
WARNING! Trying to fire up the kernel, but no device tree blob found!
EFI framebuffer information:
addr, size 0x40000000, 0x300000
dimensions 1024 x 768
stride 1024
View 2019-04-03_dmidecode-r02.txt
Script started on Wed Apr 3 13:29:31 2019
Command: ipmitool -H 172.16.1.51 -U ADMIN -P Q1p8.aD!$ -I lanplus sol activate
[SOL Session operational. Use ~? for help]
root@hbsd-thunderx2-01:~# dmidecode
# dmidecode 3.1
Getting SMBIOS data from sysfs.
SMBIOS 3.1.1 present.
Table at 0xFE310000.
View 2019-04-03_tx2_freebsd-r01.txt
Script started on Wed Apr 3 13:15:26 2019
Command: ipmitool -H 172.16.1.51 -U ADMIN -P Q1p8.aD!$ -I lanplus sol activate
[SOL Session operational. Use ~? for help]
Rom...
CRC: len=0xf080, cal=0x27ff5de9, img=0x27ff5de9, match!
Loading from boot device SPI NOR
Header:
000|0x23ffdc0: 01 02 FF FF 4C 46 43 53 00 04 00 00 50 FB 05 00
010|0x23ffdd0: 01 04 FF FF 4C 46 43 53 00 00 06 00 D8 92 00 00
View 2019-04-03_dmidecode-r01.txt
Script started on Wed Apr 3 12:25:06 2019
Command: ipmitool -H 172.16.1.51 -U ADMIN -P Q1p8.aD!$ -I lanplus sol activate
[SOL Session operational. Use ~? for help]
root@hbsd-thunderx2-01:~# dmidecode
# dmidecode 3.1
Getting SMBIOS data from sysfs.
SMBIOS 3.1.1 present.
Table at 0xFE310000.
View pid.c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int
main(int argc, char *argv[])
{
while (printf("%d\n", getpid()))
sleep(15);
View pid.txt
./pid: file format ELF64-x86-64
Disassembly of section .text:
0000000000001300 register_classes:
0000000000001330 main:
1330: 55 pushq %rbp
1331: 48 89 e5 movq %rsp, %rbp
1334: 48 83 ec 20 subq $32, %rsp
View port_sanity.zsh
#!/usr/local/bin/zsh
find /usr/ports -type f -name Makefile -print | \
xargs egrep '^USE_HARDENING' | \
grep safestack 2>&1 | awk -F ':USE' '{print $1;}' | \
while read port; do
portdir=$(dirname ${port})
echo "* ${portdir}" >&2
(
cd ${portdir}
View gist:16a372a60f9093dae0647e24378ac8e6
diff --git a/sys/dev/random/fortuna.c b/sys/dev/random/fortuna.c
index e300c6ffb4ca..98473a1b08ef 100644
--- a/sys/dev/random/fortuna.c
+++ b/sys/dev/random/fortuna.c
@@ -1,4 +1,5 @@
/*-
+ * Copyright (c) 2017 W. Dean Freeman
* Copyright (c) 2013-2015 Mark R V Murray
* All rights reserved.
*
View devfs.rules
[localrules=10]
[devfs_rules_sdr_jail=20]
add include $devfsrules_jail
add path ugen* unhide
add path usb/* unhide
add path dsp* unhide
[devfs_rules_bhyve_jail=25]
add include $devfsrules_jail
View suil-0.10.2_1.log
=>> Building audio/suil
build started at Wed Jan 23 09:13:26 EST 2019
port directory: /usr/ports/audio/suil
package name: suil-0.10.2_1
building for: FreeBSD hardenedbsd-12_amd64-local-job-09 12.0--HBSD FreeBSD 12.0--HBSD 1200502 amd64
maintained by: beerml@sigma6audio.de
Makefile ident:
Poudriere version: 3.2.99.20181024
Host OSVERSION: 1300009
Jail OSVERSION: 1200502
You can’t perform that action at this time.