{"action":"closed","issue":{"url":"https://api.github.com/repos/0xd4d/dnSpy/issues/609","repository_url":"https://api.github.com/repos/0xd4d/dnSpy","labels_url":"https://api.github.com/repos/0xd4d/dnSpy/issues/609/labels{/name}","comments_url":"https://api.github.com/repos/0xd4d/dnSpy/issues/609/comments","events_url":"https://api.github.com/repos/0xd4d/dnSpy/issues/609/events","html_url":"https://github.com/0xd4d/dnSpy/issues/609","id":272958208,"number":609,"title":"Prevent detection of managed debuggers when attaching to a program","user":{"login":"0xd4d","id":1060731,"avatar_url":"https://avatars1.githubusercontent.com/u/1060731?v=4","gravatar_id":"","url":"https://api.github.com/users/0xd4d","html_url":"https://github.com/0xd4d","followers_url":"https://api.github.com/users/0xd4d/followers","following_url":"https://api.github.com/users/0xd4d/following{/other_user}","gists_url":"https://api.github.com/users/0xd4d/gists{/gist_id}","starred_url":"https://api.github.com/users/0xd4d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xd4d/subscriptions","organizations_url":"https://api.github.com/users/0xd4d/orgs","repos_url":"https://api.github.com/users/0xd4d/repos","events_url":"https://api.github.com/users/0xd4d/events{/privacy}","received_events_url":"https://api.github.com/users/0xd4d/received_events","type":"User","site_admin":false},"labels":[{"id":711836745,"url":"https://api.github.com/repos/0xd4d/dnSpy/labels/debugger","name":"debugger","color":"1d76db","default":false},{"id":231200726,"url":"https://api.github.com/repos/0xd4d/dnSpy/labels/up%20for%20grabs","name":"up for grabs","color":"159818","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/0xd4d/dnSpy/milestones/4","html_url":"https://github.com/0xd4d/dnSpy/milestone/4","labels_url":"https://api.github.com/repos/0xd4d/dnSpy/milestones/4/labels","id":2823615,"number":4,"title":"vNext","description":"","creator":{"login":"0xd4d","id":1060731,"avatar_url":"https://avatars1.githubusercontent.com/u/1060731?v=4","gravatar_id":"","url":"https://api.github.com/users/0xd4d","html_url":"https://github.com/0xd4d","followers_url":"https://api.github.com/users/0xd4d/followers","following_url":"https://api.github.com/users/0xd4d/following{/other_user}","gists_url":"https://api.github.com/users/0xd4d/gists{/gist_id}","starred_url":"https://api.github.com/users/0xd4d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xd4d/subscriptions","organizations_url":"https://api.github.com/users/0xd4d/orgs","repos_url":"https://api.github.com/users/0xd4d/repos","events_url":"https://api.github.com/users/0xd4d/events{/privacy}","received_events_url":"https://api.github.com/users/0xd4d/received_events","type":"User","site_admin":false},"open_issues":32,"closed_issues":4,"state":"open","created_at":"2017-10-09T05:53:48Z","updated_at":"2017-11-12T14:31:25Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2017-11-10T14:57:13Z","updated_at":"2017-11-12T14:31:25Z","closed_at":"2017-11-12T14:31:25Z","author_association":"OWNER","body":"Compile, run, attach to it\r\n\r\n```C#\r\nusing System;\r\nusing System.Diagnostics;\r\nusing System.Threading;\r\n\r\nnamespace ConsoleApp1 {\r\n\tclass Program {\r\n\t\tstatic void Main(string[] args) {\r\n\t\t\tConsole.WriteLine(\"Hello!\");\r\n\t\t\tfor (int i = 0; i < int.MaxValue; i++) {\r\n\t\t\t\tConsole.Write(\".\");\r\n\t\t\t\tif (Debugger.IsAttached) {\r\n\t\t\t\t\tConsole.WriteLine(\"\\nDetected an evil debugger, exiting now!!!\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tThread.Sleep(500);\r\n\t\t\t}\r\n\t\t\tConsole.WriteLine(\"Bye!\");\r\n\t\t}\r\n\t}\r\n}\r\n\r\n```\r\n\r\nShould be easy, see `DbgEngineImpl`'s `StartCore()` and `AttachCore()`"}}
{"actor":{"display_login":"0xd4d"}}