{"action":"created","comment":{"url":"https://api.github.com/repos/EmpireProject/Empire/pulls/comments/177798561","pull_request_review_id":107736890,"id":177798561,"diff_hunk":"@@ -142,6 +155,23 @@ def random_string(length=-1, charset=string.ascii_letters):\n     random_string = ''.join(random.choice(charset) for x in range(length))\n     return random_string\n \n+\"\"\"\n+Take in a powershell string or stringable object and split it un with plus chars\n+\"\"\"\n+def split_up_strings(data):\n+    min_num_of_loop = random.randint(1,len(data))\n+    max_num_of_loop = random.randint(min_num_of_loop,len(data))\n+    for i in range(min_num_of_loop,max_num_of_loop):\n+        if data[i] == re.sub('[^a-zZA-Z]') and data[i-1] == re.sub('[^a-zZA-Z]') and data[i+1] == re.sub('[^a-zZA-Z]'):\n+            data='\\''+data[:i] +'\\'+\\''+data[i:]+'\\''\n+    return data\n+\n+\"\"\"\n+Randomize the name of variables in any script and have them return the same value repeatably\n+\"\"\"\n+def generate_random_script_var_name(origvariname):","path":"lib/common/helpers.py","position":47,"original_position":47,"commit_id":"0ebef7551139b0deb714964c5767af5d8f941196","original_commit_id":"0ebef7551139b0deb714964c5767af5d8f941196","user":{"login":"mr64bit","id":2191440,"avatar_url":"https://avatars0.githubusercontent.com/u/2191440?v=4","gravatar_id":"","url":"https://api.github.com/users/mr64bit","html_url":"https://github.com/mr64bit","followers_url":"https://api.github.com/users/mr64bit/followers","following_url":"https://api.github.com/users/mr64bit/following{/other_user}","gists_url":"https://api.github.com/users/mr64bit/gists{/gist_id}","starred_url":"https://api.github.com/users/mr64bit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mr64bit/subscriptions","organizations_url":"https://api.github.com/users/mr64bit/orgs","repos_url":"https://api.github.com/users/mr64bit/repos","events_url":"https://api.github.com/users/mr64bit/events{/privacy}","received_events_url":"https://api.github.com/users/mr64bit/received_events","type":"User","site_admin":false},"body":"A global option to disable this would be nice. (for debugging and such)","created_at":"2018-03-28T15:50:56Z","updated_at":"2018-03-28T15:55:50Z","html_url":"https://github.com/EmpireProject/Empire/pull/1050#discussion_r177798561","pull_request_url":"https://api.github.com/repos/EmpireProject/Empire/pulls/1050","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/EmpireProject/Empire/pulls/comments/177798561"},"html":{"href":"https://github.com/EmpireProject/Empire/pull/1050#discussion_r177798561"},"pull_request":{"href":"https://api.github.com/repos/EmpireProject/Empire/pulls/1050"}}},"pull_request":{"url":"https://api.github.com/repos/EmpireProject/Empire/pulls/1050","id":177886494,"html_url":"https://github.com/EmpireProject/Empire/pull/1050","diff_url":"https://github.com/EmpireProject/Empire/pull/1050.diff","patch_url":"https://github.com/EmpireProject/Empire/pull/1050.patch","issue_url":"https://api.github.com/repos/EmpireProject/Empire/issues/1050","number":1050,"state":"open","locked":false,"title":"Listener randomization and helper additions","user":{"login":"ceramicskate0","id":6934294,"avatar_url":"https://avatars0.githubusercontent.com/u/6934294?v=4","gravatar_id":"","url":"https://api.github.com/users/ceramicskate0","html_url":"https://github.com/ceramicskate0","followers_url":"https://api.github.com/users/ceramicskate0/followers","following_url":"https://api.github.com/users/ceramicskate0/following{/other_user}","gists_url":"https://api.github.com/users/ceramicskate0/gists{/gist_id}","starred_url":"https://api.github.com/users/ceramicskate0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceramicskate0/subscriptions","organizations_url":"https://api.github.com/users/ceramicskate0/orgs","repos_url":"https://api.github.com/users/ceramicskate0/repos","events_url":"https://api.github.com/users/ceramicskate0/events{/privacy}","received_events_url":"https://api.github.com/users/ceramicskate0/received_events","type":"User","site_admin":false},"body":"Added repeatable random vari name generation to listeners via method in helpers class (method can be used in any PS script).This way operators dont have to.\r\n\r\nAdded idea for the TODO in default_page()( not implemented in code via if statement)\r\n\r\nAdded method replace_double_to_single_quotes(data) (not implemented in code)\r\n\r\nAdded method in helpers to split_up_strings() (not implemented in code)","created_at":"2018-03-27T22:50:54Z","updated_at":"2018-03-28T15:55:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6dc1efd71723396cc4bda0cbe234ae7881f13019","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/EmpireProject/Empire/pulls/1050/commits","review_comments_url":"https://api.github.com/repos/EmpireProject/Empire/pulls/1050/comments","review_comment_url":"https://api.github.com/repos/EmpireProject/Empire/pulls/comments{/number}","comments_url":"https://api.github.com/repos/EmpireProject/Empire/issues/1050/comments","statuses_url":"https://api.github.com/repos/EmpireProject/Empire/statuses/0ebef7551139b0deb714964c5767af5d8f941196","head":{"label":"ceramicskate0:master","ref":"master","sha":"0ebef7551139b0deb714964c5767af5d8f941196","user":{"login":"ceramicskate0","id":6934294,"avatar_url":"https://avatars0.githubusercontent.com/u/6934294?v=4","gravatar_id":"","url":"https://api.github.com/users/ceramicskate0","html_url":"https://github.com/ceramicskate0","followers_url":"https://api.github.com/users/ceramicskate0/followers","following_url":"https://api.github.com/users/ceramicskate0/following{/other_user}","gists_url":"https://api.github.com/users/ceramicskate0/gists{/gist_id}","starred_url":"https://api.github.com/users/ceramicskate0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceramicskate0/subscriptions","organizations_url":"https://api.github.com/users/ceramicskate0/orgs","repos_url":"https://api.github.com/users/ceramicskate0/repos","events_url":"https://api.github.com/users/ceramicskate0/events{/privacy}","received_events_url":"https://api.github.com/users/ceramicskate0/received_events","type":"User","site_admin":false},"repo":{"id":124123185,"name":"Empire","full_name":"ceramicskate0/Empire","owner":{"login":"ceramicskate0","id":6934294,"avatar_url":"https://avatars0.githubusercontent.com/u/6934294?v=4","gravatar_id":"","url":"https://api.github.com/users/ceramicskate0","html_url":"https://github.com/ceramicskate0","followers_url":"https://api.github.com/users/ceramicskate0/followers","following_url":"https://api.github.com/users/ceramicskate0/following{/other_user}","gists_url":"https://api.github.com/users/ceramicskate0/gists{/gist_id}","starred_url":"https://api.github.com/users/ceramicskate0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceramicskate0/subscriptions","organizations_url":"https://api.github.com/users/ceramicskate0/orgs","repos_url":"https://api.github.com/users/ceramicskate0/repos","events_url":"https://api.github.com/users/ceramicskate0/events{/privacy}","received_events_url":"https://api.github.com/users/ceramicskate0/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ceramicskate0/Empire","description":"Empire is a PowerShell and Python post-exploitation agent.","fork":true,"url":"https://api.github.com/repos/ceramicskate0/Empire","forks_url":"https://api.github.com/repos/ceramicskate0/Empire/forks","keys_url":"https://api.github.com/repos/ceramicskate0/Empire/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ceramicskate0/Empire/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ceramicskate0/Empire/teams","hooks_url":"https://api.github.com/repos/ceramicskate0/Empire/hooks","issue_events_url":"https://api.github.com/repos/ceramicskate0/Empire/issues/events{/number}","events_url":"https://api.github.com/repos/ceramicskate0/Empire/events","assignees_url":"https://api.github.com/repos/ceramicskate0/Empire/assignees{/user}","branches_url":"https://api.github.com/repos/ceramicskate0/Empire/branches{/branch}","tags_url":"https://api.github.com/repos/ceramicskate0/Empire/tags","blobs_url":"https://api.github.com/repos/ceramicskate0/Empire/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ceramicskate0/Empire/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ceramicskate0/Empire/git/refs{/sha}","trees_url":"https://api.github.com/repos/ceramicskate0/Empire/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ceramicskate0/Empire/statuses/{sha}","languages_url":"https://api.github.com/repos/ceramicskate0/Empire/languages","stargazers_url":"https://api.github.com/repos/ceramicskate0/Empire/stargazers","contributors_url":"https://api.github.com/repos/ceramicskate0/Empire/contributors","subscribers_url":"https://api.github.com/repos/ceramicskate0/Empire/subscribers","subscription_url":"https://api.github.com/repos/ceramicskate0/Empire/subscription","commits_url":"https://api.github.com/repos/ceramicskate0/Empire/commits{/sha}","git_commits_url":"https://api.github.com/repos/ceramicskate0/Empire/git/commits{/sha}","comments_url":"https://api.github.com/repos/ceramicskate0/Empire/comments{/number}","issue_comment_url":"https://api.github.com/repos/ceramicskate0/Empire/issues/comments{/number}","contents_url":"https://api.github.com/repos/ceramicskate0/Empire/contents/{+path}","compare_url":"https://api.github.com/repos/ceramicskate0/Empire/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ceramicskate0/Empire/merges","archive_url":"https://api.github.com/repos/ceramicskate0/Empire/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ceramicskate0/Empire/downloads","issues_url":"https://api.github.com/repos/ceramicskate0/Empire/issues{/number}","pulls_url":"https://api.github.com/repos/ceramicskate0/Empire/pulls{/number}","milestones_url":"https://api.github.com/repos/ceramicskate0/Empire/milestones{/number}","notifications_url":"https://api.github.com/repos/ceramicskate0/Empire/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ceramicskate0/Empire/labels{/name}","releases_url":"https://api.github.com/repos/ceramicskate0/Empire/releases{/id}","deployments_url":"https://api.github.com/repos/ceramicskate0/Empire/deployments","created_at":"2018-03-06T18:45:39Z","updated_at":"2018-03-27T22:55:40Z","pushed_at":"2018-03-27T22:55:17Z","git_url":"git://github.com/ceramicskate0/Empire.git","ssh_url":"git@github.com:ceramicskate0/Empire.git","clone_url":"https://github.com/ceramicskate0/Empire.git","svn_url":"https://github.com/ceramicskate0/Empire","homepage":"http://www.powershellempire.com/","size":20716,"stargazers_count":0,"watchers_count":0,"language":"PowerShell","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"EmpireProject:dev","ref":"dev","sha":"5659be6dbd8873c2f7701c9590642c5056708c9d","user":{"login":"EmpireProject","id":25492515,"avatar_url":"https://avatars3.githubusercontent.com/u/25492515?v=4","gravatar_id":"","url":"https://api.github.com/users/EmpireProject","html_url":"https://github.com/EmpireProject","followers_url":"https://api.github.com/users/EmpireProject/followers","following_url":"https://api.github.com/users/EmpireProject/following{/other_user}","gists_url":"https://api.github.com/users/EmpireProject/gists{/gist_id}","starred_url":"https://api.github.com/users/EmpireProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmpireProject/subscriptions","organizations_url":"https://api.github.com/users/EmpireProject/orgs","repos_url":"https://api.github.com/users/EmpireProject/repos","events_url":"https://api.github.com/users/EmpireProject/events{/privacy}","received_events_url":"https://api.github.com/users/EmpireProject/received_events","type":"Organization","site_admin":false},"repo":{"id":40262072,"name":"Empire","full_name":"EmpireProject/Empire","owner":{"login":"EmpireProject","id":25492515,"avatar_url":"https://avatars3.githubusercontent.com/u/25492515?v=4","gravatar_id":"","url":"https://api.github.com/users/EmpireProject","html_url":"https://github.com/EmpireProject","followers_url":"https://api.github.com/users/EmpireProject/followers","following_url":"https://api.github.com/users/EmpireProject/following{/other_user}","gists_url":"https://api.github.com/users/EmpireProject/gists{/gist_id}","starred_url":"https://api.github.com/users/EmpireProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmpireProject/subscriptions","organizations_url":"https://api.github.com/users/EmpireProject/orgs","repos_url":"https://api.github.com/users/EmpireProject/repos","events_url":"https://api.github.com/users/EmpireProject/events{/privacy}","received_events_url":"https://api.github.com/users/EmpireProject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/EmpireProject/Empire","description":"Empire is a PowerShell and Python post-exploitation agent.","fork":false,"url":"https://api.github.com/repos/EmpireProject/Empire","forks_url":"https://api.github.com/repos/EmpireProject/Empire/forks","keys_url":"https://api.github.com/repos/EmpireProject/Empire/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EmpireProject/Empire/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EmpireProject/Empire/teams","hooks_url":"https://api.github.com/repos/EmpireProject/Empire/hooks","issue_events_url":"https://api.github.com/repos/EmpireProject/Empire/issues/events{/number}","events_url":"https://api.github.com/repos/EmpireProject/Empire/events","assignees_url":"https://api.github.com/repos/EmpireProject/Empire/assignees{/user}","branches_url":"https://api.github.com/repos/EmpireProject/Empire/branches{/branch}","tags_url":"https://api.github.com/repos/EmpireProject/Empire/tags","blobs_url":"https://api.github.com/repos/EmpireProject/Empire/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EmpireProject/Empire/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EmpireProject/Empire/git/refs{/sha}","trees_url":"https://api.github.com/repos/EmpireProject/Empire/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EmpireProject/Empire/statuses/{sha}","languages_url":"https://api.github.com/repos/EmpireProject/Empire/languages","stargazers_url":"https://api.github.com/repos/EmpireProject/Empire/stargazers","contributors_url":"https://api.github.com/repos/EmpireProject/Empire/contributors","subscribers_url":"https://api.github.com/repos/EmpireProject/Empire/subscribers","subscription_url":"https://api.github.com/repos/EmpireProject/Empire/subscription","commits_url":"https://api.github.com/repos/EmpireProject/Empire/commits{/sha}","git_commits_url":"https://api.github.com/repos/EmpireProject/Empire/git/commits{/sha}","comments_url":"https://api.github.com/repos/EmpireProject/Empire/comments{/number}","issue_comment_url":"https://api.github.com/repos/EmpireProject/Empire/issues/comments{/number}","contents_url":"https://api.github.com/repos/EmpireProject/Empire/contents/{+path}","compare_url":"https://api.github.com/repos/EmpireProject/Empire/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EmpireProject/Empire/merges","archive_url":"https://api.github.com/repos/EmpireProject/Empire/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EmpireProject/Empire/downloads","issues_url":"https://api.github.com/repos/EmpireProject/Empire/issues{/number}","pulls_url":"https://api.github.com/repos/EmpireProject/Empire/pulls{/number}","milestones_url":"https://api.github.com/repos/EmpireProject/Empire/milestones{/number}","notifications_url":"https://api.github.com/repos/EmpireProject/Empire/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EmpireProject/Empire/labels{/name}","releases_url":"https://api.github.com/repos/EmpireProject/Empire/releases{/id}","deployments_url":"https://api.github.com/repos/EmpireProject/Empire/deployments","created_at":"2015-08-05T18:25:57Z","updated_at":"2018-03-28T10:38:37Z","pushed_at":"2018-03-27T22:55:19Z","git_url":"git://github.com/EmpireProject/Empire.git","ssh_url":"git@github.com:EmpireProject/Empire.git","clone_url":"https://github.com/EmpireProject/Empire.git","svn_url":"https://github.com/EmpireProject/Empire","homepage":"http://www.powershellempire.com/","size":20513,"stargazers_count":2889,"watchers_count":2889,"language":"PowerShell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":999,"mirror_url":null,"archived":false,"open_issues_count":15,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":999,"open_issues":15,"watchers":2889,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/EmpireProject/Empire/pulls/1050"},"html":{"href":"https://github.com/EmpireProject/Empire/pull/1050"},"issue":{"href":"https://api.github.com/repos/EmpireProject/Empire/issues/1050"},"comments":{"href":"https://api.github.com/repos/EmpireProject/Empire/issues/1050/comments"},"review_comments":{"href":"https://api.github.com/repos/EmpireProject/Empire/pulls/1050/comments"},"review_comment":{"href":"https://api.github.com/repos/EmpireProject/Empire/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/EmpireProject/Empire/pulls/1050/commits"},"statuses":{"href":"https://api.github.com/repos/EmpireProject/Empire/statuses/0ebef7551139b0deb714964c5767af5d8f941196"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"mr64bit"}}