Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/michalswi/xrdp-gcp-ce

GCP Compute Engine (VM) with enabled xrdp
https://github.com/michalswi/xrdp-gcp-ce

caido gcp rdp remote-desktop xrdp

Last synced: about 20 hours ago
JSON representation

GCP Compute Engine (VM) with enabled xrdp

Awesome Lists containing this project

README

        

# xrdp-gcp-ce

![](https://img.shields.io/github/issues/michalswi/xrdp-gcp-ce)
![](https://img.shields.io/github/forks/michalswi/xrdp-gcp-ce)
![](https://img.shields.io/github/stars/michalswi/xrdp-gcp-ce)
![](https://img.shields.io/github/last-commit/michalswi/xrdp-gcp-ce)

GCP Compute Enging (VM) with enabled xrdp.

Access to VM from the specific IP only [preferred way].
For simplicty I am using the same user for **ssh** and for **rdp**.

On VM are pre-installed (scroll down for details):
- **firefox**
- **caido**

### \# pre-steps
```
> adjust 'region' in variables.tf
> adjust 'machine_type' in main.tf
> adjust 'source_ranges' in fw_rules.tf
(instead of you can use '0.0.0.0' although it's not recommended)

```

### \# terraform part

```
export GOOGLE_APPLICATION_CREDENTIALS=.json

export RDPUSER=foo && export RDPPASS=bar

terraform init
terraform plan -var project= -var user=$RDPUSER
terraform apply -var project= -var user=$RDPUSER -auto-approve

terraform destroy -var project= -var user=$RDPUSER -auto-approve
./clear.sh

is visible in tf output

ssh -i id_rsa $RDPUSER@
```

### \# ansible part

```
add >> ./inventory/hosts.ini

ansible-playbook \
--extra-vars RDP_USER=$RDPUSER \
--extra-vars RDP_PASS=$RDPPASS \
setup.yml -i inventory/hosts.ini -vv

sudo nmap -v -Pn -p 22,3389

> to connect you can use any RDP app (e.g. Windows App)
```

After you connect you can **cancel** this:
*"Authentication Required to Create Managed Color Device"*

![auth](./img/auth.png)

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

![apps](./img/apps.png)
![apps](./img/caido.png)