** Today I Leanerd **

2024_06_14

  • https://spaceraccoon.dev/about/ 他在sg zoom
  • 文件分析blog提纲:
    • golang 类如何找加载、github库
    • pytinstaller类如何解压,版本
    • 脚本类如何解混淆
    • 通用:如何找入口点
    • 工具:tinytracer
    • 工具:hawkeye
    • 工具:floss针对shellcode提取字符串
    • 实现:hyperv shellcode执行
    • 实现:如何把 windefener 数据库用在linux上
  • #emacs 修复 Windows 上 tramp mode 和 waka-time共用时的bug:会尝试调用sh,来执行进程报错,导致文件无法保存
  • #emacs Emacs tips
    • 键盘调出 message 窗口: C-h e
    • 打印调试 : (message "abc: %s" a)

2024_06_13

previous research

- HawkEye.py
	- python HawkEye.py --path kf.exe
	- fork了一份把少量修改提上去了:https://github.com/b1tg/HawkEye 。基本是 2023/07/03改的
- https://github.com/hasherezade/tiny_tracer/issues/33 提issue 增加了 黑名单功能excluded.txt 2023/08/09
- fuzz pdf
  ```
  X:\Green\DynamoRIO-Windows-9.0.1\bin64\drrun.exe -verbose -64 -t drcov — test 1 2
  
  C:\Users\dell\Desktop\DynamoRIO-Windows-8.0.18752\bin64\drrun.exe -verbose -64 -t drcov — "C:\Program Files (x86)\Foxit Software\Foxit PDF Reader\FoxitPDFReader.exe" "C:\Users\dell\Desktop\libreoffice-ano-2.pdf"
  
  
  C:\Users\dell\Desktop\DynamoRIO-Windows-8.0.18752\bin32\drrun.exe -verbose  -t drcov -- "C:\Program Files (x86)\Foxit Software\Foxit PDF Reader\FoxitPDFReader.exe" "C:\Users\dell\Desktop\libreoffice-ano-2.pdf"
  
  
  C:\Users\dell\Desktop\DynamoRIO-Windows-8.0.18752\bin32\drrun.exe -verbose  -t drcov -- "C:\Program Files (x86)\Foxit Software\Foxit PDF Reader\FoxitPDFReader.exe" "C:\Users\dell\Desktop\libreoffice.pdf"
  ```
  • start reading 《SRE book》
  • tailscale 子网功能
    • 子网中一台机器:"C:\Program Files\Tailscale\tailscale.exe" up --advertise-routes=192.168.12.0/24
    • web上勾选确认一下 Subnets
    • 想要用作发起方的机器:sudo tailscale up –accept-routes

2024_06_11

理线头

在虚拟机快照里面看到了一些自己之前的研究尝试,但是都没能落成。

  • tramp bug:写远程大文件时报错,定位到是缺少unix工具
     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    
    Saving file /plink:root@IP:/abc/mixrules.py...
    Renaming /plink:root@IP:/abc/mixrules.py to /plink:root@IP:/abc/mixrules.py~...done
    Warning: Couldn’t find an inline transfer compress command
    Tramp: Encoding local file ‘c:/Users/dear/AppData/Local/Temp/tramp.hDFLyA.py’ using ‘base64-encode-region’...done
    Tramp: Decoding remote file ‘/plink:root@IP:/abc/mixrules.py’ using ‘base64 -d -i >%s’...failed
    Tramp: Opening connection nil for root@IP using plink...done
    Renaming /plink:root@IP:/abc/mixrules.py~ to /plink:root@IP:/abc/mixrules.py...done
    tramp-error: Output file descriptor of *tramp/plink root@IP* is closed
    mouse-minibuffer-check: Minibuffer window is not active
    Mark set [3 times]
    
    • 修复:在PATH中增加 D:\installed\Git\usr\bin\, 主要涉及 base64.exe 和 gzip.exe

