改成main gh api \ -X PATCH \ -H "Accept: application/vnd.github+json" \ /repos/itamiokanjiro/itamiokanjiro.github.io \ -f default_branch=main 22 curl -X PATCH \ -H "Authorization: token 我的token" \ -H "Accept: application/vnd.github+json" \ https://api.github.com/repos/it
rule AdvancedMaliciousUPXExecutable { meta: description = "pico" strings: $upx1 = "UPX0" ascii $upx2 = "UPX1" ascii $upx3 = "UPX!" ascii $mal_str1 = "Cr/p0" ascii wide $mal_str2 = "
git clone 下載目標檔案 git clone https://github.com/D-Sketon/hexo-theme-reimu.git git clone https://github.com/D-Sketon/reimu-template 查看歷史 git log git log --perl-regexp --author='^(?!picoCTF <ops@picoctf\.com>).*$' 切換到 git switch --detach b562f0b425907789d11d2fe2793e67592dc6be93 git swi
重新啟動nginx sudo systemctl restart nginx 設定timedatectl的時間 亞洲台北 sudo timedatectl set-timezone Asia/Taipei 開關 自動 更新時間工具 sudo timedatectl set-ntp true sudo timedatectl set-ntp false 調整時間為 sudo date +%T -s "19:59:00" 顯示時間 date 顯示端口有無人使用 sudo netstat -tuln | grep 4000 COMMAND PID USER FD
用 snap 安裝 dotnet-sdk經典模式 –classic表示這個 snap 需要較多系統權限,允許比較自由的存取系統檔案,類似傳統安裝方式 sudo snap install dotnet-sdk --classic 建立一個別名 (alias),讓你用更簡短的指令呼叫 snap 裡的程式。使我能輸入dotnet 調用 sudo snap alias dotnet-sdk.dotnet dotnet 驗證安裝 dotnet --version 開啟 dotnet 第二個網站.dll windows中執行 Add-Migration InitialCreate dotnet e
hexo new創建一個新文章名為666 hexo new "666" chmod 777 -R /home/hacker123/kok/CTF/HEXO hexo g建置 並且cp -r 複製所有public/ 目錄下的檔案 發送到/var/www/html3/ hexo g && cp -r public/* /var/www/html2/ hexo 初始化 hexo init npm install 根據當前資料夾中的package.json
tmux attach -t 進入目標 名為hexo tmux attach -t hexo tmux new -s創建一個會話 名為hexo tmux new -s hexo tmux kill-session -t 刪除名為hexo的會話 tmux kill-session -t hexo 進出 ctrl+b 再按d 切換到編號1的視窗 tmux select-window -t hexo:1 刪除編號1的視窗 tmux kill-window -t hexo:1
grep只能找內容-r = 循環所有子目錄-a 是讓 grep 把二進位檔(binary files)當成純文字檔來讀取~/ 是要搜尋的目錄路徑 ~ 代表使用者家目錄 如果目錄有空格要用\ 區隔 grep -a -r “uuuuutest” ~/ grep -r “vmail” /etc grep -ri “vmail 1” /etcgrep -r “Invalid Supabase token teamID. authorization header is missing” /kok/todo-api&
Android Stadio的Logcat監聽手機jadx開啟目標應用 全為java語言 特徵 每個檔案只能有一個類 類與檔案名相同 R.string.password代表 res/values/string.xml/password條件運算子(? :) public class FlagstaffHill { public static native String fenugreek(String str); public static String getFlag(String input, Context ctx) {
先定義一個表scrambledSegments再定義一個地圖orderMap再定義一個方法restorePassword const scrambledSegments = [ 'lz_b', 'no_c', 'CTF{', 'pico', '706c', '5}', 'ts_p', 'lien', ]; const orderMap = [3, 2, 1, 7, 6, 0, 4, 5]; function restorePassword(sc