forked from Riders004/rdp
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (40 loc) · 1.69 KB
/
apk.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
37
38
39
40
name: TIME PASS
on:
workflow_dispatch:
inputs:
increment:
type: string
description: "Enter Your NGROK TOKEN"
required: true
default: ""
jobs:
build:
runs-on: windows-latest
timeout-minutes: 9999
steps:
- name: Download Ngrok.
run: |
Invoke-WebRequest https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-windows-amd64.zip -OutFile ngrok.zip
Invoke-WebRequest https://raw.githubusercontent.com/Riders004/rdp/master/start.bat -OutFile start.bat
Invoke-WebRequest https://raw.githubusercontent.com/Riders004/rdp/master/download1.jpeg -OutFile wallpaper.bat
Invoke-WebRequest https://raw.githubusercontent.com/Riders004/rdp/master/loop.bat -OutFile loop.bat
- name: Extract Ngrok File.
run: Expand-Archive ngrok.zip
- name: Connect Ngrok.
run: |
.\ngrok\ngrok.exe authtoken $Env:NGROK_AUTH
echo ${{ github.event.inputs.increment }}
env:
NGROK_AUTH: ${{ github.event.inputs.increment }}
- name: Windows10 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.bat D:\a\wallpaper.bat
- name: Tunnel.
run: Start-Process Powershell -ArgumentList '-Noexit -Command ".\ngrok\ngrok.exe tcp --region ap 3389"'
- name: Connect Rdp.
run: cmd /c start.bat
- name: win10 RDP.
run: cmd /c loop.bat