diff --git a/AWS/c2.yml b/AWS/c2.yml index a2158fb..621deff 100644 --- a/AWS/c2.yml +++ b/AWS/c2.yml @@ -177,8 +177,6 @@ - proto: tcp ports: - 22 - - 80 - - 443 - "{{ havoc_teamserver_port | default(40056) }}" - "{{ havoc_http_port | default(8080) }}" - "{{ gophish_admin_port }}" diff --git a/deploy.py b/deploy.py index bb18830..ba6457f 100755 --- a/deploy.py +++ b/deploy.py @@ -1641,7 +1641,7 @@ def ssh_to_instance(config): ssh_users = [config.get('ssh_user')] elif config['provider'] == 'aws': # For AWS, try multiple common usernames - ssh_users = ['kali', 'ec2-user', 'ubuntu', 'root'] + ssh_users = ['kali'] elif config['provider'] == 'linode': ssh_users = ['root'] else: @@ -1667,7 +1667,8 @@ def ssh_to_instance(config): "-o", "IdentitiesOnly=yes", "-o", "ConnectTimeout=10", "-i", ssh_key, - f"{ssh_user}@{ip}" + f"{ssh_user}@{ip}", + "tmux" ] # Execute SSH command with timeout