Should deploy correctly
This commit is contained in:
@@ -87,6 +87,8 @@ def parse_arguments():
|
||||
parser.add_argument('--region', help='Generic region parameter')
|
||||
parser.add_argument('--redirector-name', help='Name for the redirector instance (default: random)')
|
||||
parser.add_argument('--c2-name', help='Name for the C2 instance (default: random)')
|
||||
parser.add_argument('--redirector-subdomain', default='cdn', help='Subdomain for the redirector (default: cdn)')
|
||||
parser.add_argument('--c2-subdomain', default='mail', help='Subdomain for the C2 server (default: mail)')
|
||||
|
||||
# Common arguments
|
||||
parser.add_argument('--teardown', action='store_true', help='Tear down existing infrastructure')
|
||||
@@ -301,6 +303,13 @@ def interactive_setup():
|
||||
default_domain = vars_data.get('domain', 'example.com')
|
||||
config['domain'] = input(f"\nDomain name [default: {default_domain}]: ") or default_domain
|
||||
|
||||
# Subdomain configuration - new feature
|
||||
default_redirector_subdomain = vars_data.get('redirector_subdomain', 'cdn')
|
||||
config['redirector_subdomain'] = input(f"Redirector subdomain [default: {default_redirector_subdomain}]: ") or default_redirector_subdomain
|
||||
|
||||
default_c2_subdomain = vars_data.get('c2_subdomain', 'mail')
|
||||
config['c2_subdomain'] = input(f"C2 server subdomain [default: {default_c2_subdomain}]: ") or default_c2_subdomain
|
||||
|
||||
# Always use the most up-to-date domain for the email default
|
||||
default_email = vars_data.get('letsencrypt_email')
|
||||
if not default_email or "example.com" in default_email:
|
||||
@@ -1227,6 +1236,10 @@ C2itAll - Red Team Infrastructure Setup
|
||||
for key, value in vars_data.items():
|
||||
config[key] = value
|
||||
|
||||
# Subdomain settings - ensure these are explicitly set
|
||||
config['redirector_subdomain'] = args.redirector_subdomain or 'cdn'
|
||||
config['c2_subdomain'] = args.c2_subdomain or 'mail'
|
||||
|
||||
# AWS settings
|
||||
if args.provider == "aws":
|
||||
config['aws_access_key'] = args.aws_key or vars_data.get('aws_access_key')
|
||||
|
||||
Reference in New Issue
Block a user