forked from XenosShell/FreeRDP
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 1.76 KB
/
FreeRDP.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: FreeRDP
on: workflow_dispatch
jobs:
build:
runs-on: windows-latest
timeout-minutes: 9999
steps:
- name: Download Ngrok.
run: |
Invoke-WebRequest https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-windows-amd64.zip -OutFile ngrok.zip
Invoke-WebRequest https://raw.githubusercontent.com/XenosShell/FreeRDP/master/start.bat -OutFile start.bat
Invoke-WebRequest https://raw.githubusercontent.com/XenosShell/FreeRDP/master/wallpaper.png -OutFile wallpaper.png
Invoke-WebRequest https://raw.githubusercontent.com/XenosShell/FreeRDP/master/wallpaper.bat -OutFile wallpaper.bat
Invoke-WebRequest https://raw.githubusercontent.com/XenosShell/FreeRDP/master/loop.bat -OutFile loop.bat
- name: Extract Ngrok File.
run: Expand-Archive ngrok.zip
- name: Connect to Ngrok.
run: .\ngrok\ngrok.exe authtoken $Env:NGROK_AUTH_TOKEN
env:
NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }}
- name: Enabling access to RDP.
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
copy wallpaper.png C:\Users\Public\Desktop\wallpaper.png
copy wallpaper.bat C:\Users\Public\Desktop\wallpaper.bat
- name: Open Tunnel.
run: Start-Process Powershell -ArgumentList '-Noexit -Command ".\ngrok\ngrok.exe tcp --region ap 3389"'
- name: Сonnect to your RDP CPU 4 Core - 16GB Ram - 256 SSD.
run: cmd /c start.bat
- name: Successfully made!You can close the tab now.
run: cmd /c loop.bat