Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

Start_up

*Đối với windows

- Thay đổi registry để khởi động cùng window

HKLM(HKCU)\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

Hoặc ghi đè

Thay đổi registry service

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\servicename

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Svchost

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\servicename\Parameters\\
ServiceDll

- Sử dụng thư mục startup

Gõ lệnh shell:startup trong Run để tới thư mục


Có thể tạo short cut và để vào đây, window sẽ mở khi mở máy.

- Sử dụng File auto.inf của usb

- Lập lịch task

Sử dụng lệnh này để lập task mở edge mỗi 1 phút

Linux

Sử dụng crontab

Dùng lệnh crontab –e để chỉnh sửa


@reboot sẽ chạy lệnh mỗi khi reboot os

Lập lịch cho task

Tạo 1 file service và chạy bằng systemctl và dùng systemctl enable để trigger mỗi khi reboot

Đầu tiên tạo lệnh

Sau đó tạo file name.service và để vào thư mục etc/systemd/system/


Cấu trúc của file

Và path là file lệnh mà ta muốn thực thi

Sau đó dùng lệnh systemctl start malw.service để chạy service và systemctl enable để chạy service
mỗi khi reboot

You might also like