9X 용 드라이버 개발해 본지가 호랑이 담배 필적이라...아주 잊고 있었는데..
(조금)아는 분이랑 메신저 대화하다가.. 9X 커널모드에서 타 프로세스 ID 얻는 방법이 갑자기 궁금해졌습니다.
분명 2X 계열과는 틀렸었는데(커널모드에서 얻은 프로세스 ID와 유저모드의 프로세스 ID가 매치되지 않는)... '뭐였지?' 하면서 기억들 더듬 더듬...

1. 유저모드에서 얻은 자기 자신 프로세스 ID를 드라이버로 보냅니다.
2. 커널모드에서 1. 번에서 프로세스 ID를 보내온 프로세스(자기 자신) 핸들을 얻습니다.
    - VWIN32_GetCurrentProcessHandle() 함수를 이용해서 유저모드(Ring 3) 프로세스 핸들을 얻습니다.
3. 1번의 유저모드의 프로세스 ID와 2번의 커널모드 프로세스 핸들을 '^' 연산을 해서 Obsfuscator를 얻습니다.
    - 예) ULONG AppProcessID : 유저모드 프로세스 ID
            PVOID ProcessHandle : 커널모드 프로세스 핸들
            ProcessHandle = VWIN32_GetCurrentProcessHandle();
            ULONG Obsfuscator = (ULONG)ProcessHandle ^ AppProcessID;
4. 이제 필터 드라이버(파일 시스템이든 TDI 레이어 이든)등에서 특정 연산을 호출하는 프로세스의 프로세스 ID는 해당 연산에서 얻어진 프로세스 핸들과 Obsfuscator를 '^' 연산을 통해 얻어질 수 있습니다.
     - 예) PVOID CurrentProcessHandle = VWIN32_GetCurrentProcessHandle();
            ULONG CurrentProcessID = (ULONG)CurrentProcessHandle ^ Obsfuscator;

요새는 거의 9X 용 드라이버를 개발하는 경우가 없으실테니 필요가 없는 내용일 것입니다.
더군다나 맞는지도 모르겠고.. 확인해볼 플랫폼이나 테스트 해 볼 9X용 드라이버도 없으니..

지금 돌이켜보면 9X 용 드라이버 개발할때가 참 색다른 맛이 있었던것 같네요.
WDM 이다 WDF 다 하면서 점점 드라이버 개발 진입이 쉬워지기는 하지만.. 그래도 나름 그때가 묘한 매력이 있었던것 같습니다.

2007/11/20 01:05 2007/11/20 01:05
키눅스 이 작성.

