300x250

All about Programming 20

Windows Driver로 ACPI Table에서 iBFT 정보를 찾는 방법

How to retrieve iBFT Information on UEFI System using Windows Driver. Windows Driver로 ACPI Table에서 iBFT 정보를 얻는 방법에 대한 설명입니다. docs.microsoft.com/en-us/windows-hardware/drivers/ddi/aux_klib/nf-aux_klib-auxklibgetsystemfirmwaretable AuxKlibGetSystemFirmwareTable function (aux_klib.h) - Windows drivers The AuxKlibGetSystemFirmwareTable routine retrieves the specified firmware table from the firmware..

구글 검색 방법 / command(커맨드) / 검색 식 #1

Command 설명 "서울 맛집" "서울 맛집"과 일치하는 내용을 찾는다. 서울 - 맛집 서울에 관련된 내용을 보여주고, 맛집 관련된 내용은 제외 S20 ₩800,000 S20 가격이 80만원인 사이트를 검색한다. site:tistory.com 서울 맛집 tistory.com 사이트 내에서 서울 맛집을 검색한다. stocks:samsung electronics 삼성전자 추가를 검색한다. 서울 AND 맛집 서울과 맛집 모두 관련된 내용을 검색한다. 서울 OR 맛집 서울, 맛집 각각에 대해서 관련된 내용을 검색한다. 서울*맛집 wild card (*) 자리에 어떤 글자나 문장이 들어가 있는 내용들을 검색 $1 in KRW 1달러를 원화로 변경해서 보여준다.

Linux python hid usb find/open/write

#리눅스에서 USB 장치 동작 시키기 #For Ubuntu import hid import os #fill with the proper data #장치에서 인식 가능한 데이터를 채워넣음 buf = [0x0, 0xff, 0x00, 0x1 ... ] #찾으려는 장치의 vendor id와 product id 입력 vendorID = 0x1234 productID = 0x5678 #hid device가 연결되어 있으면 "path" 정보로 hid device를 open하고, #device를 동작시키기 위한 데이터를 전송한다. (device.write) dev_infos = hid.enumerate(vendorID, productID) dev_dict = dev_infos[0] path_to_open = dev_d..

HID device query/find/send data (USB장치에 데이터 보내기)

For Windows - C based #include extern "C" { #include } #pragma comment (lib, "hid.lib") #pragma comment (lib, "Cfgmgr32.lib") // These are the default device attributes set in the driver which are used to identify the device. // 찾으려고 하는 장치의 vendor id와 product id #define HIDMINI_DEFAULT_PID 0x5678 #define HIDMINI_DEFAULT_VID 0x1234 int main() { GUID hidguid; HANDLE file = INVALID_HANDLE_VALUE; CO..

Windbg 설정

가상 머신을(VirtualBox/Hyper-V) 이용한 Windbg 설정 방법 1) 가상 머신을 만들고, 직렬포트(COM 포트)를 사용할 수 있도록 활성화 시킨다. 2) 포트 번호: COM1 / 포트 모드: 호스트 파이프 / 경로: \\.\pipe\com1으로 설정 VirtualBox의 경우 존재하는 파이프/소켓에 연결 옵션은 체크하지 않음. 3) 가상 머신을(Windows) 시작해서 Windows로 부팅한다. 실행 창을 띄워서 msconfig를 입력 4) 부팅 탭에 고급 옵션을 선택한다. 5) 디버그를 체크/ 디버그 포트 체크/ COM1: 설정 / 전송 속도 체크/ 115200 설정 6) [확인] - [적용] - [재부팅] 7) Windbg 설정 Baud Rate: 115200 입력 / Port: \\..

Windows Class Filter Driver 설치 방법

devcon.exe를 사용한 class filter driver (클래스 필터 드라이버) 설치 방법 디스크 필터 드라이버 diskperf.sys를 disk drive 클래스의 upper filter로 등록하고 삭제하는 명령어 diskperf upper class filter 등록: devcon.exe classfilter diskdrive upper +diskperf diskperf upper class filter 삭제: devcon.exe classfilter diskdrive upper !diskperf 키보드 필터 드라이버 keybdfilter.sys를 keyboard 클래스의 upper filter로 등록하고 삭제하는 명령어 keybdfilter upper class filter 등록: devc..

System Reboot (시스템 재부팅) From Device Driver

- 커널 드라이버에서 Windows 시스템을 재시작 시킬 수 있는 루틴 소개 NTHALAPI VOID HalReturnToFirmware ( IN FIRMWARE_REENTRY Routine ); // Device Driver에서 강제로 시스템을 재시작 시킬 수 있는 루틴 // use one of both functions to restart windows system forcibly. It's only for windows device driver. - HalReturnToFirmware(HalPowerDownRoutine); - HalReturnToFirmware(HalRebootRoutine); * 악용하지 마세요.

Hyper-v can't connect to localhost

Windows 10 Hyper-V Manager: An error occurred while attempting to connect to server "". Check that the Virtual Machine Management service is running and that you are authorized to connect to the server. "서버에 연결하는 동안 오류가 발생했습니다. 가상 컴퓨터 관리 서비스가 실행 중이고 서버에 연결할 권한이 있는지 확인하십시오." Hyper-V 실행 중 로컬 컴퓨터와 연결이 되지 않을 때, 다음 절차를 순서대로 진행. 1. Open Windows Setting (Windows 설정) 2. Click Update & security (업데이트 및 보..

300x250