Title: System.OverflowException · Issue #6 · plackyhacker/Shellcode-Injection-Techniques · GitHub
Open Graph Title: System.OverflowException · Issue #6 · plackyhacker/Shellcode-Injection-Techniques
X Title: System.OverflowException · Issue #6 · plackyhacker/Shellcode-Injection-Techniques
Description: Atom Bombing Technique Sometimes this line throws an overflow exception: NtQueueApcThread(hThread, pVirtualProtect, (UInt32)codeCave, (IntPtr)shellcode.Length, (Int32)(MemoryProtection.PAGE_EXECUTE_READWRITE)); The original technique use...
Open Graph Description: Atom Bombing Technique Sometimes this line throws an overflow exception: NtQueueApcThread(hThread, pVirtualProtect, (UInt32)codeCave, (IntPtr)shellcode.Length, (Int32)(MemoryProtection.PAGE_EXECUTE...
X Description: Atom Bombing Technique Sometimes this line throws an overflow exception: NtQueueApcThread(hThread, pVirtualProtect, (UInt32)codeCave, (IntPtr)shellcode.Length, (Int32)(MemoryProtection.PAGE_EXECUTE...
Opengraph URL: https://github.com/plackyhacker/Shellcode-Injection-Techniques/issues/6
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"System.OverflowException","articleBody":"**Atom Bombing Technique**\r\n\r\nSometimes this line throws an overflow exception:\r\n```csharp\r\nNtQueueApcThread(hThread, pVirtualProtect, (UInt32)codeCave, (IntPtr)shellcode.Length, (Int32)(MemoryProtection.PAGE_EXECUTE_READWRITE));\r\n```\r\n\r\nThe original technique uses ROP chains to call `VirtualProtect`, as I am only passing the first three parameters to `VirtualProtect` using the `NtQueueApcThread` the stack may be corrupt. Needs further investigation.\r\n\r\n```\r\n**Message**\r\n\"Arithmetic operation resulted in an overflow.\"\tstring\r\n\r\n**Source**\r\n\"mscorlib\"\r\n\r\n**StackTrace**\r\n\"at System.IntPtr.op_Explicit(IntPtr value)\\r\\n at ShellcodeInjectionTechniques.AtomBomb.Run(Process target, Byte[] shellcode) in C:\\\\Users\\\\John\\\\source\\\\repos\\\\ShellcodeInjectionTechniques\\\\ShellcodeInjectionTechniques\\\\Techniques\\\\AtomBomb.cs:line 110\\r\\n at ShellcodeInjectionTechniques.Program.Main(String[] args) in C:\\\\Users\\\\John\\\\source\\\\repos\\\\ShellcodeInjectionTechniques\\\\ShellcodeInjectionTechniques\\\\Program.cs:line 43\"\r\n```\r\n\r\n","author":{"url":"https://github.com/plackyhacker","@type":"Person","name":"plackyhacker"},"datePublished":"2021-10-22T19:36:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/6/Shellcode-Injection-Techniques/issues/6"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7bc701e7-0c3c-9d96-c7dd-d6898b952977 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EE0E:2DA63D:14A2256:1BDC12E:6A595B52 |
| html-safe-nonce | 901ecbd96374743f9779ba213a005254915918b0839282fbcc80a45623b269d3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRTBFOjJEQTYzRDoxNEEyMjU2OjFCREMxMkU6NkE1OTVCNTIiLCJ2aXNpdG9yX2lkIjoiMTIyOTY3NzE1Nzg3Mzk3OTcwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2016632033a5f3ac765273826266006ccfa57a6f6ac0ff1de14b36bd71a68fb2 |
| hovercard-subject-tag | issue:1033892041 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plackyhacker/Shellcode-Injection-Techniques/6/issue_layout |
| twitter:image | https://opengraph.githubassets.com/91a718161b440c5b3558df91fc5b1ca6645da396a7977086ef830b120ee741b7/plackyhacker/Shellcode-Injection-Techniques/issues/6 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/91a718161b440c5b3558df91fc5b1ca6645da396a7977086ef830b120ee741b7/plackyhacker/Shellcode-Injection-Techniques/issues/6 |
| og:image:alt | Atom Bombing Technique Sometimes this line throws an overflow exception: NtQueueApcThread(hThread, pVirtualProtect, (UInt32)codeCave, (IntPtr)shellcode.Length, (Int32)(MemoryProtection.PAGE_EXECUTE... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | plackyhacker |
| hostname | github.com |
| expected-hostname | github.com |
| None | a540949572872b935b393b36db38922db390ae71c859537d741b8f3eb7e545b5 |
| turbo-cache-control | no-preview |
| go-import | github.com/plackyhacker/Shellcode-Injection-Techniques git https://github.com/plackyhacker/Shellcode-Injection-Techniques.git |
| octolytics-dimension-user_id | 42491100 |
| octolytics-dimension-user_login | plackyhacker |
| octolytics-dimension-repository_id | 417025536 |
| octolytics-dimension-repository_nwo | plackyhacker/Shellcode-Injection-Techniques |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 417025536 |
| octolytics-dimension-repository_network_root_nwo | plackyhacker/Shellcode-Injection-Techniques |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f4669eb12cd81bf213b8907a42667725d1583c79 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width