Today, i will show you how you can create your own RDP in less than 15 minutes free of cost. No bullshit way to get your hands on a rdp for your tasks on the go.
Specs :
7GB Ram
26 Cores Intel Processor
275 GB Hard disk
Visit ngrok
https://ngrok.com/
Create an account with an email and verify it.
Visit github
https://github.com/
Create an account with an email and verify it.
After registering click on the + button next to your profile icon and select "new repository"
Enter any name for your repository.
Select private
image uploader
Click on create repository.
After it is created
Next, click on settings
In the side bar click on secrets and variables
Select "Actions" from the drop down menu
Click on new repository secret
In the name field type " NGROK_AUTH_TOKEN"
To get the secret phrase, now go back to ngrok
Click on "your authtoken" from the drop down menu
Copy it and paste it in the github and click on add secret.
Now click on "actions" from the menu list and from there click on "setup a workflow yourself"
Now you will land into a notepad like screen where you have to enter a code.
Copy and paste the below code there :
Code:
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
Click on Start Commit
Then click on commit new file
After it loads
Click on "Actions" from the menu bar
Click on the create main.yml file
You will see an option build , click on it
Congratulations you have successfully created your RDP if you see a screen like this
We just need to make sure all the check marks are done untill run set localuser line, we dont have to care about the create tunnel part
Connection:
Open your remote desktop connection app on PC
Now it will ask you for an IP. To get your ip go to ngrok. Click on "Cloud Edge" from the drop down menu
Then select "Endpoints"
That is your ip. Ignore the HTTPS and the forward slashes shown there and just copy the part after it. You can type it down manually or just click on it and copy it.
Now you need to enter your username and password
Go to the github page
Click on the runner Run Set-open loader, you will find your username and password
By default username and password is same for everyone, only the ip differs
The default username and password are username=runneradmin and password=P@ssw0rd!
login and boom you and in your rdp.
Don't close the Dailog Box with command promt in the rdp, just minimise it or your rdp will close too.
Enjoy !
Specs :
7GB Ram
26 Cores Intel Processor
275 GB Hard disk
Visit ngrok
https://ngrok.com/
Create an account with an email and verify it.
Visit github
https://github.com/
Create an account with an email and verify it.
After registering click on the + button next to your profile icon and select "new repository"
Enter any name for your repository.
Select private
image uploader
Click on create repository.
After it is created
Next, click on settings
In the side bar click on secrets and variables
Select "Actions" from the drop down menu
Click on new repository secret
In the name field type " NGROK_AUTH_TOKEN"
To get the secret phrase, now go back to ngrok
Click on "your authtoken" from the drop down menu
Copy it and paste it in the github and click on add secret.
Now click on "actions" from the menu list and from there click on "setup a workflow yourself"
Now you will land into a notepad like screen where you have to enter a code.
Copy and paste the below code there :
Code:
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
Click on Start Commit
Then click on commit new file
After it loads
Click on "Actions" from the menu bar
Click on the create main.yml file
You will see an option build , click on it
Congratulations you have successfully created your RDP if you see a screen like this
We just need to make sure all the check marks are done untill run set localuser line, we dont have to care about the create tunnel part
Connection:
Open your remote desktop connection app on PC
Now it will ask you for an IP. To get your ip go to ngrok. Click on "Cloud Edge" from the drop down menu
Then select "Endpoints"
That is your ip. Ignore the HTTPS and the forward slashes shown there and just copy the part after it. You can type it down manually or just click on it and copy it.
Now you need to enter your username and password
Go to the github page
Click on the runner Run Set-open loader, you will find your username and password
By default username and password is same for everyone, only the ip differs
The default username and password are username=runneradmin and password=P@ssw0rd!
login and boom you and in your rdp.
Don't close the Dailog Box with command promt in the rdp, just minimise it or your rdp will close too.
Enjoy !