{"action":"created","comment":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments/79702213","id":79702213,"diff_hunk":"@@ -0,0 +1,60 @@\n+\n+## Verification Steps\n+\n+  1. Start msfconsole\n+  2. Do: ```use auxiliary/server/socks4a```\n+  3. Do: ```run```\n+  4. Do: ```curl --proxy socks4a://localhost:1080 https://github.com```\n+  5. You should see the source for the github homepage\n+\n+## Options\n+\n+  **SRVHOST**\n+\n+  The local IP address to bind the proxy to. The default value of `0.0.0.0` will expose the proxy to everything on the attackers network.\n+\n+  **SRVPORT**\n+\n+  The local port to bind the proxy to. The default value is `1080`, the standard port for a SOCKS4a proxy.\n+\n+## Scenarios\n+\n+  This module is great when pivoting across a network. Suppose we have two machines:\n+\n+  1. Attackers machine, on the `192.168.1.0/24` subnet.\n+  2. Victim machine with two network interfaces, one attached to the `192.168.1.0/24` subnet and the other attached to the non-routable `10.0.0.0/24` subnet.\n+\n+  We'll begin by starting the socks4a proxy:\n+  ```\n+  msf > use auxiliary/server/socks4a\n+  msf auxiliary(socks4a) > run\n+  [*] Auxiliary module execution completed\n+  [*] Starting the socks4a proxy server\n+  msf auxiliary(socks4a) >\n+  ```\n+\n+  Preparing to pivot across a network requires us to first establish a meterpreter session on the victim machine. From there, we can use the `autoroute` module to enable access to the non-routable subnet:\n+\n+  ```\n+  meterpreter > run autoroute -s 10.0.0.0/24;","path":"documentation/modules/auxiliary/server/socks4a.md","position":null,"original_position":39,"commit_id":"d1bf7d94bceaf518969c6d25b10247519c107e23","original_commit_id":"e05cac15c61baa0b4cf6f3cc16894f84d3b05286","user":{"login":"wvu-r7","id":4551878,"avatar_url":"https://avatars.githubusercontent.com/u/4551878?v=3","gravatar_id":"","url":"https://api.github.com/users/wvu-r7","html_url":"https://github.com/wvu-r7","followers_url":"https://api.github.com/users/wvu-r7/followers","following_url":"https://api.github.com/users/wvu-r7/following{/other_user}","gists_url":"https://api.github.com/users/wvu-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/wvu-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wvu-r7/subscriptions","organizations_url":"https://api.github.com/users/wvu-r7/orgs","repos_url":"https://api.github.com/users/wvu-r7/repos","events_url":"https://api.github.com/users/wvu-r7/events{/privacy}","received_events_url":"https://api.github.com/users/wvu-r7/received_events","type":"User","site_admin":false},"body":"More info here: https://github.com/rapid7/metasploit-framework/wiki/How-to-get-started-with-writing-a-Meterpreter-script.","created_at":"2016-09-20T20:18:40Z","updated_at":"2016-09-20T20:18:40Z","html_url":"https://github.com/rapid7/metasploit-framework/pull/7340#discussion_r79702213","pull_request_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/7340","_links":{"self":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments/79702213"},"html":{"href":"https://github.com/rapid7/metasploit-framework/pull/7340#discussion_r79702213"},"pull_request":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/7340"}}},"pull_request":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/7340","id":85866675,"html_url":"https://github.com/rapid7/metasploit-framework/pull/7340","diff_url":"https://github.com/rapid7/metasploit-framework/pull/7340.diff","patch_url":"https://github.com/rapid7/metasploit-framework/pull/7340.patch","issue_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/7340","number":7340,"state":"open","locked":false,"title":"Add KB for auxiliary/server/socks4a","user":{"login":"theninj4","id":3055120,"avatar_url":"https://avatars.githubusercontent.com/u/3055120?v=3","gravatar_id":"","url":"https://api.github.com/users/theninj4","html_url":"https://github.com/theninj4","followers_url":"https://api.github.com/users/theninj4/followers","following_url":"https://api.github.com/users/theninj4/following{/other_user}","gists_url":"https://api.github.com/users/theninj4/gists{/gist_id}","starred_url":"https://api.github.com/users/theninj4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theninj4/subscriptions","organizations_url":"https://api.github.com/users/theninj4/orgs","repos_url":"https://api.github.com/users/theninj4/repos","events_url":"https://api.github.com/users/theninj4/events{/privacy}","received_events_url":"https://api.github.com/users/theninj4/received_events","type":"User","site_admin":false},"body":"Resolves #7140. I'm very open to feedback - if I've missed anything or if this is incorrect in any way, please be brutal - it's the best way to learn :+1: \r\n\r\n## Verification\r\n\r\n- [ ] No typo's\r\n- [ ] Factually correct\r\n- [x] Nothing obvious missing\r\n\r\n\r\n","created_at":"2016-09-19T20:48:46Z","updated_at":"2016-09-20T20:18:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f02936f52b74c1faf7139516b2b051ea1bbad00d","assignee":{"login":"wvu-r7","id":4551878,"avatar_url":"https://avatars.githubusercontent.com/u/4551878?v=3","gravatar_id":"","url":"https://api.github.com/users/wvu-r7","html_url":"https://github.com/wvu-r7","followers_url":"https://api.github.com/users/wvu-r7/followers","following_url":"https://api.github.com/users/wvu-r7/following{/other_user}","gists_url":"https://api.github.com/users/wvu-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/wvu-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wvu-r7/subscriptions","organizations_url":"https://api.github.com/users/wvu-r7/orgs","repos_url":"https://api.github.com/users/wvu-r7/repos","events_url":"https://api.github.com/users/wvu-r7/events{/privacy}","received_events_url":"https://api.github.com/users/wvu-r7/received_events","type":"User","site_admin":false},"assignees":[{"login":"wvu-r7","id":4551878,"avatar_url":"https://avatars.githubusercontent.com/u/4551878?v=3","gravatar_id":"","url":"https://api.github.com/users/wvu-r7","html_url":"https://github.com/wvu-r7","followers_url":"https://api.github.com/users/wvu-r7/followers","following_url":"https://api.github.com/users/wvu-r7/following{/other_user}","gists_url":"https://api.github.com/users/wvu-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/wvu-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wvu-r7/subscriptions","organizations_url":"https://api.github.com/users/wvu-r7/orgs","repos_url":"https://api.github.com/users/wvu-r7/repos","events_url":"https://api.github.com/users/wvu-r7/events{/privacy}","received_events_url":"https://api.github.com/users/wvu-r7/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/7340/commits","review_comments_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/7340/comments","review_comment_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/7340/comments","statuses_url":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/d1bf7d94bceaf518969c6d25b10247519c107e23","head":{"label":"theninj4:socks4a-documentation","ref":"socks4a-documentation","sha":"d1bf7d94bceaf518969c6d25b10247519c107e23","user":{"login":"theninj4","id":3055120,"avatar_url":"https://avatars.githubusercontent.com/u/3055120?v=3","gravatar_id":"","url":"https://api.github.com/users/theninj4","html_url":"https://github.com/theninj4","followers_url":"https://api.github.com/users/theninj4/followers","following_url":"https://api.github.com/users/theninj4/following{/other_user}","gists_url":"https://api.github.com/users/theninj4/gists{/gist_id}","starred_url":"https://api.github.com/users/theninj4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theninj4/subscriptions","organizations_url":"https://api.github.com/users/theninj4/orgs","repos_url":"https://api.github.com/users/theninj4/repos","events_url":"https://api.github.com/users/theninj4/events{/privacy}","received_events_url":"https://api.github.com/users/theninj4/received_events","type":"User","site_admin":false},"repo":{"id":68631659,"name":"metasploit-framework","full_name":"theninj4/metasploit-framework","owner":{"login":"theninj4","id":3055120,"avatar_url":"https://avatars.githubusercontent.com/u/3055120?v=3","gravatar_id":"","url":"https://api.github.com/users/theninj4","html_url":"https://github.com/theninj4","followers_url":"https://api.github.com/users/theninj4/followers","following_url":"https://api.github.com/users/theninj4/following{/other_user}","gists_url":"https://api.github.com/users/theninj4/gists{/gist_id}","starred_url":"https://api.github.com/users/theninj4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theninj4/subscriptions","organizations_url":"https://api.github.com/users/theninj4/orgs","repos_url":"https://api.github.com/users/theninj4/repos","events_url":"https://api.github.com/users/theninj4/events{/privacy}","received_events_url":"https://api.github.com/users/theninj4/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/theninj4/metasploit-framework","description":"Metasploit Framework","fork":true,"url":"https://api.github.com/repos/theninj4/metasploit-framework","forks_url":"https://api.github.com/repos/theninj4/metasploit-framework/forks","keys_url":"https://api.github.com/repos/theninj4/metasploit-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theninj4/metasploit-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theninj4/metasploit-framework/teams","hooks_url":"https://api.github.com/repos/theninj4/metasploit-framework/hooks","issue_events_url":"https://api.github.com/repos/theninj4/metasploit-framework/issues/events{/number}","events_url":"https://api.github.com/repos/theninj4/metasploit-framework/events","assignees_url":"https://api.github.com/repos/theninj4/metasploit-framework/assignees{/user}","branches_url":"https://api.github.com/repos/theninj4/metasploit-framework/branches{/branch}","tags_url":"https://api.github.com/repos/theninj4/metasploit-framework/tags","blobs_url":"https://api.github.com/repos/theninj4/metasploit-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theninj4/metasploit-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theninj4/metasploit-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/theninj4/metasploit-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theninj4/metasploit-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/theninj4/metasploit-framework/languages","stargazers_url":"https://api.github.com/repos/theninj4/metasploit-framework/stargazers","contributors_url":"https://api.github.com/repos/theninj4/metasploit-framework/contributors","subscribers_url":"https://api.github.com/repos/theninj4/metasploit-framework/subscribers","subscription_url":"https://api.github.com/repos/theninj4/metasploit-framework/subscription","commits_url":"https://api.github.com/repos/theninj4/metasploit-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/theninj4/metasploit-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/theninj4/metasploit-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/theninj4/metasploit-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/theninj4/metasploit-framework/contents/{+path}","compare_url":"https://api.github.com/repos/theninj4/metasploit-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theninj4/metasploit-framework/merges","archive_url":"https://api.github.com/repos/theninj4/metasploit-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theninj4/metasploit-framework/downloads","issues_url":"https://api.github.com/repos/theninj4/metasploit-framework/issues{/number}","pulls_url":"https://api.github.com/repos/theninj4/metasploit-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/theninj4/metasploit-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/theninj4/metasploit-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theninj4/metasploit-framework/labels{/name}","releases_url":"https://api.github.com/repos/theninj4/metasploit-framework/releases{/id}","deployments_url":"https://api.github.com/repos/theninj4/metasploit-framework/deployments","created_at":"2016-09-19T17:57:48Z","updated_at":"2016-09-19T17:58:14Z","pushed_at":"2016-09-20T19:08:28Z","git_url":"git://github.com/theninj4/metasploit-framework.git","ssh_url":"git@github.com:theninj4/metasploit-framework.git","clone_url":"https://github.com/theninj4/metasploit-framework.git","svn_url":"https://github.com/theninj4/metasploit-framework","homepage":"http://www.metasploit.com/","size":285704,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rapid7:master","ref":"master","sha":"27018b421c1cd7eae58e9bed46ccfd4597c44730","user":{"login":"rapid7","id":1013671,"avatar_url":"https://avatars.githubusercontent.com/u/1013671?v=3","gravatar_id":"","url":"https://api.github.com/users/rapid7","html_url":"https://github.com/rapid7","followers_url":"https://api.github.com/users/rapid7/followers","following_url":"https://api.github.com/users/rapid7/following{/other_user}","gists_url":"https://api.github.com/users/rapid7/gists{/gist_id}","starred_url":"https://api.github.com/users/rapid7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapid7/subscriptions","organizations_url":"https://api.github.com/users/rapid7/orgs","repos_url":"https://api.github.com/users/rapid7/repos","events_url":"https://api.github.com/users/rapid7/events{/privacy}","received_events_url":"https://api.github.com/users/rapid7/received_events","type":"Organization","site_admin":false},"repo":{"id":2293158,"name":"metasploit-framework","full_name":"rapid7/metasploit-framework","owner":{"login":"rapid7","id":1013671,"avatar_url":"https://avatars.githubusercontent.com/u/1013671?v=3","gravatar_id":"","url":"https://api.github.com/users/rapid7","html_url":"https://github.com/rapid7","followers_url":"https://api.github.com/users/rapid7/followers","following_url":"https://api.github.com/users/rapid7/following{/other_user}","gists_url":"https://api.github.com/users/rapid7/gists{/gist_id}","starred_url":"https://api.github.com/users/rapid7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapid7/subscriptions","organizations_url":"https://api.github.com/users/rapid7/orgs","repos_url":"https://api.github.com/users/rapid7/repos","events_url":"https://api.github.com/users/rapid7/events{/privacy}","received_events_url":"https://api.github.com/users/rapid7/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rapid7/metasploit-framework","description":"Metasploit Framework","fork":false,"url":"https://api.github.com/repos/rapid7/metasploit-framework","forks_url":"https://api.github.com/repos/rapid7/metasploit-framework/forks","keys_url":"https://api.github.com/repos/rapid7/metasploit-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rapid7/metasploit-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rapid7/metasploit-framework/teams","hooks_url":"https://api.github.com/repos/rapid7/metasploit-framework/hooks","issue_events_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/events{/number}","events_url":"https://api.github.com/repos/rapid7/metasploit-framework/events","assignees_url":"https://api.github.com/repos/rapid7/metasploit-framework/assignees{/user}","branches_url":"https://api.github.com/repos/rapid7/metasploit-framework/branches{/branch}","tags_url":"https://api.github.com/repos/rapid7/metasploit-framework/tags","blobs_url":"https://api.github.com/repos/rapid7/metasploit-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rapid7/metasploit-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rapid7/metasploit-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/rapid7/metasploit-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/rapid7/metasploit-framework/languages","stargazers_url":"https://api.github.com/repos/rapid7/metasploit-framework/stargazers","contributors_url":"https://api.github.com/repos/rapid7/metasploit-framework/contributors","subscribers_url":"https://api.github.com/repos/rapid7/metasploit-framework/subscribers","subscription_url":"https://api.github.com/repos/rapid7/metasploit-framework/subscription","commits_url":"https://api.github.com/repos/rapid7/metasploit-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/rapid7/metasploit-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/rapid7/metasploit-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/rapid7/metasploit-framework/contents/{+path}","compare_url":"https://api.github.com/repos/rapid7/metasploit-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rapid7/metasploit-framework/merges","archive_url":"https://api.github.com/repos/rapid7/metasploit-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rapid7/metasploit-framework/downloads","issues_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues{/number}","pulls_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/rapid7/metasploit-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/rapid7/metasploit-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rapid7/metasploit-framework/labels{/name}","releases_url":"https://api.github.com/repos/rapid7/metasploit-framework/releases{/id}","deployments_url":"https://api.github.com/repos/rapid7/metasploit-framework/deployments","created_at":"2011-08-30T06:13:20Z","updated_at":"2016-09-20T19:27:16Z","pushed_at":"2016-09-20T19:33:24Z","git_url":"git://github.com/rapid7/metasploit-framework.git","ssh_url":"git@github.com:rapid7/metasploit-framework.git","clone_url":"https://github.com/rapid7/metasploit-framework.git","svn_url":"https://github.com/rapid7/metasploit-framework","homepage":"http://www.metasploit.com/","size":1413283,"stargazers_count":6656,"watchers_count":6656,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4413,"mirror_url":null,"open_issues_count":335,"forks":4413,"open_issues":335,"watchers":6656,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/7340"},"html":{"href":"https://github.com/rapid7/metasploit-framework/pull/7340"},"issue":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/issues/7340"},"comments":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/issues/7340/comments"},"review_comments":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/7340/comments"},"review_comment":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/7340/commits"},"statuses":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/d1bf7d94bceaf518969c6d25b10247519c107e23"}}}}
{"actor":{"display_login":"wvu-r7"}}