0% found this document useful (0 votes)
605 views1 page

Free RDP From Github

This document defines a continuous integration workflow that sets up a remote desktop tunnel using ngrok. The workflow downloads and extracts ngrok, authenticates it with a secret token, enables remote desktop on the Windows machine, sets up a local administrator account, and creates an ngrok tcp tunnel on port 3389 to expose the remote desktop remotely.

Uploaded by

loco gamer
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
605 views1 page

Free RDP From Github

This document defines a continuous integration workflow that sets up a remote desktop tunnel using ngrok. The workflow downloads and extracts ngrok, authenticates it with a secret token, enables remote desktop on the Windows machine, sets up a local administrator account, and creates an ngrok tcp tunnel on port 3389 to expose the remote desktop remotely.

Uploaded by

loco gamer
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

name: CI

on: [push, workflow_dispatch]

jobs:

build:

runs-on: windows-latest

steps:

- name: Download

run: Invoke-WebRequest https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-


windows-amd64.zip -OutFile ngrok.zip

- name: Extract

run: Expand-Archive ngrok.zip

- name: Auth

run: .\ngrok\ngrok.exe authtoken $Env:NGROK_AUTH_TOKEN

env:

NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }}

- name: Enable TS

run: Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal


Server'-name "fDenyTSConnections" -Value 0

- run: Enable-NetFirewallRule -DisplayGroup "Remote Desktop"

- run: Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal


Server\WinStations\RDP-Tcp' -name "UserAuthentication" -Value 1

- run: Set-LocalUser -Name "runneradmin" -Password (ConvertTo-SecureString -


AsPlainText "P@ssw0rd!" -Force)

- name: Create Tunnel

run: .\ngrok\ngrok.exe tcp 3389

You might also like