Skip to content

Instantly share code, notes, and snippets.

em0@pci0:2:5:0: class=0x020000 card=0x11798086 chip=0x10798086 rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = '82546GB Gigabit Ethernet Controller'
class = network
subclass = ethernet
em1@pci0:2:5:1: class=0x020000 card=0x11798086 chip=0x10798086 rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = '82546GB Gigabit Ethernet Controller'
class = network
subclass = ethernet
@lidl
lidl / gist:dfbdc7b97e3af9e893235c52615f1b6f
Created May 12, 2017 20:57
Boot log of Ubiquiti Unifi Security Gateway Pro (USG-PRO-4)
Jumping to start of image at address 0xbfca0000
U-Boot 2012.04.01 (UBNT Build ID: 4785663-gaff5016) (Build time: Jun 30 2015 - 14:17:11)
Skipping PCIe port 0 BIST, in EP mode, can't tell if clocked.
Skipping PCIe port 1 BIST, reset not done. (port not configured)
BIST check passed.
UBNT_E220 r1:1, r2:14, serial #: F09FC21D4897
MPR 13-02102-14
@lidl
lidl / gist:7d32b22471afa8b816ee2ec7080b27d6
Created May 12, 2017 21:14
UBNT_E220 /proc information
root@ubnt:/home/ubnt# cat /proc/version
Linux version 3.10.20-UBNT (usg-builder@edgeos-builder2) (gcc version 4.7.0 (Cavium Inc. Version: SDK_3_1_0_p2 build 34) ) #1 SMP Tue Nov 1 17:23:01 PDT 2016
root@ubnt:/home/ubnt# cat /proc/cpuinfo
system type : UBNT_E220
machine : Unknown
processor : 0
cpu model : Cavium Octeon II V0.1
BogoMIPS : 2000.00
wait instruction : yes
microsecond timers : yes
option space bsdos;
option bsdos.multicast code 1 = ip-address;
option bsdos.bootdefine code 2 = text;
option bsdos.bootdefault code 3 = text;
host victim {
option vendor-class-identifier "BSDi";
vendor-option-space bsdos;
# where to tftp files from
@lidl
lidl / gist:31844b8b5f9de3627eefbd68d6cd4d93
Last active June 23, 2017 15:48
'zfs list' from fileserver
root@hydra-226: zfs list
NAME USED AVAIL REFER MOUNTPOINT
sys 331G 137G 187M /
sys/jail 1.28G 137G 1.28G /jail
sys/pool0 168G 137G 64K none
sys/pool0/p 168G 137G 104K /p
sys/pool0/p/fbsd 46.6G 137G 24.0G /p/fbsd
sys/pool0/p/fbsd/GIT 5.57G 137G 3.43G /p/fbsd/GIT
sys/pool0/p/fbsd/OBJ.arm 96K 137G 96K /p/fbsd/OBJ.arm
sys/pool0/p/fbsd/OBJ.mips 2.62G 137G 2.00G /p/fbsd/OBJ.mips
@lidl
lidl / gist:c36c39f33798023674fdcd4b9e09c42d
Created June 16, 2017 03:16
erl gpart info - edgeos
gpart show da5
=> 63 7831489 da5 MBR (3.7G)
63 1985 - free - (993K)
2048 290816 1 !12 (142M)
292864 3418112 2 linux-data (1.6G)
3710976 4120576 - free - (2.0G)
@lidl
lidl / gist:976355ed9b322afb7242b0985e02adb6
Created September 11, 2017 01:17
mips64 kernel stacktrace
CPU ID FUNCTION:NAME
0 16467 :tick-60s
dtrace.ko`dtrace_state_clean
0xffffffff803b56f0
0xffffffff803b634c
0xffffffff80798928
0xffffffff8079ae68
0xffffffff807ad694
@lidl
lidl / gist:7042f229d6c31bb8cc199cf253e5e6c4
Created September 11, 2017 01:26
ctfdump /usr/obj/usr/src/sys/ERL/kern_xxx.o
root@erl2-141: ctfdump /usr/obj/usr/src/sys/ERL2/kern_xxx.o
- CTF Header -----------------------------------------------------------------
cth_magic = 0xcff1
cth_version = 2
cth_flags = 0x00
cth_parlabel = (anon)
cth_parname = (anon)
cth_lbloff = 0
@lidl
lidl / gist:99f83909cdeff824c26b6e59c11b10cb
Created September 11, 2017 01:29
gdb 'list sys_read' output
(kgdb) list sys_read
188 #endif
189 int
190 sys_read(td, uap)
191 struct thread *td;
192 struct read_args *uap;
193 {
194 struct uio auio;
195 struct iovec aiov;
196 int error;
@lidl
lidl / gist:266dba4a48ed5fc3e8f4e79c738e8930
Created September 11, 2017 01:36
dtrace -n 'syscall::write:entry { ustack(); }'
CPU ID FUNCTION:NAME
1 14254 write:entry
libc.so.7`__sys_write+0x18
libc.so.7`__swrite+0x28
libc.so.7`_swrite+0xac
libc.so.7`__sflush+0x88
libc.so.7`__fflush+0x50
libc.so.7`0x160297ec8
libc.so.7`vfprintf_l+0xec
libc.so.7`fprintf+0x70