自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(52)
  • 收藏
  • 关注

原创 OWASP : Authentication Cheat Sheet 中文譯本

資料來源。

2024-09-30 10:13:58 931

原创 Zephyr Environment

Zephyr supports a wide range of processor architectures, including ARM Cortex-M, x86, RISC-V, ARC, and others, allowing developers to use it across different hardware platforms.This flexibility allows Zephyr to be used in a variety of embedded systemIt ca

2024-09-27 13:13:06 765

原创 Multi-processor and multi-thread debuging tools

【代码】Multi-processor and multi-thread debuging tools。

2024-09-27 13:01:03 743

原创 Drivers on multiprocessor and multithreaded ASIC platforms (1)

race condition and deadlockTo prevent multiple threads from accessing the same resource simultaneously, synchronization primitives (e.g., mutexes, semaphores) must be used.minimizing the use of locks to reduce overhead should also be considered.each proces

2024-09-27 12:52:16 892

原创 [AppSec] How to start an AppSec Program with the OWASP Top 10 translation

https://owasp.org/Top10/zh_TW/A00_2021-How_to_start_an_AppSec_program_with_the_OWASP_Top_10/如何用OWASP前十大開始應用程式安全計畫過去,OWASP前十大從未被設計成應用程式安全(AppSec)計畫的基礎。然而,對於剛開始應用程式安全旅程的許多組織來說,總得有個起點。2021年版的OWASP前十大是一個不錯的起點,可以作為基線或檢查表,但它本身並不足夠。階段1:識別AppSec計畫的差距和目標許多應用程式安

2024-09-26 17:46:29 338

原创 Collect CVE by OSS name and version in Buildroot

【代码】Collect CVE by OSS name and version in Buildroot。

2024-09-13 18:03:32 688

原创 Analyzing CPU Usage with Perf (2) - using perf and read flamgraph

【代码】Analyzing CPU Usage with Perf (2) - using perf and read flamgraph。

2024-09-04 11:19:29 1151

原创 Analyzing CPU Usage with Perf (1) - preparation

【代码】Analyzing CPU Usage with Perf (1) - preparation。

2024-09-04 11:08:14 992 1

原创 Detecting Memory Management and Threading Bugs with Valgrind

contentAbout ValgrindInstalling ValgrindFrom SourceFrom Pre-compiled BinaryPrepare FW and standard library with symbolPrepare FWPrepare sysroot on NFSSet LD_LIBRARY_PATH and create symbolic linksPrepare self-implement libraries and applications with symbol

2024-09-04 10:56:04 987

原创 OWASP: OWASP Dependency-Check install and usage 安裝與使用說明

【代码】OWASP: OWASP Dependency-Check install and usage 安裝與使用說明。

2024-08-29 15:10:02 366

原创 OWASP: how to use Cppcheck output 如何閱讀cppcheck output 以改進代碼安全性

Download Windows 64-bit (No XP support) Installer, and installnew projectThe project file requires a larger storage space; it is recommended not to save it on the C drive.File -> Open Project File…save outupt to xmlhttps://codebeautify.org/xmlviewerI rec

2024-08-29 13:50:45 693

原创 OWASP: How to use flawfinder output to improve your source code

Flawfinder is a commonly used static source code analysis tool that can check code according to CWE guidelines and provide modification suggestions.Recap:How to Install Python 3 and Flawfinder for Static Analysis in a Windows Environment2021 list-of-mappe

2024-08-27 15:40:19 764

原创 How to Install Python 3 and Flawfinder for Static Analysis in a Windows Environment

【代码】How to Install Python 3 and Flawfinder for Static Analysis in a Windows Environment。

2024-08-26 16:49:48 588

原创 Import Bento4 to buildroot:how to cover C++ to C interface

【代码】Import Bento4 to buildroot:how to cover C++ to C interface。

2024-07-23 16:03:38 663 1

原创 Example of an Automated SBOM Generation Using Syft

【代码】Example of an Automated SBOM Generation Using Syft。

2024-07-17 14:25:31 1065

原创 Dump audio source from wireshark

Import 原始資料 > open .raw in Audacity。

2024-07-05 16:21:49 1073

原创 Profiling memory, file descriptor and other process information with procfs (/proc)

【代码】Profiling memory, file descriptor and other process information with procfs (/proc)

2024-07-05 16:11:08 848

原创 Cross Debugging with GDB: Embedded Linux

Downlaod target_debug to C:\msys64\home\imxx\ 下, this is MYSYS2 home。

2024-07-05 15:58:03 656

原创 ffmpeg frequently use commands

