-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(#3208): fix hydra installation and add new role to search for ale…
…rts.
- Loading branch information
1 parent
537cc41
commit c80948d
Showing
7 changed files
with
50 additions
and
16 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
tests/end_to_end/data/ansible_roles/manage_alerts/tasks/search_alert.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
- name: Search alert in alerts log | ||
become: true | ||
lineinfile: | ||
path: /var/ossec/logs/alerts/alerts.json | ||
regexp: "{{ custom_regex }}" | ||
state: absent | ||
check_mode: true | ||
changed_when: false | ||
register: alert | ||
until: alert.found != 0 | ||
retries: "{{ attempts }}" | ||
delay: "{{ time_btw_attempts }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,7 +47,8 @@ | |
"agent": { | ||
"instances": 1, | ||
"distros": [ | ||
"Windows" | ||
"Windows", | ||
"Ubuntu" | ||
] | ||
} | ||
}, | ||
|
4 changes: 2 additions & 2 deletions
4
.../test_basic_cases/test_brute_force/test_brute_force_rdp/data/playbooks/configuration.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
- name: Configure local environment | ||
hosts: localhost | ||
hosts: ubuntu-agent | ||
become: true | ||
tasks: | ||
|
||
# Install hydra to attempt the RDP brute force attack | ||
- name: Install hydra | ||
package: | ||
name: hydra | ||
name: hydra=9.2-1ubuntu1 | ||
state: present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters