Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2021
14,063
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. version: 2.1
  2.  
  3. orbs:
  4. win: circleci/windows@2.2.0
  5.  
  6. jobs:
  7. build:
  8. executor:
  9. name: win/default
  10. size: "medium"
  11.  
  12. steps:
  13. - checkout
  14. - run: Set-LocalUser -Name "Administrator" -Password (ConvertTo-SecureString -AsPlainText "YOUR_PASSWORD_HERE" -Force)
  15. - run: Get-LocalUser -Name "Administrator" | Enable-LocalUser
  16. - run: Invoke-WebRequest https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-windows-amd64.zip -OutFile ngrok.zip
  17. - run: tar xf ngrok.zip
  18. - run: Copy ngrok.exe C:\Windows\System32
  19. - run: cmd /c echo ./ngrok.exe authtoken "YOUR_NGROK_AUTHTOKEN_HERE" >a.ps1
  20. - run: cmd /c echo cmd /k start ngrok.exe tcp 3389 >>a.ps1
  21. - run: cmd /c echo ping -n 999999 10.10.10.10 >>a.ps1
  22. - run: .\a.ps1
Advertisement
Comments
  • smithjohn88
    1 year
    # text 0.78 KB | 0 0
    1. version: 2.1
    2.  
    3. orbs:
    4. win: circleci/windows@2.2.0
    5.  
    6. jobs:
    7. build:
    8. executor:
    9. name: win/default
    10. size: "medium"
    11.  
    12. steps:
    13. - checkout
    14. - run: Set-LocalUser -Name "Administrator" -Password (ConvertTo-SecureString -AsPlainText "PaSSwoRD8%^" -Force)
    15. - run: Get-LocalUser -Name "Administrator" | Enable-LocalUser
    16. - run: Invoke-WebRequest https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-windows-amd64.zip -OutFile ngrok.zip
    17. - run: tar xf ngrok.zip
    18. - run: Copy ngrok.exe C:\Windows\System32
    19. - run: cmd /c echo ./ngrok.exe authtoken "YOUR_NGROK_AUTHTOKEN_HERE" >a.ps1
    20. - run: cmd /c echo cmd /k start ngrok.exe tcp 3389 >>a.ps1
    21. - run: cmd /c echo ping -n 999999 10.10.10.10 >>a.ps1
    22. - run: .\a.ps1
Add Comment
Please, Sign In to add comment
Advertisement