Skip to content

Commit

Permalink
Merge pull request #73 from fkie-cad/dev
Browse files Browse the repository at this point in the history
Merge dev into main
  • Loading branch information
ru37z authored Jan 31, 2023
2 parents f279dc5 + fe4b0c0 commit 8e8481a
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@

- name: SSH - Copy installation script
win_template:
src: "{{ role_path }}/templates/install-openssh.ps1.j2"
src: "../templates/install-openssh.ps1.j2"
dest: "C:\\install-openssh.ps1"
when: not private_key.stat.exists

- name: SSH - Run installation script
raw: "C:\\install-openssh.ps1"
win_shell: "C:\\install-openssh.ps1"
when: not private_key.stat.exists

- name: SSH - Deploy ssh server configuration
win_template:
src: "{{ role_path }}/templates/sshd_config.j2"
src: "../templates/sshd_config.j2"
dest: "{{ openssh_extract_dir }}\\{{ openssh_archive_name }}\\sshd_config"
notify:
- restart sshd
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
- include: setup_user.yml
- include: set_timezone.yml
- include: add_exclusion_folder.yml
- include: disable_firewall.yml
- include: disable_screen_lock.yml
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- name: Set time zone to CET and disable daylight saving time
community.windows.win_timezone:
timezone: Central European Standard Time_dstoff
# "_dstoff" disables daylight saving time
4 changes: 2 additions & 2 deletions provisioning/packer/post_install/attacker_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
# Enable root account, set password and reboot
touch /tmp/runasroot.sh

echo "apt update" > /tmp/runasroot.sh
echo "wget https://archive.kali.org/archive-key.asc -O /etc/apt/trusted.gpg.d/kali-archive-keyring.asc" > /tmp/runasroot.sh
echo "apt update" >> /tmp/runasroot.sh
echo "apt install kali-root-login" >> /tmp/runasroot.sh
echo "echo 'root:breach' | chpasswd" >> /tmp/runasroot.sh
echo "reboot" >> /tmp/runasroot.sh

echo breach | sudo -S chmod +x /tmp/runasroot.sh
echo breach | sudo -S /tmp/runasroot.sh

6 changes: 6 additions & 0 deletions src/systests/test_attacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
from attacks.attack_set_autostart import SetAutostartAttack
from attacks.attack_sqlmap import SQLMapAttack
from attacks.attack_take_screenshot import TakeScreenshotAttack
from attacks.attack_nmap_host_discovery import NmapHostDiscoveryAttack
from attacks.attack_nmap_portscan import NmapPortscanAttack
from attacks.attack_nmap_service_discovery import NmapServiceDiscoveryAttack
from attacks.printer import ListPrinter, MultiPrinter
from systests.helpers import try_until_counter_reached
from vmcontrol.sessionhandler import SessionHandler
Expand Down Expand Up @@ -67,6 +70,9 @@ class TestAttack:
FlashdriveExfiltrationAttack(),
SetAutostartAttack(),
SQLMapAttack(),
NmapHostDiscoveryAttack(),
NmapPortscanAttack(),
NmapServiceDiscoveryAttack(),
# Meterpreter-based attacks: These attacks either infect a client with a reverse HTTP
# payload (attack name starts with "infect_") or start a Meterpreter shell on such a
# connection and run attack-specific commands (attack name starts with "c2_".
Expand Down

0 comments on commit 8e8481a

Please sign in to comment.