【代码】ffmpeg frequently use commands。

2024-07-05 15:27:23 399

原创 [Display嵌入式]SDL播放 mjpeg 檔案到屏幕上

將MJPEG 用 SDL2 顯示在屏幕上

2022-09-07 17:01:32 360

原创 Using Glaze on Windows to create an embedded GUI and handle cross-compile 使用 glaze 製作嵌入式GUI與處理交叉編譯

.glaze 可以改名為 .ui 在交叉編譯中使用

2022-08-31 20:17:34 182

原创 X window system 從buildroot移植二三事

使用 buildroot 交叉編譯與安裝 x window system

2022-08-31 20:02:31 460

原创 Buildroot libGTK2 support DirectFB

Buildroot 上讓 libgtk2 可以 gdk-target=directfb

2022-06-10 11:41:17 330 1

原创 Buildroot patch 使用 git format-patch 製作

使用 git format-patch 製作 buildroot patch文章目录使用 git format-patch 製作 buildroot patchgit patch 基於commit 來製作修改git patch for buildroot經常不能直接用,但是Diff 產生的patch 又遠不如git patch 能夠存放各筆修改的重要訊息,本文紀錄git patch 無法給buildroot 使用的根本原因與解法。git patch 基於commit 來製作原本的commit aaa

2022-05-31 16:49:26 274

原创 [Buildroot] patch for buildroot package

如何製作Buildroot package patch公司規定第三方庫都要放在buildroot 管理,也就是如果要修改source code 的話,就需要打patch。文章目录如何製作Buildroot package patchbuildroot architecturehow to make Linux patchdiffgit format-patch將其中一筆作為patch將兩筆作為patch從HEAD 開始算起N筆作為PATCHbuildroot download source and pa

2022-05-09 13:46:09 379

原创 Linux Kernel config enable USB mouse/keyboard, Virtual terminal, frame buffer & snapshot /dev/fb0

起因最近在目標平台上移植 DirectFB,需要先用 Virtual framebuffer (虛擬幀緩衝) 進行測試,才能開始開發gfx device & gfx driver需求根據 directFb 官方 readme至少會需要 /dev/fb0 , /dev/tty0, /dev/psaux or /dev/mouseUsage Requirements------------------ Depending on the DirectFB application you

2022-04-21 12:12:39 322

原创 minimal setup for HTTPS streaming of FLV: HTTPS streaming 傳輸 flv 檔案的最小實現

寫了一個用 https 傳輸FLV檔案的最小實現當作proof of concept

2021-10-28 17:24:36 1152 1

原创 Wireshark will decrypt the TLS (HTTPS) traffic and save the plain text: 將TLS (https) decrypt 並保存明文

使用 SSL/TLS 協議傳輸的封包在 handshake 之後以加密形式傳輸,即使wireshark 抓包也無法看到內容,本文介紹使TLS 封包解為明文的方法

2021-10-28 17:08:16 9757

原创 Capture local packets using Wireshark 使用 wireshark 抓本地包

一般而言 windows 系統本地到本地ip 的傳輸不會經過網卡,因此無法由 wireshark 捕捉解析,本文介紹 wireshark 同步安裝 Npcap方式,藉此loopback本地ip 到 本地ip

2021-10-28 16:56:34 10345

原创 AAC 還原 pcm/WAV, faad 的已知問題填坑

年假在家研究一了一下流媒體,之前客戶需求要把mp4轉成h264+pcm 串流,紀錄一下文章目录前言FAAD (libfaad)的已知錯誤原碼Makefile 要怎樣include faadfaad example親測使用ffplay 播放前言libfaac 相信轉過aack格式的人都知道。他有一個對應的庫:libfaad,可用於將aac轉為pcm,windows , linux , macOS 都有offcial release,其他os 可能要交叉編譯就是了。WAV 檔實際上就是 wav head

2021-02-15 21:40:36 235

原创 http-flv 協議解析-wireshark 抓包

由於目前我從沒有找到 http-flv 協議的規格書之類的東西,僅藉由 nginx-http-flv範例中尋找規則,輔以wireshark 進行協議分析。下一篇文章,會進行最基本的實作:使用 HTTP-FLV 協議串流至flv.js文章目录結果說明環境stepsrun nginx-http-flv-moduleffmpeg push在接收端用 flv.js 打開抓包結果flv.js GET requestnginx-http-flv responsehttp-flv stream結果說明http-

2021-02-15 12:25:49 1550

原创 libmp4V2 初始化 MP4 Header