Trackback URL : http://kinux.comgosu.net/trackback/305

  1. Viagra on line.

    Tracked from Viagra hgh. 2010/01/05 09:27 Löschung

    Purchase viagra. Viagra.

  2. Yaz reviews.

    Tracked from Yaz. 2010/01/25 19:21 Löschung

    Yaz birth control pill. Yaz birth control reviews. Yaz. Yaz for pms. Birthcontroll yaz. Yaz birth control. Yaz prementrual dysphoric disorder.

  3. Yaz.

    Tracked from Yaz. 2010/01/25 20:12 Löschung

    Yaz.

  4. When will generic topamax be available.

    Tracked from Topamax. 2010/01/26 05:54 Löschung

    Topamax. Side effects of the drug topamax.

  5. Valtrex.

    Tracked from Buy valtrex at msn. 2010/01/26 16:17 Löschung

    Side effects of valtrex. Valtrex. Valtrex and achne. Valtrex use during pregnancy. Valtrex and weight loss. Buy valtrex.

  6. Zydone.

    Tracked from Zydone. 2010/01/27 02:24 Löschung

    Zydone.

  7. Vyvanse.

    Tracked from Vyvanse. 2010/01/27 20:56 Löschung

    Vyvanse.

  8. Tricor vs lopid.

    Tracked from Tricor. 2010/01/28 21:52 Löschung

    Zocor 7 tricor. Tricor.

  9. Zydone.

    Tracked from Zydone. 2010/01/29 18:46 Löschung

    Zydone.

  10. Zyprexa and grapefruit consumption.

    Tracked from Zyprexa lawsuit. 2010/01/30 04:23 Löschung

    Zyprexa.

  11. Wellbutrin xl and results of.

    Tracked from Causes depression wellbutrin effexor. 2010/01/30 18:13 Löschung

    Substitute wellbutrin.

  12. Weight gain and zyprexa.

    Tracked from Zyprexa. 2010/01/31 02:47 Löschung

    Atlanta zyprexa attorneys. Zyprexa. Zyprexa medication. Drug zyprexa. Prescription drug zyprexa. Overdose prozac zyprexa. Zyprexa zydis. Zyprexa recall los angeles.

  13. Topamax mood stabilizer.

    Tracked from Topamax adverse reacton. 2010/02/01 00:02 Löschung

    Topamax dosage for weight loss. Topamax side effects. Topamax when will it help my binging. Topamax waiting for change in appetite. Binge eating topamax. Topamax mood stabilizer. Topamax anxiety side effect. Topamax. Topamax as a mood stableizer.

  14. Zyprexa.

    Tracked from Zyprexa. 2010/02/01 19:28 Löschung

    When will we receive payment for zyprexa. Zyprexa recall california. Atlanta zyprexa attorneys.

  15. Topamax.

    Tracked from Topamax. 2010/02/02 11:14 Löschung

    Longtern side effects of topamax.

  16. Topamax depression.

    Tracked from Topamax 25mg. 2010/02/02 21:26 Löschung

    Topamax sleep. Topamax. Topamax weight loss.

  17. Topamax help you loss weight.

    Tracked from Topamax. 2010/02/05 00:35 Löschung

    Topamax sleep. Topamax. Side effects of the drug topamax. Topamax weight loss. Side effects of topamax.

  18. Tricor patent expiration.

    Tracked from Tricor systems. 2010/02/05 18:59 Löschung

    Tricor and coenzyme q10. Tricor. Tricor medicine.

  19. Pregnancy and topamax.

    Tracked from Topamax. 2010/02/06 08:43 Löschung

    Topamax.

  20. Zydone.

    Tracked from Zydone. 2010/02/06 18:56 Löschung

    Zydone.

  21. Topamax when will it help my binging.

    Tracked from Topamax. 2010/02/07 08:50 Löschung

    Topamax side effects. Topamax as an appetite suppresant. Topamax dreams. Topamax discussion board. Topamax and bipolar disorder. Topamax. Topamax vaginal hemorrhage. Topamax contraindications. Can you take depakote and topamax together.

  22. Yaz.

    Tracked from Yaz birth control pill. 2010/02/08 10:38 Löschung

    Yaz song meanings. Yaz. Yaz birth control. Disadvantages of yaz. Myspace yaz roussia.

  23. Wellbutrin xl 300mg.

    Tracked from Wellbutrin bleeding. 2010/02/08 15:13 Löschung

    Taking wellbutrin and marijuana together. Risks of taking wellbutrin and marijuana together. Anxiety and wellbutrin. Wellbutrin xl make you gain weight. Wellbutrin withdrawal. Wellbutrin xl no prescription. Wellbutrin look pale. Wellbutrin.

  24. Crazy meds wellbutrin.

    Tracked from What is wellbutrin. 2010/02/08 15:15 Löschung

    Recreational wellbutrin. Can i take paxil with wellbutrin. Quit smoking with wellbutrin. Cymbalta versus wellbutrin. When did wellbutrin go generic. What happens when you stop wellbutrin. Loss weight wellbutrin xl.

  25. Topamax.

    Tracked from Topamax side effects. 2010/02/08 16:19 Löschung

    Topamax. Topamax weight loss.

  26. Vytorin.

    Tracked from Hoodia and vytorin interaction. 2010/02/09 02:13 Löschung

    Side effects of vytorin. Any problems with vytorin. Muscle damage from vytorin. Vytorin.

  27. Yaz perfumes.

    Tracked from Yaz music. 2010/02/10 16:01 Löschung

    Yaz birth control pill. Yaz. Yaz nazarali.

  28. Vyvanse.

    Tracked from Vyvanse. 2010/02/11 03:55 Löschung

    Vyvanse.

  29. Side effects of xalatan.

    Tracked from Xalatan. 2010/02/11 08:15 Löschung

    Xalatan. Xalatan alternatives.

  30. Lithium orotate dosage and wellbutrin xr.

    Tracked from Adderall wellbutrin interaction. 2010/02/12 08:37 Löschung

    Drug information wellbutrin. Differences in wellbutrin sr and xl. Child wellbutrin.

  31. Georgia zyprexa lawyers.

    Tracked from Zyprexa. 2010/02/12 10:26 Löschung

    Zyprexa. Prescription drug zyprexa.

  32. Tricor side effects.

    Tracked from Tricor insurance in dubuque. 2010/02/13 06:48 Löschung

    Tricor. Tricor hypertension. Lipitor and tricor.

  33. Yaz.

    Tracked from Yaz birth control. 2010/02/13 08:38 Löschung

    Pregnant while on yaz. Yaz bleeding. Yasmin yaz birth control. Myspace yaz fl. Yaz. Birth control bills yaz. Yaz higher dose.

  34. Norco bike.

    Tracked from City of norco california. 2010/02/13 11:23 Löschung

    Norco. Norco community college. Norco bike.

  35. Valtrex.

    Tracked from Dosage for valtrex. 2010/02/24 12:18 Löschung

    Valtrex interactions. Valtrex 500 mg prescriptions. Valtrex. Valtrex and flu shot. Generic for valtrex.

  36. Can you snort ultram.

    Tracked from Ingredients in ultram. 2010/02/25 05:45 Löschung

    Ultram. Ultram er.

  37. Buy valtrex without prescription.

    Tracked from Valtrex. 2010/02/25 13:45 Löschung

    Valtrex als.

  38. Buy valtrex.

    Tracked from Generic valtrex. 2010/03/08 09:42 Löschung

    Side effects of valtrex. Valtrex. Valtrex valacyclovir.

  39. Klonopin.

    Tracked from Klonopin. 2010/03/08 16:59 Löschung

    Buy klonopin. Klonopin.

  40. Ambien empty stomach.

    Tracked from Ambien next day delivery us. 2010/03/09 08:03 Löschung

    Ambien. Ambien cr and weight loss. Ambien cr.

  41. Pictures of klonopin.

    Tracked from Klonopin. 2010/03/09 16:50 Löschung

    Klonopin. Snorting klonopin.

  42. Valtrex 500mg.

    Tracked from Valtrex. 2010/03/10 09:03 Löschung

    Valtrex. Valtrex side effects.

  43. Ultram er.

    Tracked from Buy ultram international pharmacy. 2010/03/10 18:53 Löschung

    Ultram medicine ultram. Ultram er. Ultram side effects. Ultram fed ex. Ultram dose. Utracet vs ultram. Ultram.

  44. Cheap codeine no prescription.

    Tracked from Acetaminophen codeine phosphate. 2010/03/11 09:18 Löschung

    Cocaine interactions with codeine. Codeine facts. Buy codeine. Codeine. Metabolism of codeine in urine. Codeine dose.

  45. Ultram er.

    Tracked from Ultram er. 2010/03/11 16:56 Löschung

    Ultram. Ultram er. Brand ultram order ultram tramadol pain medicine. Buy ultram cheapest site. Ultram for long term chronic pain. Ultram addiction.

  46. Codeine and buy codeine or codeine cough syrup.

    Tracked from Codeine. 2010/03/12 02:56 Löschung

    Buy 222 codeine. Codeine. Somas with carisoprodol doese t contain codeine. Codeine and pseudoephedrine separation. Codeine false positives.

  47. Does klonopin deplete potassium.

    Tracked from Klonopin. 2010/03/12 18:55 Löschung

    Klonopin side effects. Klonopin lethal dose. Klonopin. Klonopin erectile dysfunction.

  48. Klonopin under eye.

    Tracked from Klonopin generic no prescription. 2010/03/13 08:36 Löschung

    Klonopin side effects. Klonopin and alcoholic. Klonopin delivered overnight. Klonopin.

  49. Valtrex.

    Tracked from Purchase valtrex. 2010/03/13 16:36 Löschung

    Side effects for valtrex. Valtrex 500 mg prescriptions. Valtrex. Valtrex prescription cheap.

  50. Side effects of valtrex.

    Tracked from Valtrex and shingles. 2010/03/14 02:43 Löschung

    How much valtrex do you take for fever blisters. Valtrex.

  51. Klonopin.

    Tracked from Klonopin. 2010/03/15 03:12 Löschung

    Klonopin half life. Klonopin side effects. Klonopin. Snorting klonopin.

  52. Klonopin.

    Tracked from Klonopin withdrawal. 2010/03/15 11:50 Löschung

    Klonopin side effects. Klonopin weight gain. Klonopin.


« Prev : 1 : 2 : 3 : 4 : 5 : 6 : 7 : 8 : 9 : ... 193 : Next »