{"action":"created","comment":{"url":"https://api.github.com/repos/scorelab/OpenMF/pulls/comments/316027483","pull_request_review_id":277595023,"id":316027483,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMxNjAyNzQ4Mw==","diff_hunk":"@@ -71,13 +79,23 @@ def collect_data(extract_options, current_session_name):\n     print(REPORT)\n \n \n+def save_report(sn):\n+    db_store_path = ROOT_DIR + SEP + sn\n+    file_path = db_store_path + SEP + 'report.txt'\n+    REPORT.append([\"Case Name\", sn])\n+    write_to_file(file_path, REPORT)\n+\n+\n if __name__ == '__main__':\n     args = sys.argv\n     args_set = set(args)\n \n     if HELP_KEYS & args_set:\n         print(help_str)\n         sys.exit()\n+    elif REPORT_GEN_KEYS & args_set:","path":"collector.py","position":63,"original_position":63,"commit_id":"a6c1d9879375a65b6b207b6036f22e3ded7bde0a","original_commit_id":"a6c1d9879375a65b6b207b6036f22e3ded7bde0a","user":{"login":"Wolf-Legend","id":23487061,"node_id":"MDQ6VXNlcjIzNDg3MDYx","avatar_url":"https://avatars0.githubusercontent.com/u/23487061?v=4","gravatar_id":"","url":"https://api.github.com/users/Wolf-Legend","html_url":"https://github.com/Wolf-Legend","followers_url":"https://api.github.com/users/Wolf-Legend/followers","following_url":"https://api.github.com/users/Wolf-Legend/following{/other_user}","gists_url":"https://api.github.com/users/Wolf-Legend/gists{/gist_id}","starred_url":"https://api.github.com/users/Wolf-Legend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wolf-Legend/subscriptions","organizations_url":"https://api.github.com/users/Wolf-Legend/orgs","repos_url":"https://api.github.com/users/Wolf-Legend/repos","events_url":"https://api.github.com/users/Wolf-Legend/events{/privacy}","received_events_url":"https://api.github.com/users/Wolf-Legend/received_events","type":"User","site_admin":false},"body":"For simplicity, I decided both feature to be separate. But we can add a flag in data extraction for generating report as well along side.","created_at":"2019-08-21T07:10:42Z","updated_at":"2019-08-21T07:10:42Z","html_url":"https://github.com/scorelab/OpenMF/pull/17#discussion_r316027483","pull_request_url":"https://api.github.com/repos/scorelab/OpenMF/pulls/17","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/scorelab/OpenMF/pulls/comments/316027483"},"html":{"href":"https://github.com/scorelab/OpenMF/pull/17#discussion_r316027483"},"pull_request":{"href":"https://api.github.com/repos/scorelab/OpenMF/pulls/17"}},"in_reply_to_id":316024507},"pull_request":{"url":"https://api.github.com/repos/scorelab/OpenMF/pulls/17","id":309316137,"node_id":"MDExOlB1bGxSZXF1ZXN0MzA5MzE2MTM3","html_url":"https://github.com/scorelab/OpenMF/pull/17","diff_url":"https://github.com/scorelab/OpenMF/pull/17.diff","patch_url":"https://github.com/scorelab/OpenMF/pull/17.patch","issue_url":"https://api.github.com/repos/scorelab/OpenMF/issues/17","number":17,"state":"open","locked":false,"title":"Added support of PDF report generation for cases","user":{"login":"Wolf-Legend","id":23487061,"node_id":"MDQ6VXNlcjIzNDg3MDYx","avatar_url":"https://avatars0.githubusercontent.com/u/23487061?v=4","gravatar_id":"","url":"https://api.github.com/users/Wolf-Legend","html_url":"https://github.com/Wolf-Legend","followers_url":"https://api.github.com/users/Wolf-Legend/followers","following_url":"https://api.github.com/users/Wolf-Legend/following{/other_user}","gists_url":"https://api.github.com/users/Wolf-Legend/gists{/gist_id}","starred_url":"https://api.github.com/users/Wolf-Legend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wolf-Legend/subscriptions","organizations_url":"https://api.github.com/users/Wolf-Legend/orgs","repos_url":"https://api.github.com/users/Wolf-Legend/repos","events_url":"https://api.github.com/users/Wolf-Legend/events{/privacy}","received_events_url":"https://api.github.com/users/Wolf-Legend/received_events","type":"User","site_admin":false},"body":"Added support in CLI tool for generating PDF for extracted data session.\r\nExample :\r\nData Extraction\r\n``` \r\npython3 collector.py -o all -sn case-07-james-bond \r\n```\r\nReport Generation\r\n```\r\n python3 collector.py -rp case-07-james-bond \r\n```\r\n\r\nSample Report generated from emulator device\r\n[report.pdf](https://github.com/scorelab/OpenMF/files/3523528/report.pdf)\r\n\r\n\r\nReport contains following details if run on a actual rooted device\r\n\r\n- ADB Serial\r\n- Manufacturer\r\n- Model\r\n- IMEI \r\n- Android Version\r\n- Build Name\r\n- WiFi Mac\r\n- Local Time\r\n- Android Time\r\n- Current Sim Serial Number\r\n- Current Sim Phone Number\r\n- Current Sim Operator Name\r\n- Previous Sim Serial Number\r\n- Previous Sim Phone Number\r\n- Google Accounts","created_at":"2019-08-21T04:17:43Z","updated_at":"2019-08-21T07:10:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"89a00be4288cfa184efb3c0feec8ca5d9b45198b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/scorelab/OpenMF/pulls/17/commits","review_comments_url":"https://api.github.com/repos/scorelab/OpenMF/pulls/17/comments","review_comment_url":"https://api.github.com/repos/scorelab/OpenMF/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scorelab/OpenMF/issues/17/comments","statuses_url":"https://api.github.com/repos/scorelab/OpenMF/statuses/a6c1d9879375a65b6b207b6036f22e3ded7bde0a","head":{"label":"Wolf-Legend:report-generation","ref":"report-generation","sha":"a6c1d9879375a65b6b207b6036f22e3ded7bde0a","user":{"login":"Wolf-Legend","id":23487061,"node_id":"MDQ6VXNlcjIzNDg3MDYx","avatar_url":"https://avatars0.githubusercontent.com/u/23487061?v=4","gravatar_id":"","url":"https://api.github.com/users/Wolf-Legend","html_url":"https://github.com/Wolf-Legend","followers_url":"https://api.github.com/users/Wolf-Legend/followers","following_url":"https://api.github.com/users/Wolf-Legend/following{/other_user}","gists_url":"https://api.github.com/users/Wolf-Legend/gists{/gist_id}","starred_url":"https://api.github.com/users/Wolf-Legend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wolf-Legend/subscriptions","organizations_url":"https://api.github.com/users/Wolf-Legend/orgs","repos_url":"https://api.github.com/users/Wolf-Legend/repos","events_url":"https://api.github.com/users/Wolf-Legend/events{/privacy}","received_events_url":"https://api.github.com/users/Wolf-Legend/received_events","type":"User","site_admin":false},"repo":{"id":188987625,"node_id":"MDEwOlJlcG9zaXRvcnkxODg5ODc2MjU=","name":"OpenMF","full_name":"Wolf-Legend/OpenMF","private":false,"owner":{"login":"Wolf-Legend","id":23487061,"node_id":"MDQ6VXNlcjIzNDg3MDYx","avatar_url":"https://avatars0.githubusercontent.com/u/23487061?v=4","gravatar_id":"","url":"https://api.github.com/users/Wolf-Legend","html_url":"https://github.com/Wolf-Legend","followers_url":"https://api.github.com/users/Wolf-Legend/followers","following_url":"https://api.github.com/users/Wolf-Legend/following{/other_user}","gists_url":"https://api.github.com/users/Wolf-Legend/gists{/gist_id}","starred_url":"https://api.github.com/users/Wolf-Legend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wolf-Legend/subscriptions","organizations_url":"https://api.github.com/users/Wolf-Legend/orgs","repos_url":"https://api.github.com/users/Wolf-Legend/repos","events_url":"https://api.github.com/users/Wolf-Legend/events{/privacy}","received_events_url":"https://api.github.com/users/Wolf-Legend/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Wolf-Legend/OpenMF","description":"An Open Source Mobile Forensics Investigation Tool for Android Platform","fork":true,"url":"https://api.github.com/repos/Wolf-Legend/OpenMF","forks_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/forks","keys_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/teams","hooks_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/hooks","issue_events_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/issues/events{/number}","events_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/events","assignees_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/assignees{/user}","branches_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/branches{/branch}","tags_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/tags","blobs_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/statuses/{sha}","languages_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/languages","stargazers_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/stargazers","contributors_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/contributors","subscribers_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/subscribers","subscription_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/subscription","commits_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/contents/{+path}","compare_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/merges","archive_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/downloads","issues_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/issues{/number}","pulls_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/pulls{/number}","milestones_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/milestones{/number}","notifications_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/labels{/name}","releases_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/releases{/id}","deployments_url":"https://api.github.com/repos/Wolf-Legend/OpenMF/deployments","created_at":"2019-05-28T08:31:34Z","updated_at":"2019-06-10T05:40:23Z","pushed_at":"2019-08-20T16:33:15Z","git_url":"git://github.com/Wolf-Legend/OpenMF.git","ssh_url":"git@github.com:Wolf-Legend/OpenMF.git","clone_url":"https://github.com/Wolf-Legend/OpenMF.git","svn_url":"https://github.com/Wolf-Legend/OpenMF","homepage":"","size":9422,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"scorelab:master","ref":"master","sha":"7cb9722ece782c972c2bfbc947acd1d2343b6f3e","user":{"login":"scorelab","id":5285159,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUyODUxNTk=","avatar_url":"https://avatars2.githubusercontent.com/u/5285159?v=4","gravatar_id":"","url":"https://api.github.com/users/scorelab","html_url":"https://github.com/scorelab","followers_url":"https://api.github.com/users/scorelab/followers","following_url":"https://api.github.com/users/scorelab/following{/other_user}","gists_url":"https://api.github.com/users/scorelab/gists{/gist_id}","starred_url":"https://api.github.com/users/scorelab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scorelab/subscriptions","organizations_url":"https://api.github.com/users/scorelab/orgs","repos_url":"https://api.github.com/users/scorelab/repos","events_url":"https://api.github.com/users/scorelab/events{/privacy}","received_events_url":"https://api.github.com/users/scorelab/received_events","type":"Organization","site_admin":false},"repo":{"id":126325350,"node_id":"MDEwOlJlcG9zaXRvcnkxMjYzMjUzNTA=","name":"OpenMF","full_name":"scorelab/OpenMF","private":false,"owner":{"login":"scorelab","id":5285159,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUyODUxNTk=","avatar_url":"https://avatars2.githubusercontent.com/u/5285159?v=4","gravatar_id":"","url":"https://api.github.com/users/scorelab","html_url":"https://github.com/scorelab","followers_url":"https://api.github.com/users/scorelab/followers","following_url":"https://api.github.com/users/scorelab/following{/other_user}","gists_url":"https://api.github.com/users/scorelab/gists{/gist_id}","starred_url":"https://api.github.com/users/scorelab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scorelab/subscriptions","organizations_url":"https://api.github.com/users/scorelab/orgs","repos_url":"https://api.github.com/users/scorelab/repos","events_url":"https://api.github.com/users/scorelab/events{/privacy}","received_events_url":"https://api.github.com/users/scorelab/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/scorelab/OpenMF","description":"An Open Source Mobile Forensics Investigation Tool for Android Platform","fork":false,"url":"https://api.github.com/repos/scorelab/OpenMF","forks_url":"https://api.github.com/repos/scorelab/OpenMF/forks","keys_url":"https://api.github.com/repos/scorelab/OpenMF/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scorelab/OpenMF/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scorelab/OpenMF/teams","hooks_url":"https://api.github.com/repos/scorelab/OpenMF/hooks","issue_events_url":"https://api.github.com/repos/scorelab/OpenMF/issues/events{/number}","events_url":"https://api.github.com/repos/scorelab/OpenMF/events","assignees_url":"https://api.github.com/repos/scorelab/OpenMF/assignees{/user}","branches_url":"https://api.github.com/repos/scorelab/OpenMF/branches{/branch}","tags_url":"https://api.github.com/repos/scorelab/OpenMF/tags","blobs_url":"https://api.github.com/repos/scorelab/OpenMF/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scorelab/OpenMF/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scorelab/OpenMF/git/refs{/sha}","trees_url":"https://api.github.com/repos/scorelab/OpenMF/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scorelab/OpenMF/statuses/{sha}","languages_url":"https://api.github.com/repos/scorelab/OpenMF/languages","stargazers_url":"https://api.github.com/repos/scorelab/OpenMF/stargazers","contributors_url":"https://api.github.com/repos/scorelab/OpenMF/contributors","subscribers_url":"https://api.github.com/repos/scorelab/OpenMF/subscribers","subscription_url":"https://api.github.com/repos/scorelab/OpenMF/subscription","commits_url":"https://api.github.com/repos/scorelab/OpenMF/commits{/sha}","git_commits_url":"https://api.github.com/repos/scorelab/OpenMF/git/commits{/sha}","comments_url":"https://api.github.com/repos/scorelab/OpenMF/comments{/number}","issue_comment_url":"https://api.github.com/repos/scorelab/OpenMF/issues/comments{/number}","contents_url":"https://api.github.com/repos/scorelab/OpenMF/contents/{+path}","compare_url":"https://api.github.com/repos/scorelab/OpenMF/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scorelab/OpenMF/merges","archive_url":"https://api.github.com/repos/scorelab/OpenMF/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scorelab/OpenMF/downloads","issues_url":"https://api.github.com/repos/scorelab/OpenMF/issues{/number}","pulls_url":"https://api.github.com/repos/scorelab/OpenMF/pulls{/number}","milestones_url":"https://api.github.com/repos/scorelab/OpenMF/milestones{/number}","notifications_url":"https://api.github.com/repos/scorelab/OpenMF/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scorelab/OpenMF/labels{/name}","releases_url":"https://api.github.com/repos/scorelab/OpenMF/releases{/id}","deployments_url":"https://api.github.com/repos/scorelab/OpenMF/deployments","created_at":"2018-03-22T11:30:00Z","updated_at":"2019-08-21T05:46:29Z","pushed_at":"2019-08-21T04:17:43Z","git_url":"git://github.com/scorelab/OpenMF.git","ssh_url":"git@github.com:scorelab/OpenMF.git","clone_url":"https://github.com/scorelab/OpenMF.git","svn_url":"https://github.com/scorelab/OpenMF","homepage":null,"size":9430,"stargazers_count":14,"watchers_count":14,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":14,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":10,"open_issues":14,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scorelab/OpenMF/pulls/17"},"html":{"href":"https://github.com/scorelab/OpenMF/pull/17"},"issue":{"href":"https://api.github.com/repos/scorelab/OpenMF/issues/17"},"comments":{"href":"https://api.github.com/repos/scorelab/OpenMF/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/scorelab/OpenMF/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/scorelab/OpenMF/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scorelab/OpenMF/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/scorelab/OpenMF/statuses/a6c1d9879375a65b6b207b6036f22e3ded7bde0a"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"Wolf-Legend"}}