{"action":"created","issue":{"url":"https://api.github.com/repos/PowerShellEmpire/PowerTools/issues/47","labels_url":"https://api.github.com/repos/PowerShellEmpire/PowerTools/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/PowerShellEmpire/PowerTools/issues/47/comments","events_url":"https://api.github.com/repos/PowerShellEmpire/PowerTools/issues/47/events","html_url":"https://github.com/PowerShellEmpire/PowerTools/issues/47","id":105980273,"number":47,"title":"Get-Proxy settings","user":{"login":"Meatballs1","id":1854557,"avatar_url":"https://avatars.githubusercontent.com/u/1854557?v=3","gravatar_id":"","url":"https://api.github.com/users/Meatballs1","html_url":"https://github.com/Meatballs1","followers_url":"https://api.github.com/users/Meatballs1/followers","following_url":"https://api.github.com/users/Meatballs1/following{/other_user}","gists_url":"https://api.github.com/users/Meatballs1/gists{/gist_id}","starred_url":"https://api.github.com/users/Meatballs1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Meatballs1/subscriptions","organizations_url":"https://api.github.com/users/Meatballs1/orgs","repos_url":"https://api.github.com/users/Meatballs1/repos","events_url":"https://api.github.com/users/Meatballs1/events{/privacy}","received_events_url":"https://api.github.com/users/Meatballs1/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-11T09:58:43Z","updated_at":"2015-09-12T22:41:14Z","closed_at":"2015-09-12T22:41:14Z","body":"Something along the lines of:\r\n\r\n```\r\nfunction Get-Proxy {\r\n$reg2 = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey('CurrentUser', $env:COMPUTERNAME)\r\n$regkey2 = $reg2.OpenSubkey(\"SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Internet Settings\")\r\n$proxy_server $regkey2.GetValue('ProxyServer')\r\n$url = $regkey2.GetValue('AutoConfigURL')\r\n$wpad = (new-object net.webclient).downloadstring($url)\r\nWrite-Host $proxy_server\r\nWrite-Host $u\r\nWrite-Host $wpad\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/PowerShellEmpire/PowerTools/issues/comments/139825718","html_url":"https://github.com/PowerShellEmpire/PowerTools/issues/47#issuecomment-139825718","issue_url":"https://api.github.com/repos/PowerShellEmpire/PowerTools/issues/47","id":139825718,"user":{"login":"HarmJ0y","id":5504523,"avatar_url":"https://avatars.githubusercontent.com/u/5504523?v=3","gravatar_id":"","url":"https://api.github.com/users/HarmJ0y","html_url":"https://github.com/HarmJ0y","followers_url":"https://api.github.com/users/HarmJ0y/followers","following_url":"https://api.github.com/users/HarmJ0y/following{/other_user}","gists_url":"https://api.github.com/users/HarmJ0y/gists{/gist_id}","starred_url":"https://api.github.com/users/HarmJ0y/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HarmJ0y/subscriptions","organizations_url":"https://api.github.com/users/HarmJ0y/orgs","repos_url":"https://api.github.com/users/HarmJ0y/repos","events_url":"https://api.github.com/users/HarmJ0y/events{/privacy}","received_events_url":"https://api.github.com/users/HarmJ0y/received_events","type":"User","site_admin":false},"created_at":"2015-09-12T22:41:14Z","updated_at":"2015-09-12T22:41:14Z","body":"Added to the 2.0 branch https://github.com/PowerShellEmpire/PowerTools/commit/90888d5e1d1266f67aaad901c4654bf3c1ad9865\r\n\r\nWhat is the main difference between the above approach and this one? https://github.com/rapid7/metasploit-framework/blob/master/modules/post/windows/manage/clone_proxy_settings.rb#L111"}}