{"action":"created","comment":{"url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/pulls/comments/195578817","pull_request_review_id":128978566,"id":195578817,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NTU3ODgxNw==","diff_hunk":"@@ -0,0 +1,49 @@\n+import random\n+\n+from canari.maltego.transform import Transform\n+from canari.maltego.entities import URL\n+from canari.framework import EnableDebugWindow\n+from common.entities import NettackerScan\n+\n+from lib.scan.joomla_template.engine import start\n+\n+from database.db import __logs_by_scan_id as find_log\n+\n+__author__ = 'Shaddy Garg'\n+__copyright__ = 'Copyright 2018, nettacker_transforms Project'\n+__credits__ = []\n+\n+__license__ = 'GPLv3'\n+__version__ = '0.1'\n+__maintainer__ = 'Shaddy Garg'\n+__email__ = 'shaddygarg1@gmail.com'\n+__status__ = 'Development'\n+\n+\n+@EnableDebugWindow\n+class JoomlaTemplatesScan(Transform):\n+    \"\"\"TODO: Your transform description.\"\"\"\n+\n+    # The transform input entity type.\n+    input_type = NettackerScan\n+\n+    def do_transform(self, request, response, config):\n+        # TODO: write your code here.\n+        scan_request = request.entity\n+        scan_id = \"\".join(random.choice(\"0123456789abcdef\") for x in range(32))","path":"lib/transactions/maltego/nettacker_transforms/src/nettacker_transforms/transforms/joomla_template_scan.py","position":33,"original_position":33,"commit_id":"d445a51cd591a279cc941903ed799d4d4a01f05a","original_commit_id":"d445a51cd591a279cc941903ed799d4d4a01f05a","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [Standard pseudo-random generators are not suitable for security/cryptographic purposes.](https://app.codacy.com/app/zdresearch/OWASP-Nettacker/pullRequest?prid=1739770)","created_at":"2018-06-14T21:35:45Z","updated_at":"2018-06-14T21:35:45Z","html_url":"https://github.com/zdresearch/OWASP-Nettacker/pull/155#discussion_r195578817","pull_request_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/pulls/155","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/pulls/comments/195578817"},"html":{"href":"https://github.com/zdresearch/OWASP-Nettacker/pull/155#discussion_r195578817"},"pull_request":{"href":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/pulls/155"}}},"pull_request":{"url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/pulls/155","id":192738762,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyNzM4NzYy","html_url":"https://github.com/zdresearch/OWASP-Nettacker/pull/155","diff_url":"https://github.com/zdresearch/OWASP-Nettacker/pull/155.diff","patch_url":"https://github.com/zdresearch/OWASP-Nettacker/pull/155.patch","issue_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/issues/155","number":155,"state":"open","locked":false,"title":"[WIP] Add local maltego transform for the framework","user":{"login":"shaddygarg","id":21990986,"node_id":"MDQ6VXNlcjIxOTkwOTg2","avatar_url":"https://avatars0.githubusercontent.com/u/21990986?v=4","gravatar_id":"","url":"https://api.github.com/users/shaddygarg","html_url":"https://github.com/shaddygarg","followers_url":"https://api.github.com/users/shaddygarg/followers","following_url":"https://api.github.com/users/shaddygarg/following{/other_user}","gists_url":"https://api.github.com/users/shaddygarg/gists{/gist_id}","starred_url":"https://api.github.com/users/shaddygarg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaddygarg/subscriptions","organizations_url":"https://api.github.com/users/shaddygarg/orgs","repos_url":"https://api.github.com/users/shaddygarg/repos","events_url":"https://api.github.com/users/shaddygarg/events{/privacy}","received_events_url":"https://api.github.com/users/shaddygarg/received_events","type":"User","site_admin":false},"body":"#### Checklist\r\n- [x] I have followed the [Contributor Guidelines](https://github.com/zdresearch/OWASP-Nettacker/wiki/Developers#contribution-guidelines).\r\n- [x] I have added the relevant documentation.\r\n- [x] My branch is up-to-date with the Upstream master branch.\r\n\r\n#### Changes proposed in this pull request\r\nThis is a pull request for adding the local maltego transform for OWASP Nettacker #19 \r\n\r\n#### Work to do\r\n- ~~Make a nettacker entity suiting to our needs~~\r\n- ~~Make a maltego transform for 1 module (preferably port scan)~~\r\n- ~~Make maltego transforms for all the modules~~\r\n- Update code-based documentation and Wiki\r\n\r\n#### Your development environment\r\n- OS: `Ubuntu`\r\n- OS Version: `16.04`\r\n- Python Version: `2.7`","created_at":"2018-06-05T15:00:33Z","updated_at":"2018-06-14T21:35:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"20d535ac7d2823530b92e5962e852845945c16f5","assignee":null,"assignees":[],"requested_reviewers":[{"login":"Ali-Razmjoo","id":7676267,"node_id":"MDQ6VXNlcjc2NzYyNjc=","avatar_url":"https://avatars1.githubusercontent.com/u/7676267?v=4","gravatar_id":"","url":"https://api.github.com/users/Ali-Razmjoo","html_url":"https://github.com/Ali-Razmjoo","followers_url":"https://api.github.com/users/Ali-Razmjoo/followers","following_url":"https://api.github.com/users/Ali-Razmjoo/following{/other_user}","gists_url":"https://api.github.com/users/Ali-Razmjoo/gists{/gist_id}","starred_url":"https://api.github.com/users/Ali-Razmjoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ali-Razmjoo/subscriptions","organizations_url":"https://api.github.com/users/Ali-Razmjoo/orgs","repos_url":"https://api.github.com/users/Ali-Razmjoo/repos","events_url":"https://api.github.com/users/Ali-Razmjoo/events{/privacy}","received_events_url":"https://api.github.com/users/Ali-Razmjoo/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":588870958,"node_id":"MDU6TGFiZWw1ODg4NzA5NTg=","url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"milestone":null,"commits_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/pulls/155/commits","review_comments_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/pulls/155/comments","review_comment_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/issues/155/comments","statuses_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/statuses/d445a51cd591a279cc941903ed799d4d4a01f05a","head":{"label":"shaddygarg:maltego-transform","ref":"maltego-transform","sha":"d445a51cd591a279cc941903ed799d4d4a01f05a","user":{"login":"shaddygarg","id":21990986,"node_id":"MDQ6VXNlcjIxOTkwOTg2","avatar_url":"https://avatars0.githubusercontent.com/u/21990986?v=4","gravatar_id":"","url":"https://api.github.com/users/shaddygarg","html_url":"https://github.com/shaddygarg","followers_url":"https://api.github.com/users/shaddygarg/followers","following_url":"https://api.github.com/users/shaddygarg/following{/other_user}","gists_url":"https://api.github.com/users/shaddygarg/gists{/gist_id}","starred_url":"https://api.github.com/users/shaddygarg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaddygarg/subscriptions","organizations_url":"https://api.github.com/users/shaddygarg/orgs","repos_url":"https://api.github.com/users/shaddygarg/repos","events_url":"https://api.github.com/users/shaddygarg/events{/privacy}","received_events_url":"https://api.github.com/users/shaddygarg/received_events","type":"User","site_admin":false},"repo":{"id":121483432,"node_id":"MDEwOlJlcG9zaXRvcnkxMjE0ODM0MzI=","name":"OWASP-Nettacker","full_name":"shaddygarg/OWASP-Nettacker","owner":{"login":"shaddygarg","id":21990986,"node_id":"MDQ6VXNlcjIxOTkwOTg2","avatar_url":"https://avatars0.githubusercontent.com/u/21990986?v=4","gravatar_id":"","url":"https://api.github.com/users/shaddygarg","html_url":"https://github.com/shaddygarg","followers_url":"https://api.github.com/users/shaddygarg/followers","following_url":"https://api.github.com/users/shaddygarg/following{/other_user}","gists_url":"https://api.github.com/users/shaddygarg/gists{/gist_id}","starred_url":"https://api.github.com/users/shaddygarg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaddygarg/subscriptions","organizations_url":"https://api.github.com/users/shaddygarg/orgs","repos_url":"https://api.github.com/users/shaddygarg/repos","events_url":"https://api.github.com/users/shaddygarg/events{/privacy}","received_events_url":"https://api.github.com/users/shaddygarg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shaddygarg/OWASP-Nettacker","description":"Automated Penetration Testing Framework","fork":true,"url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker","forks_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/forks","keys_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/teams","hooks_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/hooks","issue_events_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/issues/events{/number}","events_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/events","assignees_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/assignees{/user}","branches_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/branches{/branch}","tags_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/tags","blobs_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/git/refs{/sha}","trees_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/statuses/{sha}","languages_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/languages","stargazers_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/stargazers","contributors_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/contributors","subscribers_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/subscribers","subscription_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/subscription","commits_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/commits{/sha}","git_commits_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/git/commits{/sha}","comments_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/comments{/number}","issue_comment_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/issues/comments{/number}","contents_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/contents/{+path}","compare_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/merges","archive_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/downloads","issues_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/issues{/number}","pulls_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/pulls{/number}","milestones_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/milestones{/number}","notifications_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/labels{/name}","releases_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/releases{/id}","deployments_url":"https://api.github.com/repos/shaddygarg/OWASP-Nettacker/deployments","created_at":"2018-02-14T07:35:01Z","updated_at":"2018-05-19T06:44:27Z","pushed_at":"2018-06-14T21:32:30Z","git_url":"git://github.com/shaddygarg/OWASP-Nettacker.git","ssh_url":"git@github.com:shaddygarg/OWASP-Nettacker.git","clone_url":"https://github.com/shaddygarg/OWASP-Nettacker.git","svn_url":"https://github.com/shaddygarg/OWASP-Nettacker","homepage":"","size":5832,"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,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"zdresearch:master","ref":"master","sha":"cf8f3f09e92dcd1a5484e272474c16145eeb668a","user":{"login":"zdresearch","id":32936359,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyOTM2MzU5","avatar_url":"https://avatars2.githubusercontent.com/u/32936359?v=4","gravatar_id":"","url":"https://api.github.com/users/zdresearch","html_url":"https://github.com/zdresearch","followers_url":"https://api.github.com/users/zdresearch/followers","following_url":"https://api.github.com/users/zdresearch/following{/other_user}","gists_url":"https://api.github.com/users/zdresearch/gists{/gist_id}","starred_url":"https://api.github.com/users/zdresearch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zdresearch/subscriptions","organizations_url":"https://api.github.com/users/zdresearch/orgs","repos_url":"https://api.github.com/users/zdresearch/repos","events_url":"https://api.github.com/users/zdresearch/events{/privacy}","received_events_url":"https://api.github.com/users/zdresearch/received_events","type":"Organization","site_admin":false},"repo":{"id":88980374,"node_id":"MDEwOlJlcG9zaXRvcnk4ODk4MDM3NA==","name":"OWASP-Nettacker","full_name":"zdresearch/OWASP-Nettacker","owner":{"login":"zdresearch","id":32936359,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyOTM2MzU5","avatar_url":"https://avatars2.githubusercontent.com/u/32936359?v=4","gravatar_id":"","url":"https://api.github.com/users/zdresearch","html_url":"https://github.com/zdresearch","followers_url":"https://api.github.com/users/zdresearch/followers","following_url":"https://api.github.com/users/zdresearch/following{/other_user}","gists_url":"https://api.github.com/users/zdresearch/gists{/gist_id}","starred_url":"https://api.github.com/users/zdresearch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zdresearch/subscriptions","organizations_url":"https://api.github.com/users/zdresearch/orgs","repos_url":"https://api.github.com/users/zdresearch/repos","events_url":"https://api.github.com/users/zdresearch/events{/privacy}","received_events_url":"https://api.github.com/users/zdresearch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zdresearch/OWASP-Nettacker","description":"Automated Penetration Testing Framework","fork":false,"url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker","forks_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/forks","keys_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/teams","hooks_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/hooks","issue_events_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/issues/events{/number}","events_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/events","assignees_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/assignees{/user}","branches_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/branches{/branch}","tags_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/tags","blobs_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/git/refs{/sha}","trees_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/statuses/{sha}","languages_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/languages","stargazers_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/stargazers","contributors_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/contributors","subscribers_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/subscribers","subscription_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/subscription","commits_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/commits{/sha}","git_commits_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/git/commits{/sha}","comments_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/comments{/number}","issue_comment_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/issues/comments{/number}","contents_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/contents/{+path}","compare_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/merges","archive_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/downloads","issues_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/issues{/number}","pulls_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/pulls{/number}","milestones_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/milestones{/number}","notifications_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/labels{/name}","releases_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/releases{/id}","deployments_url":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/deployments","created_at":"2017-04-21T12:14:35Z","updated_at":"2018-06-14T18:11:01Z","pushed_at":"2018-06-14T21:32:32Z","git_url":"git://github.com/zdresearch/OWASP-Nettacker.git","ssh_url":"git@github.com:zdresearch/OWASP-Nettacker.git","clone_url":"https://github.com/zdresearch/OWASP-Nettacker.git","svn_url":"https://github.com/zdresearch/OWASP-Nettacker","homepage":"","size":5801,"stargazers_count":355,"watchers_count":355,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":130,"mirror_url":null,"archived":false,"open_issues_count":39,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":130,"open_issues":39,"watchers":355,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/pulls/155"},"html":{"href":"https://github.com/zdresearch/OWASP-Nettacker/pull/155"},"issue":{"href":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/issues/155"},"comments":{"href":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/issues/155/comments"},"review_comments":{"href":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/pulls/155/comments"},"review_comment":{"href":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/pulls/155/commits"},"statuses":{"href":"https://api.github.com/repos/zdresearch/OWASP-Nettacker/statuses/d445a51cd591a279cc941903ed799d4d4a01f05a"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"codacy-bot"}}