Skip to content

Instantly share code, notes, and snippets.

View Python1320's full-sized avatar

Python1320 Python1320

  • M.Sc. (Tech.) Project Researcher
  • Finland
View GitHub Profile
@Python1320
Python1320 / _MC800S_CCTV_notes.md
Last active September 23, 2023 15:16
MC800S CCTV hacking

Closest to center pin is TX, 3.3v

Hold enter to enter uboot during boot:

Anjoy # printenv
Mstarbin=20150709
bootargs=ubi.mtd=UBI,2048 root=/dev/mtdblock8 rootfstype=squashfs ro init=/linuxrc LX_MEM=0xffe0000 mma_heap=mma_heap_name0,miu=0,sz=0x9E9C000 mma_heap=mma_heap_ipu,miu=0,sz=0x164000 cma=2M mtdparts=nand0:768k@1280k(IPL0),384k(IPL_CUST0),384k(IPL_CUST1),384k(UBOOT0),384k(UBOOT1),256k(ENV0),0x500000(KERNEL),0x500000(RECOVERY),0x2000000(rootfs),0x200000(MISC),0x500000(DATA),-(UBI)
bootcmd=nand read.e 0x22000000 KERNEL 0x500000; bootm 0x22000000;nand read.e 0x22000000 RECOVERY 0x500000; bootm 0x22000000
ethact=sstar_emac
ethaddr=00:30:1b:ba:02:db
@Python1320
Python1320 / bootlog.log
Created December 9, 2022 17:30
Aruba Networks AP-115 (APIN0115) reversing
APBoot 1.4.0.5 (build 38142)
Built: 2013-04-21 at 22:03:44
Model: AP-11x
CPU: QCA9550 revision: 1.0
Clock: 720 MHz, DDR rate: 600 MHz, Bus clock: 200 MHz
DRAM: 256 MB
POST1: passed
Copy: done
@Python1320
Python1320 / angreifer.ino
Last active November 24, 2022 20:28
https://angreifer.org in the USB port
// 15€ hardware: https://www.aliexpress.com/item/1005003672079080.html
// 5€ hardware: https://www.aliexpress.com/item/2040316211.html (needs rewriting with DigiKeyboard.h)
#include<Keyboard.h>
#define KEY_DELAY 50
void setup() {
/* KeyboardLayout_da_DK: Denmark
KeyboardLayout_de_DE: Germany
@Python1320
Python1320 / readme.sh
Last active October 22, 2022 12:33
Serial linux<->windows with persistence
#
# https://sourceforge.net/projects/com0com/
#
$ hub4com --baud=38400 --octs=off "\\.\CNCB0" --use-driver=tcp --reconnect=1 "10.0.0.1:2000"
@Python1320
Python1320 / youtubefft.lua
Created July 10, 2022 14:25
GMod youtube fft test (old but seems to work still)
local asdd = vgui.Create'DHTML'
timer.Simple(20,function() asdd:Remove() end)
asdd:OpenURL"https://www.youtube.com/watch?v=zFcY5xO4dGA"
asdd:SetSize(600,600)
asdd:SetAlpha(255)
local fft={}
asdd.PaintOver=function(self,w,h)
local max=#fft + 1
local width = w/max
@Python1320
Python1320 / hex.lua
Last active June 19, 2022 21:11
HMAC-SHA256 for GMod (no binary modules)
-- bootstrap slow version
function string.tohex(str)
return (str:gsub('.', function (c)
return string.format('%02X', string.byte(c))
end))
end
-- caching fast versions
@Python1320
Python1320 / require_unbreak.lua
Last active February 15, 2022 22:52
GMod require is broken, let's attempt a quick hack
-- Adapted from https://github.com/battlemesh/openwrt-packages/blob/ebd07d9f65f1044875cfe9e6d035732603a4b2f9/lang/luaexpat/files/compat-5.1r5/compat-5.1.lua
-- and https://github.com/danielga/gmod_require/blob/master/includes/modules/require.lua
-- and mostly from https://github.com/hoelzro/lua-procure
-- Combined license unknown
-- This file should not even be required...
if SERVER then AddCSLuaFile() return end -- not useful on server due to metaman require override but could/should probably be loaded anyway
local _require = _G.require_rqoverride or require
_G.require_rqoverride = _require
local sentinel
@Python1320
Python1320 / main.cmd
Created January 8, 2022 16:06
An extremely dirty hack to turn on Windows screen over MQTT with LuaJIT/Luapower/TINN
@rem hi
:restartthis
cd "C:\Users\display\Downloads\luapower-all-x86-x64-master"
"C:\Users\display\Downloads\luapower-all-x86-x64-master\bin\mingw32\luajit.exe" main.lua
GOTO restartthis
@Python1320
Python1320 / gmod_altgrproblems.lua
Created September 5, 2021 16:46
Debugging altgr problems in Garry'sMod
local DermaPanel = vgui.Create( "DFrame" )
DermaPanel:SetPos( 100, 100 )
DermaPanel:SetSize( 500,800 )
DermaPanel:SetDraggable( true )
DermaPanel:MakePopup()
local a=vgui.Create'DHTML'
a:SetParent(DermaPanel)
a:Dock(FILL)
@Python1320
Python1320 / accountage.lua
Created December 30, 2018 16:42
Steam account age estimator
local inspect = require "inspect"
local posix = require"posix"
local lfs = require'lfs'
local cjson = require'cjson.safe'
local lmfit = require 'lmfit'
function PrintTable(...)
print(inspect{...})
end
math.randomseed(os.time())