2024_06_10

  • 语音转文字(STT) #ai
    • https://huggingface.co/Systran/faster-whisper-large-v3
    • 下载模型及配置文件到m目录下(或者挂代理
    • 测试mp3或者tts类型都支持;Ubuntu+3090效果很好,显存占用4g左右;Windows+CPU 效果不太行,照理说应该只是速度慢一点但是结果都不一样,可能是库版本有偏差吧;
    •  1
       2
       3
       4
       5
       6
       7
       8
       9
      10
      11
      12
      13
      14
      
      # pip install faster_whisper
      from faster_whisper import WhisperModel
      
      # model = WhisperModel("large-v3") # 自动下载模型
      # 读 venv/lib/python3.9/site-packages/faster_whisper/transcribe.py
      model = WhisperModel("m") # 本地离线目录
      
      fw = open("results.txt", "w")
      #segments, info = model.transcribe("audio.mp3")
      segments, info = model.transcribe("a.bin")
      for segment in segments:
          line = "[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text)
          print(line)
          fw.write(line+"\n")
      
    • 来源:最近爆火的tts(ChatTTS)出来之后,我就感觉肯定也有stt 搜到 https://github.com/jianchang512/stt 这个 wrapper,找到了背后用的模型

2024_06_06

  • wget proxy #card
    • 1
      
      wget -e use_proxy=yes -e http_proxy=$proxy http://askubuntu.com
      
  • 迁移emacs 配置
    • 复制 init.el, priv.el, mannual-plugins/
    • M-x package-install-selected-packages

    -

2024_06_05

2024_06_04

  • 命令行编译 visual studio
    • msbuild -p:configuration=“release”
  • emacs-replace-vim
    • 复制行yy
      • C-d
         1
         2
         3
         4
         5
         6
         7
         8
         9
        10
        
        (defun duplicate-line()
          (interactive)
          (move-beginning-of-line 1)
          (kill-line)
          (yank)
          (open-line 1)
          (next-line 1)
          (yank)
        )
        (global-set-key (kbd "C-d") 'duplicate-line)
        
    • 文件头尾gg/G: M-< / M->
      -

2024_04_11

  • top dawg? under dog
    • no midclass

2024_04_10

  • mode:
    • view mode VS solve mode

2024_04_09

  • High Agency
    • image.png

2023_11_24

  • week 秩序建立

2023_11_17

  • realize true of work collapsed:: true
    • work stack
    • chance
    • ability
    • people
  • reducing of talk after grad

2023_11_15

  • track
    • 看报告 14:10

2023_11_14

  • [issues/golang-调度方法]
  • [[plan]]
    • 2023-11-14 CS

  • TODO Dtrace

2023_11_13

  • what-if
  • [[plan]]
    • 2023-11-13 issue 1468943

      • https://bugs.chromium.org/p/chromium/issues/detail?id=1468943
      • 描述:在promise 过程中,数组 shift 导致内存重新分配,而原来的context仍然引用 数组旧位置,导致悬挂指针
      • 不懂:内存结构、poc中promise代码的逻辑,文章里面说是回调里面shift但poc里面是构造器里面shift
      • 后续:可能要等exp或者暂时放着

2023_11_09

2023_11_08

  • 没有摄取有价值的信息,等于浪费精力
  • TODO 如何判断一个ip是内网地址还是公网地址,如果在路由器上配”公网“地址,有什么副作用
  • TODO https手动解密

2023_11_06

  • [[ll/tcpip]]
  • [[ll/kernel]]
  • [[ll/libc]]
  • [[ll/vm]]

2023_11_05

  • https://it-notes.dragas.net/2022/01/24/why-were-migrating-many-of-our-servers-from-linux-to-freebsd/ [[tech/random]]
    • 哲学方便比linux更加注重一致性
    • 网络栈比linux更好,Meta 多年来一直致力于将 Linux 网络堆栈的性能提升到 FreeBSD 的水平
    • Netflix 在其边缘节点上使用 FreeBSD(重量级客户)
    • 不能用docker(惨)
    • FreeBSD? 够用! 但有所有小众技术栈的缺点,招聘难
  • 精致有害 [[quote]]

    同样,你必须研究服装穿搭,配饰选择,茶艺要懂一些,红酒要懂,美食也要懂,你算算每年投入的「精致」时间要多少,你的车载这么多东西,怎么能比别人跑得快。[…] 什么是朴拙?朴拙就是极简主义。人生中最重要的事就是做减法,把那些不重要的都砍掉,专注你最重要的目标,一年只完成一两件重要的事,比你规划七八件事都完不成要有意义的多。 https://hwv430.blogspot.com/2021/08/blog-post_14.html?m=1

  • 基础很重要,对计算机世界的透彻才是geohot能在这个时代弄潮的基础
  • [[course/uCore]]
  • TODO 如何实现一个简单的规则引擎 #blog
  • [[priv/cv]]

2023_11_04

  • [[flag/linux]]