{"id":140,"date":"2018-01-21T02:27:53","date_gmt":"2018-01-21T02:27:53","guid":{"rendered":"http:\/\/malwrforensics.com\/en\/?p=140"},"modified":"2018-01-21T02:29:23","modified_gmt":"2018-01-21T02:29:23","slug":"kernel-debugging-with-windbg","status":"publish","type":"post","link":"https:\/\/malwrforensics.com\/en\/2018\/01\/21\/kernel-debugging-with-windbg\/","title":{"rendered":"(Kernel) debugging with windbg"},"content":{"rendered":"<p>Set the Windows VM for debugging:<\/p>\n<p><em>\u00a0 \u00a0 bcdedit \/debug on<\/em><\/p>\n<p><em>\u00a0 \u00a0 bcdedit \/dbgsettings serial debugport:1 baudrate:115200<\/em><\/p>\n<p>In the VM settings, associate a pipe to the COM1 port: \\\\.\\\\pipe\\debugk (windows) or \/tmp\/debugk (linux)<\/p>\n<p>&nbsp;<\/p>\n<p>Here is a list of some useful <strong>windbg\u00a0<\/strong>commands:<\/p>\n<p>lm &#8211; list modules<\/p>\n<p>!address &lt;addr&gt; &#8211; show details about <strong>addr<\/strong><\/p>\n<p>!peb &#8211; show PEB structure<\/p>\n<p>dt nt!_eprocess &#8211; view the EPROCESS structure<\/p>\n<p>dt nt!_kprocess &#8211; view the KPROCESS structure<\/p>\n<p>dt nt!_ETHREAD &#8211; view the Executive Thread (ETHREAD) structure<\/p>\n<p>dt nt!_KTHREAD &#8211; view the Kernel Thread (KTHREAD) structure<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Set the Windows VM for debugging: \u00a0 \u00a0 bcdedit \/debug on \u00a0 \u00a0 bcdedit \/dbgsettings serial debugport:1 baudrate:115200 In the VM settings, associate a pipe to the COM1 port: \\\\.\\\\pipe\\debugk (windows) or \/tmp\/debugk (linux) &nbsp; Here is a list of some useful windbg\u00a0commands: lm &#8211; list modules !address &lt;addr&gt; &#8211; show details about addr !peb [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[30,34,33,4],"class_list":["post-140","post","type-post","status-publish","format-standard","hentry","category-security","tag-debugger","tag-kernel","tag-windbg","tag-windows"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[]}},"featured_image_urls_v2":{"full":"","thumbnail":"","medium":"","medium_large":"","large":"","1536x1536":"","2048x2048":""},"post_excerpt_stackable_v2":"<p>Set the Windows VM for debugging: \u00a0 \u00a0 bcdedit \/debug on \u00a0 \u00a0 bcdedit \/dbgsettings serial debugport:1 baudrate:115200 In the VM settings, associate a pipe to the COM1 port: \\\\.\\\\pipe\\debugk (windows) or \/tmp\/debugk (linux) &nbsp; Here is a list of some useful windbg\u00a0commands: lm &#8211; list modules !address &lt;addr&gt; &#8211; show details about addr !peb &#8211; show PEB structure dt nt!_eprocess &#8211; view the EPROCESS structure dt nt!_kprocess &#8211; view the KPROCESS structure dt nt!_ETHREAD &#8211; view the Executive Thread (ETHREAD) structure dt nt!_KTHREAD &#8211; view the Kernel Thread (KTHREAD) structure<\/p>\n","category_list_v2":"<a href=\"https:\/\/malwrforensics.com\/en\/category\/security\/\" rel=\"category tag\">Security<\/a>","author_info_v2":{"name":"malwrforensics","url":"https:\/\/malwrforensics.com\/en\/author\/u_malwrforensics\/"},"comments_num_v2":"0 comments","_links":{"self":[{"href":"https:\/\/malwrforensics.com\/en\/wp-json\/wp\/v2\/posts\/140","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/malwrforensics.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/malwrforensics.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/malwrforensics.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/malwrforensics.com\/en\/wp-json\/wp\/v2\/comments?post=140"}],"version-history":[{"count":3,"href":"https:\/\/malwrforensics.com\/en\/wp-json\/wp\/v2\/posts\/140\/revisions"}],"predecessor-version":[{"id":143,"href":"https:\/\/malwrforensics.com\/en\/wp-json\/wp\/v2\/posts\/140\/revisions\/143"}],"wp:attachment":[{"href":"https:\/\/malwrforensics.com\/en\/wp-json\/wp\/v2\/media?parent=140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/malwrforensics.com\/en\/wp-json\/wp\/v2\/categories?post=140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/malwrforensics.com\/en\/wp-json\/wp\/v2\/tags?post=140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}