Skip to content

Commit

Permalink
bunch of json updates
Browse files Browse the repository at this point in the history
  • Loading branch information
cappetta committed Apr 20, 2019
1 parent 9f89087 commit 9c0be62
Show file tree
Hide file tree
Showing 33 changed files with 135 additions and 15 deletions.
15 changes: 15 additions & 0 deletions tools/local_vm_to_aws/create_ami_from_ova.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash -x
# set newline character as the deliminator between results from the find cmd
IFS=$'\n' ;

# find json files to create ami's off of
IFS=$'\n' ;


#for i in $(ls /Volumes/backup/vm-exports); do aws s3 cp /Volumes/backup/vm-exports/$i s3://<bucket>/vulnvms/ ; done

for json_full in $(find ./jsons/successful-ami-imports -name "*json" ); do
json=$(echo $json_full | awk -F"/" '{print $5}'|sed 's/ //g');
echo $json " []" $json_full
aws ec2 import-image --description "$json" --license-type byol --disk-containers file://$json_full >> /tmp/ami-imports.london
done
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"Description": "defender-win2016",
"Format": "ova",
"UserBucket": {
"S3Bucket": "xxxx",
"S3Key": "vulnvms/defender-win2016.ova"
}
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"Description": "defender-win2019",
"Format": "ova",
"UserBucket": {
"S3Bucket": "xxxx",
"S3Key": "vulnvms/defender-win2019.ova"
}
}
]
10 changes: 10 additions & 0 deletions tools/local_vm_to_aws/jsons/failed-ami-imports/import_winxp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"Description": "winxp-ova",
"Format": "ova",
"UserBucket": {
"S3Bucket": "xxxx",
"S3Key": "vulnvms/winxp.ova"
}
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"Description": "bulldog",
"Format": "ova",
"UserBucket": {
"S3Bucket": "xxxx",
"S3Key": "vulnvms/Bulldog2.ova"
}
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"Description": "commando",
"Format": "ova",
"UserBucket": {
"S3Bucket": "xxxx",
"S3Key": "vulnvms/commando.ova"
}
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"Description": "defender-win2010",
"Format": "ova",
"UserBucket": {
"S3Bucket": "xxxx",
"S3Key": "vulnvms/defender-win2010.ova"
}
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"Description": "metasploitable3-win2k12",
"Format": "ova",
"UserBucket": {
"S3Bucket": "xxxx",
"S3Key": "vulnvms/metasploitable3-win2k12.ova"
}
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"Description": "r7va",
"Format": "ova",
"UserBucket": {
"S3Bucket": "xxxx",
"S3Key": "vulnvms/Rapid7VA.ova"
}
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"Description": "tenable-core-nessus",
"Format": "ova",
"UserBucket": {
"S3Bucket": "xxxx",
"S3Key": "vulnvms/Tenable-Core-Nessus-20190308.ova"
}
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"Description": "tenable-core-nnm",
"Format": "ova",
"UserBucket": {
"S3Bucket": "xxxx",
"S3Key": "vulnvms/Tenable-Core-NNM-20190308.ova"
}
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"Description": "tenable-core-sc",
"Format": "ova",
"UserBucket": {
"S3Bucket": "xxxx",
"S3Key": "vulnvms/Tenable-Core-SecurityCenter-20190308.ova"
}
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"Description": "tenable-core-was",
"Format": "ova",
"UserBucket": {
"S3Bucket": "xxxx",
"S3Key": "vulnvms/Tenable-Core-WAS-20190308.ova"
}
}
]
15 changes: 0 additions & 15 deletions tools/local_vm_to_aws/upload_to_s3_and_start_import.sh

This file was deleted.

0 comments on commit 9c0be62

Please sign in to comment.