Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL: WRONG_VERSION_NUMBER #859

Open
Rudy-RENOUX opened this issue Nov 7, 2023 · 2 comments
Open

SSL: WRONG_VERSION_NUMBER #859

Rudy-RENOUX opened this issue Nov 7, 2023 · 2 comments
Assignees
Labels

Comments

@Rudy-RENOUX
Copy link

Hello,

When I simulate an attack against a Windows server on a port other than 5985, I get the following error:

python attack_range.py simulate -e ART -t ar-win2016-server-member-1 -te T1053.005-1
fatal: [127.0.0.1]: UNREACHABLE! => {"changed": false, "msg": "ssl: HTTPSConnectionPool(host='127.0.0.1', port=5986): Max retries exceeded with url: /wsman (Caused by SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1129)')))", "unreachable": true}

My first server is a win2016 DC (port 5985): on this port, it works fine
My second server is a win2016 member of the domain (port 5986): ko

My environment is :
python 3.9.17
vagrant 2.3.7

Has anyone come across this problem before ?

@Rudy-RENOUX
Copy link
Author

To solve the issue, in attack_range/modules/ansible/atomic_red_team.yml, i had ansible_winrm_scheme: 'http'

image

@P4T12ICK P4T12ICK self-assigned this Jan 23, 2024
@P4T12ICK P4T12ICK added the local label Jan 23, 2024
@kyusan93
Copy link

It would be better to change from source.
modules/art_simulation_controller.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants