restructuring libs to be a bit more sane in terms of schema and so that we can split between aws and gcp
This commit is contained in:
@@ -6,7 +6,7 @@ import builtins
|
|||||||
import sqlite3
|
import sqlite3
|
||||||
from sqlite3 import Error
|
from sqlite3 import Error
|
||||||
|
|
||||||
from libs.sql import *
|
from libs.aws.sql import *
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import pprint
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
||||||
from libs.sql import *
|
from libs.aws.sql import *
|
||||||
|
|
||||||
pp = pprint.PrettyPrinter(indent=5, width=80)
|
pp = pprint.PrettyPrinter(indent=5, width=80)
|
||||||
|
|
||||||
@@ -10,7 +10,7 @@ import pprint
|
|||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from libs.sql import *
|
from libs.aws.sql import *
|
||||||
|
|
||||||
pp = pprint.PrettyPrinter(indent=5, width=80)
|
pp = pprint.PrettyPrinter(indent=5, width=80)
|
||||||
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
'''
|
'''
|
||||||
This file is used to list lambda functions and event mappings
|
This file is used to list lambda functions and event mappings
|
||||||
'''
|
'''
|
||||||
from libs.aws_lambda import *
|
from libs.aws.aws_lambda import *
|
||||||
|
|
||||||
|
|
||||||
def module_lambda_list_functions():
|
def module_lambda_list_functions():
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ usually have to be root or be specifically assigned the
|
|||||||
permission to get anything from this
|
permission to get anything from this
|
||||||
'''
|
'''
|
||||||
|
|
||||||
from libs.ce import *
|
from libs.aws.ce import *
|
||||||
|
|
||||||
|
|
||||||
def module_costexplorer_get_cost_and_usage():
|
def module_costexplorer_get_cost_and_usage():
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
This file is used to perform some EMR actions
|
This file is used to perform some EMR actions
|
||||||
'''
|
'''
|
||||||
|
|
||||||
from libs.cloudfront import *
|
from libs.aws.cloudfront import *
|
||||||
|
|
||||||
|
|
||||||
def module_cloudfront_list_distributions():
|
def module_cloudfront_list_distributions():
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
'''
|
'''
|
||||||
This file is used to perform cloudtrail actions
|
This file is used to perform cloudtrail actions
|
||||||
'''
|
'''
|
||||||
from libs.cloudtrail import *
|
from libs.aws.cloudtrail import *
|
||||||
|
|
||||||
|
|
||||||
def module_cloudtrail_describe_trails():
|
def module_cloudtrail_describe_trails():
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
example calling cloudwatch functions
|
example calling cloudwatch functions
|
||||||
decribe alarms, describe alarm history, list metrics
|
decribe alarms, describe alarm history, list metrics
|
||||||
'''
|
'''
|
||||||
from libs.cloudwatch import *
|
from libs.aws.cloudwatch import *
|
||||||
|
|
||||||
|
|
||||||
def module_cloudwatch_describe_alarms():
|
def module_cloudwatch_describe_alarms():
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
Module for interacting with the config service
|
Module for interacting with the config service
|
||||||
'''
|
'''
|
||||||
|
|
||||||
from libs.config import *
|
from libs.aws.config import *
|
||||||
|
|
||||||
|
|
||||||
def module_config_list_all_rules():
|
def module_config_list_all_rules():
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
datapipeline modules
|
datapipeline modules
|
||||||
'''
|
'''
|
||||||
|
|
||||||
from libs.datapipeline import *
|
from libs.aws.datapipeline import *
|
||||||
|
|
||||||
|
|
||||||
def module_datapipeline_list_pipelines():
|
def module_datapipeline_list_pipelines():
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import boto3
|
|||||||
import sqlite3
|
import sqlite3
|
||||||
from sqlite3 import Error
|
from sqlite3 import Error
|
||||||
|
|
||||||
from libs.sql import *
|
from libs.aws.sql import *
|
||||||
|
|
||||||
session = boto3.Session()
|
session = boto3.Session()
|
||||||
credentials = session.get_credentials()
|
credentials = session.get_credentials()
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
'''
|
'''
|
||||||
dynamoDB examples
|
dynamoDB examples
|
||||||
'''
|
'''
|
||||||
from libs.dynamodb import *
|
from libs.aws.dynamodb import *
|
||||||
|
|
||||||
|
|
||||||
def module_dynamodb_list_tables():
|
def module_dynamodb_list_tables():
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
'''
|
'''
|
||||||
dynamoDBstreams examples
|
dynamoDBstreams examples
|
||||||
'''
|
'''
|
||||||
from libs.dynamodbstreams import *
|
from libs.aws.dynamodbstreams import *
|
||||||
|
|
||||||
|
|
||||||
def module_dynamodbstreams_list_streams():
|
def module_dynamodbstreams_list_streams():
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
This file is used to perform various EC2 operations
|
This file is used to perform various EC2 operations
|
||||||
'''
|
'''
|
||||||
|
|
||||||
from libs.ec2 import *
|
from libs.aws.ec2 import *
|
||||||
|
|
||||||
|
|
||||||
def module_ec2_describe_instances_basic():
|
def module_ec2_describe_instances_basic():
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
ECR functions
|
ECR functions
|
||||||
'''
|
'''
|
||||||
|
|
||||||
from libs.ecr import *
|
from libs.aws.ecr import *
|
||||||
|
|
||||||
|
|
||||||
def module_ecr_describe_repos():
|
def module_ecr_describe_repos():
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
'''
|
'''
|
||||||
This file is used to perform some ElasticBeanstalk actions
|
This file is used to perform some ElasticBeanstalk actions
|
||||||
'''
|
'''
|
||||||
from libs.elasticbeanstalk import *
|
from libs.aws.elasticbeanstalk import *
|
||||||
|
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
This file is used to perform some EMR actions
|
This file is used to perform some EMR actions
|
||||||
'''
|
'''
|
||||||
|
|
||||||
from libs.emr import *
|
from libs.aws.emr import *
|
||||||
|
|
||||||
|
|
||||||
def module_emr_list_clusters():
|
def module_emr_list_clusters():
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
'''
|
'''
|
||||||
Firehose functions
|
Firehose functions
|
||||||
'''
|
'''
|
||||||
from libs.firehose import *
|
from libs.aws.firehose import *
|
||||||
|
|
||||||
|
|
||||||
def module_firehose_list_delivery_streams():
|
def module_firehose_list_delivery_streams():
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
IAM recon functions
|
IAM recon functions
|
||||||
'''
|
'''
|
||||||
|
|
||||||
from libs.iam import *
|
from libs.aws.iam import *
|
||||||
|
|
||||||
|
|
||||||
def module_iam_list_groups():
|
def module_iam_list_groups():
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
Functions specifically related to IAM account takeover if you have root or IAM access gather user info,
|
Functions specifically related to IAM account takeover if you have root or IAM access gather user info,
|
||||||
manipulate access keys or passwords, make backdoor account
|
manipulate access keys or passwords, make backdoor account
|
||||||
'''
|
'''
|
||||||
from libs.iam import *
|
from libs.aws.iam import *
|
||||||
from libs.sts import *
|
from libs.aws.sts import *
|
||||||
|
|
||||||
|
|
||||||
def module_iam_get_account_summary():
|
def module_iam_get_account_summary():
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
Module for interacting with the lightsail
|
Module for interacting with the lightsail
|
||||||
'''
|
'''
|
||||||
|
|
||||||
from libs.lightsail import *
|
from libs.aws.lightsail import *
|
||||||
|
|
||||||
|
|
||||||
def module_lightsail_get_instances():
|
def module_lightsail_get_instances():
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
from libs.opsworks import *
|
from libs.aws.opsworks import *
|
||||||
|
|
||||||
|
|
||||||
def module_opsworks_describe_stacks():
|
def module_opsworks_describe_stacks():
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ usually have to be root or be specifically assigned the
|
|||||||
permission to get anything from this
|
permission to get anything from this
|
||||||
'''
|
'''
|
||||||
|
|
||||||
from libs.pricing import *
|
from libs.aws.pricing import *
|
||||||
|
|
||||||
|
|
||||||
def module_pricing_describe_services():
|
def module_pricing_describe_services():
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
RDS module
|
RDS module
|
||||||
'''
|
'''
|
||||||
|
|
||||||
from libs.rds import *
|
from libs.aws.rds import *
|
||||||
|
|
||||||
|
|
||||||
def module_rds_describe_db_instances():
|
def module_rds_describe_db_instances():
|
||||||
|
|||||||
@@ -3,14 +3,14 @@ This module handles the core recon functionality by asking all the services
|
|||||||
that have functions that done have arguments if we can access them :-)
|
that have functions that done have arguments if we can access them :-)
|
||||||
'''
|
'''
|
||||||
|
|
||||||
from libs.brute import *
|
from libs.aws.brute import *
|
||||||
from libs.s3 import *
|
from libs.aws.s3 import *
|
||||||
|
|
||||||
# for recon_defaults
|
# for recon_defaults
|
||||||
from libs.elasticbeanstalk import *
|
from libs.aws.elasticbeanstalk import *
|
||||||
from libs.opsworks import *
|
from libs.aws.opsworks import *
|
||||||
from libs.route53 import *
|
from libs.aws.route53 import *
|
||||||
from libs.sts import *
|
from libs.aws.sts import *
|
||||||
|
|
||||||
# maps to available services in boto 1.7.4
|
# maps to available services in boto 1.7.4
|
||||||
|
|
||||||
|
|||||||
@@ -2,13 +2,13 @@
|
|||||||
route53 functions
|
route53 functions
|
||||||
'''
|
'''
|
||||||
|
|
||||||
from libs.route53 import *
|
from libs.aws.route53 import *
|
||||||
|
|
||||||
|
|
||||||
def module_route53_list_geolocations():
|
def module_route53_list_geolocations():
|
||||||
'''
|
'''
|
||||||
Route53 list geolocations
|
Route53 list geolocations
|
||||||
|
|
||||||
python3 weirdAAL.py -m route53_list_geolocations -t demo
|
python3 weirdAAL.py -m route53_list_geolocations -t demo
|
||||||
'''
|
'''
|
||||||
list_geolocations()
|
list_geolocations()
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
S3 module
|
S3 module
|
||||||
'''
|
'''
|
||||||
|
|
||||||
from libs.s3 import *
|
from libs.aws.s3 import *
|
||||||
|
|
||||||
|
|
||||||
def module_s3_get_bucket_policy(*args):
|
def module_s3_get_bucket_policy(*args):
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
SES module
|
SES module
|
||||||
'''
|
'''
|
||||||
|
|
||||||
from libs.ses import *
|
from libs.aws.ses import *
|
||||||
|
|
||||||
|
|
||||||
def module_ses_list_identities():
|
def module_ses_list_identities():
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
SNS module
|
SNS module
|
||||||
'''
|
'''
|
||||||
|
|
||||||
from libs.sns import *
|
from libs.aws.sns import *
|
||||||
|
|
||||||
def module_sns_list_topics():
|
def module_sns_list_topics():
|
||||||
'''
|
'''
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
SQS Modules
|
SQS Modules
|
||||||
'''
|
'''
|
||||||
|
|
||||||
from libs.sqs import *
|
from libs.aws.sqs import *
|
||||||
|
|
||||||
|
|
||||||
def module_sqs_list_queues():
|
def module_sqs_list_queues():
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
This file is used to perform some EMR actions
|
This file is used to perform some EMR actions
|
||||||
'''
|
'''
|
||||||
|
|
||||||
from libs.sts import *
|
from libs.aws.sts import *
|
||||||
|
|
||||||
|
|
||||||
def module_sts_get_accountid():
|
def module_sts_get_accountid():
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
Translate module
|
Translate module
|
||||||
'''
|
'''
|
||||||
|
|
||||||
from libs.translate import *
|
from libs.aws.translate import *
|
||||||
|
|
||||||
|
|
||||||
def module_translate_translate_text(*text):
|
def module_translate_translate_text(*text):
|
||||||
|
|||||||
Reference in New Issue
Block a user