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

RDP Github

The workflow downloads Ngrok and uses it to create a tunnel to expose RDP port 3389. It extracts the Ngrok files, connects to an Ngrok auth token, enables RDP access, creates the tunnel on port 3389, and runs scripts to start and continuously restart the RDP session.

Uploaded by

tanggoz
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)
38 views1 page

RDP Github

The workflow downloads Ngrok and uses it to create a tunnel to expose RDP port 3389. It extracts the Ngrok files, connects to an Ngrok auth token, enables RDP access, creates the tunnel on port 3389, and runs scripts to start and continuously restart the RDP session.

Uploaded by

tanggoz
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: amazonRDP

on: workflow_dispatch

jobs:
build:

runs-on: windows-latest
timeout-minutes: 9999

steps:
- name: Downloading Ngrok.
run: |
Invoke-WebRequest https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-
windows-amd64.zip -OutFile ngrok.zip
Invoke-WebRequest
https://raw.githubusercontent.com/GamerGamesYT/rdp2/master/start.bat -OutFile
start.bat
Invoke-WebRequest
https://raw.githubusercontent.com/GamerGamesYT/rdp2/master/loop.bat -OutFile
loop.bat
- name: Extracting Ngrok Files.
run: Expand-Archive ngrok.zip
- name: Connecting to your Ngrok account.
run: .\ngrok\ngrok.exe authtoken $Env:NGROK_AUTH_TOKEN
env:
NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }}
- name: Activating RDP access.
run: |
Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal
Server'-name "fDenyTSConnections" -Value 0
Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal
Server\WinStations\RDP-Tcp' -name "UserAuthentication" -Value 1
- name: Creating Tunnel.
run: Start-Process Powershell -ArgumentList '-Noexit -Command
".\ngrok\ngrok.exe tcp 3389"'
- name: Connecting to your RDP.
run: cmd /c start.bat
- name: RDP sukses bro!
run: cmd /c loop.bat

You might also like