先前被客戶刁難要做出與上一個 OEM 一樣的MP4 header, 在此紀錄 libmp4v2 產生mp4 header的機制文章目录驗證工具AAC ESConfigurationaac obj typesample ratechannelexampleH264代碼銘謝驗證工具https://www.metadata2go.com這個網站可以解析MP4 header,提供如下資訊Furbo 2Compatible Brandsisom, mp41, mp42Handle

2021-02-05 14:18:45 615

原创 [抓包] wireshark 抓取RTP,播放/存檔語音碼流

Wireshark 其實可以播放rtsp 的聲音裸流不懂為什麼可以播audio 卻不能播video ????contentWireshark 其實可以播放rtsp 的聲音裸流使用環境步驟RTSP 抓包Wireshark 播放 audio輸出音頻裸流播放/解析音頻裸流使用環境環境版本說明WiresharkVersion 3.4.2 (v3.4.2-0-ga889cf1b1bf9) on windows 64 bit可能需要自行安裝audio codec dll plugin

2021-01-29 16:49:27 872

原创 [Audio]potplayer播放 G.711a or G.711mu 底躁問題

potplayer播放 音頻串流G.711a or G.711mu 的底躁音會忽大忽小現象環境版本windows 10potplayer201209 (1.7.21396) 64 bitpotplayer200204 (1.7.21126) 64 bit大約在播放前10秒很小聲,第10秒之後逐漸放大,大到某一個程度之後停止。wireshark 抓audio sample 也沒有振幅 (也就是音量)上的變化。與之相對 vlc 等其他也可以播放 g711a,

2021-01-29 13:31:29 1003 1

原创 [抓包]使用 .lua 在wireshark dump HEVC 的二三事

怎樣安裝h265_export.lua總之順利的在wireshark 輸出h265流並保存到檔案了文章目录怎樣安裝h265_export.lua前言添加 lua 插件修改init.lua修改h265_export.lua添加h265_export.lua 到 init.lua 路徑wireshark encode 設置wireshark filterUDP decode as RTPRTP decode to H265Tool > lua > Export H265 to file [HQX

2021-01-28 13:29:42 555

原创 【python】UI/ function code seperated(ISP), TCP server receive multi client and send to a client

【python】UI/ function code seperated(ISP), multithread TCP server receive multi client and send to specific one client少少行數實現的python tcp-server,自愉自樂用 :)文章目录【python】UI/ function code seperated(ISP), multithread TCP server receive multi client and send to sp

2021-01-28 01:25:58 238

原创 Git: work flow of how a feature added to a branch

A workflow of how to add a feature in remote repository Git: work flow of how a feature added to a branchPULL REMOTE TO LOCALNEW FEATURE BRANCH FROM LOCALEDIT YOUR FEATURE BRANCH (ADD, COMMIT)LOCAL PULL REMOTEFEATURE MERGE TO LOCAL, ALSO FIX CONFLICTLOCAL

2021-01-28 01:12:09 126 1

原创 [linux]包裝 cpp檔案讓純c編譯器編譯

[linux]包裝 cpp檔案讓純c編譯器編譯文章目录[linux]包裝 cpp檔案讓純c編譯器編譯用詞說明架構圖狀況一:狀況二:步驟參考許多嵌入式平台只有純c 編譯器,或是因為code size 或執行效率等問題必須使用純c 編譯器,不能使用c++。然而許多原始碼是用c++撰寫,看了不能用很可惜,總不可能看到一個就自己用c實現一次吧 ?本文提供一方法將c++ 原始碼檔案可以用c編譯。一言以蔽之:**需要使用 c++ wrapper 的方式將 c++ files compile to shared

2021-01-27 16:56:44 161

原创 Linux環境變數作用域問題

一般嵌入式系統在OS 裡面會設置環境變量,至少有:LIB=/system/lib 之類的,但如果在其他bin 有如下代碼:...system("do-some-exec-or-some-shell-script");...是 不會 參考到環境變量的,因此如果關連到某些庫函數之類的就會執行失敗,因此要加上....system("export LIB=/system/lib); /*或其他的環境變量*/system("do-some-exec-or-some-shell-script");.

2021-01-27 16:32:04 90

原创 CMAKE 交叉編譯

CMAKE 交叉編譯文章目录CMAKE 交叉編譯前言CMAKE necessary filesCMakeList.txttoolchain.cmakeexample for arm-xxxx-linux platform步驟前言需要include open source 的時候,有兩種常見的cross compile 的設定方式:cmake 有公開標準,比較容易自行擴充到不同的平台上Makefile + configureCMAKE necessary filesCMakeList.txt

2021-01-27 15:02:55 1974

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除