Skip to content

Commit

Permalink
updates+caido
Browse files Browse the repository at this point in the history
  • Loading branch information
ms committed Mar 13, 2024
1 parent e91ee04 commit f67d7cb
Show file tree
Hide file tree
Showing 11 changed files with 54 additions and 34 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ ssh -i id_rsa $RDPUSER@<vm_pip>
### \# ansible part

```
cd ansible/
- add <vm_pip> >> ./inventory/hosts.ini
add <vm_pip> >> ./inventory/hosts.ini
ansible-playbook \
--extra-vars RDP_USER=$RDPUSER \
Expand All @@ -58,4 +57,10 @@ After you connect you can **cancel** this:

**Firefox** you can find in `Applications / Internet`:

![fx](./img/firefox.png)
![fx1](./img/fx1.png)
![fx2](./img/fx2.png)

**Caido** you can find in `Applications / Development`:

![c1](./img/c1.png)
![c2](./img/c2.png)
Binary file added img/c1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/c2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/fx1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
9 changes: 9 additions & 0 deletions roles/apply/tasks/caido.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
- name: install caido
# https://github.com/caido/caido/releases
shell: |
wget https://storage.googleapis.com/caido-releases/"{{ caido_version }}"/caido-desktop-"{{ caido_version }}"-linux-x86_64.deb
sudo dpkg -i caido-desktop-"{{ caido_version }}"-linux-x86_64.deb
register: caido
- debug:
msg: "{{ caido.stdout }}"
6 changes: 6 additions & 0 deletions roles/apply/tasks/firefox.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
- name: install firefox
command: sudo snap install firefox
register: firefox
- debug:
msg: "{{ firefox.stdout }}"
35 changes: 4 additions & 31 deletions roles/apply/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,5 @@
---
- name: install and configure xfce4
shell: |
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install xfce4
sudo apt install xfce4-session
echo xfce4-session >~/.xsession
register: xfce4
- debug:
msg: "{{ xfce4.stdout }}"

- name: install and configure xrdp
shell: |
sudo apt-get -y install {{ xrdp_package }}
sudo systemctl enable {{ xrdp_package }}
sudo systemctl restart {{ xrdp_package }}
register: xrdp
- debug:
msg: "{{ xrdp.stdout }}"

- name: install firefox
command: sudo snap install firefox
register: firefox
- debug:
msg: "{{ firefox.stdout }}"

- name: change user password
shell: |
echo "{{ rdp_user }}:{{ rdp_pass }}" | sudo chpasswd
register: rdp_user
- debug:
msg: "{{ rdp_user.stdout }}"
- include_tasks: xrdp.yml
- include_tasks: firefox.yml
- include_tasks: caido.yml
- include_tasks: pass.yml
7 changes: 7 additions & 0 deletions roles/apply/tasks/pass.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
- name: change user password
shell: |
echo "{{ rdp_user }}:{{ rdp_pass }}" | sudo chpasswd
register: rdp_user
- debug:
msg: "{{ rdp_user.stdout }}"
19 changes: 19 additions & 0 deletions roles/apply/tasks/xrdp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
- name: install and configure xfce4
shell: |
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install xfce4
sudo apt install xfce4-session
echo xfce4-session >~/.xsession
register: xfce4
- debug:
msg: "{{ xfce4.stdout }}"

- name: install and configure xrdp
shell: |
sudo apt-get -y install {{ xrdp_package }}
sudo systemctl enable {{ xrdp_package }}
sudo systemctl restart {{ xrdp_package }}
register: xrdp
- debug:
msg: "{{ xrdp.stdout }}"
1 change: 1 addition & 0 deletions setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
vars:
rdp_user: "{{ RDP_USER }}"
rdp_pass: "{{ RDP_PASS }}"
caido_version: "v0.33.0"
roles:
- role: apply

0 comments on commit f67d7cb

Please sign in to comment.