# Notes

## I. Câu lệnh

1. `chmod +x` : cấp quyền chạy cho file
2. `./<file>`: chạy file thực thi trên linux
3. `./<file> <parameter1> <paramenter2> ...` : cú pháp truyền parameter
4. `sudo apt-get install gdb` (nên biết **pwndbg**) cài đặt gdb
5. `upx.exe -d unpackme-upx`: để unpack file

## II. Một số lưu ý khi chơi CTF (chưa lọc)

1. Phần Imports trong IDA sẽ hiển thị những gì mà chương trình lấy vào.
2. Tạo file bimp theo mẫu có thể sử dụng paint (lưu ý đến kích thước của ảnh).

## **X. Một số câu lệnh hữu dụng khi dùng Git**

{% code overflow="wrap" lineNumbers="true" %}

```shell
// tải xuống mã nguồn từ thiết bị từ xa
git clone <link>
// để kiểm tra xem có những branch nào
git branch
// tạo một branch mới 
git branch <branch-name>
// kiểm tra xem có các branch nào đã remove
git branch -r 
// xóa 1 branch
git branch -d <branch-name>
// show commit logs
git log
// hiện thị các thẻ của bạn
git tag
// để chuyển qua lại giữa các 
git checkout
// Cung cấp tất cả các thông tin của nhánh hiện tại
git status
// để thêm một file
git add
// để thêm tất cả các file hay thư mục
git add *
// chèn nội dung giải thích sự thay đổi hoặc phát triển trong mã nguồn
git commit -m
// sau khi commit thì ta sẽ gửi lên máy chủ từ xa
git push
// nhận các bản cập nhật từ xa
git pull
```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://viettaliii.gitbook.io/home/ctf/cheatsheet/notes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
