Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/michalswi/xrdp-gcp-ce
- Owner: michalswi
- Created: 2024-01-19T11:31:32.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-11-06T13:34:53.000Z (8 days ago)
- Last Synced: 2024-11-06T14:30:01.136Z (8 days ago)
- Topics: caido, gcp, rdp, remote-desktop, xrdp
- Language: HCL
- Homepage:
- Size: 1.58 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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=.jsonexport RDPUSER=foo && export RDPPASS=bar
terraform init
terraform plan -var project= -var user=$RDPUSER
terraform apply -var project= -var user=$RDPUSER -auto-approveterraform destroy -var project= -var user=$RDPUSER -auto-approve
./clear.shis visible in tf output
ssh -i id_rsa $RDPUSER@
```### \# ansible part
```
add >> ./inventory/hosts.iniansible-playbook \
--extra-vars RDP_USER=$RDPUSER \
--extra-vars RDP_PASS=$RDPPASS \
setup.yml -i inventory/hosts.ini -vvsudo 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)