Skip to content

Instantly share code, notes, and snippets.

View mcprat's full-sized avatar

Michael Pratt mcprat

  • Ohio
  • 16:15 (UTC -04:00)
View GitHub Profile
@mcprat
mcprat / server.conf
Last active April 18, 2021 02:11
debian 10 openvpn server
port 9090
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh.pem
tls-auth hmac.key
key-direction 0
@mcprat
mcprat / boot.log
Created January 11, 2021 01:59
EAP1200H Openwrt firstboot master
Validating MD5Sum of 'vmlinux'... Passed!
Validating MD5Sum of 'rootfs'... Passed!
## Booting image at 9f0a0000 ...
Image Name: MIPS OpenWrt Linux-5.4.87
Created: 2021-01-10 20:51:46 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 3265 Bytes = 3.2 kB
Load Address: 80060000
Entry Point: 80060000
Verifying Checksum at 0x9f0a0040 ...OK
@mcprat
mcprat / getch.py
Created December 31, 2020 18:37
Windows python keyboard scan code script
import msvcrt
print('Press key to output Windows keyboard scan codes (Ctrl + Break to quit): ', end='\n\n', flush=True)
while True:
key = msvcrt.getwch()
if ord(key) in (0, 224):
ext = msvcrt.getwch()
else:
@mcprat
mcprat / openvpn
Created December 27, 2020 21:39
Openwrt openvpn config file example
config openvpn 'myvpn'
option dev 'tun'
option reneg_sec '0'
option verb '4'
option persist_key '1'
option nobind '1'
option persist_tun '1'
option client '1'
option remote_cert_tls 'server'
list remote 'example.com 9090'
@mcprat
mcprat / boot.log
Created December 8, 2020 02:03
ESR600H Openwrt master firstboot 2 (gpio fixed)
[ 0.000000] Linux version 5.4.81 (pi@SDDesk) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r13719+1411-66e04abbb6)) #0 Mon Dec 7 13:47:18 2020
[ 0.000000] SoC Type: Ralink RT3883 ver:1 eco:5
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[ 0.000000] MIPS: machine is EnGenius ESR600H
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000003ffffff]
@mcprat
mcprat / boot.log
Created December 7, 2020 10:57
ESR600H Openwrt master firstboot
U-boot Ver:1.0.6.198 2012/02/16
Board: Ralink APSoC DRAM: 64 MB
spi_wait_nsec: 48
spi device id: c2 20 17 c2 20 (2017c220)
find flash: MX25L6405D
raspi_read: from:30000 len:1000
.raspi_read: from:30000 len:1000
.============================================
@mcprat
mcprat / boot.log
Created December 4, 2020 16:17
ESR600H Openwrt master initramfs attempt 1
[ 0.000000] Linux version 5.4.80 (pi@SDDesk) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r13719+1411-66e04abbb6)) #0 Fri Dec 4 03:49:15 2020
[ 0.000000] SoC Type: Ralink RT3883 ver:1 eco:5
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[ 0.000000] MIPS: machine is EnGenius ESR600H
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000003ffffff]
@mcprat
mcprat / boot.log
Created November 7, 2020 00:48
ECB350 v1 Openwrt Master firstboot
[ 0.000000] Linux version 5.4.74 (pi@SDDesk) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r13719+835-66e04abbb6)) #0 Wed Nov 4 04:15:22 2020
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[ 0.000000] MIPS: machine is EnGenius ECB350 v1
[ 0.000000] SoC: Atheros AR7242 rev 1
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000001ffffff]
@mcprat
mcprat / boot.log
Created November 5, 2020 12:21
EAP300 v2 Openwrt Master boot log (firstboot)
Hit any key to stop autoboot: 0
Validating MD5Sum of 'vmlinux'... Passed!
Validating MD5Sum of 'rootfs'... Passed!
## Booting image at 9f0a0000 ...
Image Name: MIPS OpenWrt Linux-5.4.74
Created: 2020-11-05 9:50:46 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 3265 Bytes = 3.2 kB
Load Address: 80060000
Entry Point: 80060000
@mcprat
mcprat / boot.log
Created November 1, 2020 23:57
ECB1200 Openwrt firstboot master
[ 51.540000] br-lan: port 3(ath0) entered forwarding state
magic num = 00000000
decoding image
[ 288.050000] Restarting system.
U-Boot 1.1.4 (v1.0.0) (Nov 6 2014 - 12:56:32)
ECB1200_1750 - Scorpion 1.0DRAM:
sri