{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/pulls/2","id":58158294,"html_url":"https://github.com/santiago-bassett/Alienvault-Demo_scripts/pull/2","diff_url":"https://github.com/santiago-bassett/Alienvault-Demo_scripts/pull/2.diff","patch_url":"https://github.com/santiago-bassett/Alienvault-Demo_scripts/pull/2.patch","issue_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/issues/2","number":2,"state":"open","locked":false,"title":"Better? Randomization of pcap injections","user":{"login":"scottymace","id":17048965,"avatar_url":"https://avatars.githubusercontent.com/u/17048965?v=3","gravatar_id":"","url":"https://api.github.com/users/scottymace","html_url":"https://github.com/scottymace","followers_url":"https://api.github.com/users/scottymace/followers","following_url":"https://api.github.com/users/scottymace/following{/other_user}","gists_url":"https://api.github.com/users/scottymace/gists{/gist_id}","starred_url":"https://api.github.com/users/scottymace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottymace/subscriptions","organizations_url":"https://api.github.com/users/scottymace/orgs","repos_url":"https://api.github.com/users/scottymace/repos","events_url":"https://api.github.com/users/scottymace/events{/privacy}","received_events_url":"https://api.github.com/users/scottymace/received_events","type":"User","site_admin":false},"body":"Wrote some randomizations to the script to make the alarms a little less scary.  Applied in current demo on amazon.  \r\n\r\n#!/bin/bash\r\n# JS\r\n# Randomizations added by SMace - Feb 2016\r\n#Just in case....\r\nmodprobe dummy\r\nifconfig dummy0 up\r\nifconfig dummy0 promisc\r\n\r\nSCRIPTPATH=$( cd $(dirname $0) ; pwd -P )\r\ncd $SCRIPTPATH\r\n## PCAP Array\r\npcaplist=`ls /root/Alienvault-Demo/pcaps/*.pcap`\r\n # Read into array variable.\r\npcap=($pcaplist)\r\n# Count how many elements.\r\nnum_pcap=${#pcap[*]}\r\n\r\nwhile true\r\ndo       \r\n                tcpreplay-edit -N '10.0.0.0/8:192.168.101.76/30,192.168.0.0/16:192.168.101.74/28' -i dummy0 --pps=5 ${pcap[$((RANDOM%num_pcap))]}\r\n##Adjust as needed to randomize sleepytime\r\nnumber=0   #initialize\r\nRANGE=5400 #in seconds\r\nFLOOR=20   # in seconds\r\nwhile [ \"$number\" -le $FLOOR ]\r\ndo\r\n  number=$RANDOM\r\n  let \"number %= $RANGE\"  # Scales $number down within $RANGE.\r\ndone\r\nsleep $number\r\ndone\r\n","created_at":"2016-02-03T16:04:31Z","updated_at":"2016-02-03T16:04:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/pulls/2/commits","review_comments_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/pulls/2/comments","review_comment_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/issues/2/comments","statuses_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/statuses/427f0d5b390b9700db7de204a36d619ddd594db8","head":{"label":"packetinspector:master","ref":"master","sha":"427f0d5b390b9700db7de204a36d619ddd594db8","user":{"login":"packetinspector","id":6334902,"avatar_url":"https://avatars.githubusercontent.com/u/6334902?v=3","gravatar_id":"","url":"https://api.github.com/users/packetinspector","html_url":"https://github.com/packetinspector","followers_url":"https://api.github.com/users/packetinspector/followers","following_url":"https://api.github.com/users/packetinspector/following{/other_user}","gists_url":"https://api.github.com/users/packetinspector/gists{/gist_id}","starred_url":"https://api.github.com/users/packetinspector/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/packetinspector/subscriptions","organizations_url":"https://api.github.com/users/packetinspector/orgs","repos_url":"https://api.github.com/users/packetinspector/repos","events_url":"https://api.github.com/users/packetinspector/events{/privacy}","received_events_url":"https://api.github.com/users/packetinspector/received_events","type":"User","site_admin":false},"repo":{"id":21987177,"name":"Alienvault-Demo","full_name":"packetinspector/Alienvault-Demo","owner":{"login":"packetinspector","id":6334902,"avatar_url":"https://avatars.githubusercontent.com/u/6334902?v=3","gravatar_id":"","url":"https://api.github.com/users/packetinspector","html_url":"https://github.com/packetinspector","followers_url":"https://api.github.com/users/packetinspector/followers","following_url":"https://api.github.com/users/packetinspector/following{/other_user}","gists_url":"https://api.github.com/users/packetinspector/gists{/gist_id}","starred_url":"https://api.github.com/users/packetinspector/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/packetinspector/subscriptions","organizations_url":"https://api.github.com/users/packetinspector/orgs","repos_url":"https://api.github.com/users/packetinspector/repos","events_url":"https://api.github.com/users/packetinspector/events{/privacy}","received_events_url":"https://api.github.com/users/packetinspector/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/packetinspector/Alienvault-Demo","description":"Scripts to inject demo data and network traffic into an existing Alienvault/OSSIM installation","fork":true,"url":"https://api.github.com/repos/packetinspector/Alienvault-Demo","forks_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/forks","keys_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/teams","hooks_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/hooks","issue_events_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/issues/events{/number}","events_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/events","assignees_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/assignees{/user}","branches_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/branches{/branch}","tags_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/tags","blobs_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/git/refs{/sha}","trees_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/statuses/{sha}","languages_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/languages","stargazers_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/stargazers","contributors_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/contributors","subscribers_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/subscribers","subscription_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/subscription","commits_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/commits{/sha}","git_commits_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/git/commits{/sha}","comments_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/comments{/number}","issue_comment_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/issues/comments{/number}","contents_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/contents/{+path}","compare_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/merges","archive_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/downloads","issues_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/issues{/number}","pulls_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/pulls{/number}","milestones_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/milestones{/number}","notifications_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/labels{/name}","releases_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/releases{/id}","deployments_url":"https://api.github.com/repos/packetinspector/Alienvault-Demo/deployments","created_at":"2014-07-18T16:40:10Z","updated_at":"2015-08-12T22:23:21Z","pushed_at":"2015-12-15T17:27:46Z","git_url":"git://github.com/packetinspector/Alienvault-Demo.git","ssh_url":"git@github.com:packetinspector/Alienvault-Demo.git","clone_url":"https://github.com/packetinspector/Alienvault-Demo.git","svn_url":"https://github.com/packetinspector/Alienvault-Demo","homepage":"http://www.alienvault.com/","size":40818,"stargazers_count":3,"watchers_count":3,"language":"Perl","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":3,"default_branch":"master"}},"base":{"label":"santiago-bassett:master","ref":"master","sha":"1c15fea2232de8e4b4f1a6a2fbebdfb9b810f036","user":{"login":"santiago-bassett","id":5241727,"avatar_url":"https://avatars.githubusercontent.com/u/5241727?v=3","gravatar_id":"","url":"https://api.github.com/users/santiago-bassett","html_url":"https://github.com/santiago-bassett","followers_url":"https://api.github.com/users/santiago-bassett/followers","following_url":"https://api.github.com/users/santiago-bassett/following{/other_user}","gists_url":"https://api.github.com/users/santiago-bassett/gists{/gist_id}","starred_url":"https://api.github.com/users/santiago-bassett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/santiago-bassett/subscriptions","organizations_url":"https://api.github.com/users/santiago-bassett/orgs","repos_url":"https://api.github.com/users/santiago-bassett/repos","events_url":"https://api.github.com/users/santiago-bassett/events{/privacy}","received_events_url":"https://api.github.com/users/santiago-bassett/received_events","type":"User","site_admin":false},"repo":{"id":21831035,"name":"Alienvault-Demo_scripts","full_name":"santiago-bassett/Alienvault-Demo_scripts","owner":{"login":"santiago-bassett","id":5241727,"avatar_url":"https://avatars.githubusercontent.com/u/5241727?v=3","gravatar_id":"","url":"https://api.github.com/users/santiago-bassett","html_url":"https://github.com/santiago-bassett","followers_url":"https://api.github.com/users/santiago-bassett/followers","following_url":"https://api.github.com/users/santiago-bassett/following{/other_user}","gists_url":"https://api.github.com/users/santiago-bassett/gists{/gist_id}","starred_url":"https://api.github.com/users/santiago-bassett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/santiago-bassett/subscriptions","organizations_url":"https://api.github.com/users/santiago-bassett/orgs","repos_url":"https://api.github.com/users/santiago-bassett/repos","events_url":"https://api.github.com/users/santiago-bassett/events{/privacy}","received_events_url":"https://api.github.com/users/santiago-bassett/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/santiago-bassett/Alienvault-Demo_scripts","description":"Scripts to inject demo data and network traffic into an existing Alienvault/OSSIM installation","fork":false,"url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts","forks_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/forks","keys_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/teams","hooks_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/hooks","issue_events_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/issues/events{/number}","events_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/events","assignees_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/assignees{/user}","branches_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/branches{/branch}","tags_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/tags","blobs_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/git/refs{/sha}","trees_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/statuses/{sha}","languages_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/languages","stargazers_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/stargazers","contributors_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/contributors","subscribers_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/subscribers","subscription_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/subscription","commits_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/commits{/sha}","git_commits_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/git/commits{/sha}","comments_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/comments{/number}","issue_comment_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/issues/comments{/number}","contents_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/contents/{+path}","compare_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/merges","archive_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/downloads","issues_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/issues{/number}","pulls_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/pulls{/number}","milestones_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/milestones{/number}","notifications_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/labels{/name}","releases_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/releases{/id}","deployments_url":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/deployments","created_at":"2014-07-14T18:41:12Z","updated_at":"2015-11-07T18:56:25Z","pushed_at":"2014-07-15T00:33:29Z","git_url":"git://github.com/santiago-bassett/Alienvault-Demo_scripts.git","ssh_url":"git@github.com:santiago-bassett/Alienvault-Demo_scripts.git","clone_url":"https://github.com/santiago-bassett/Alienvault-Demo_scripts.git","svn_url":"https://github.com/santiago-bassett/Alienvault-Demo_scripts","homepage":"http://www.alienvault.com/","size":5923,"stargazers_count":3,"watchers_count":3,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":2,"forks":4,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/pulls/2"},"html":{"href":"https://github.com/santiago-bassett/Alienvault-Demo_scripts/pull/2"},"issue":{"href":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/issues/2"},"comments":{"href":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/santiago-bassett/Alienvault-Demo_scripts/statuses/427f0d5b390b9700db7de204a36d619ddd594db8"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":53,"additions":7332,"deletions":6641,"changed_files":130}}