sshx / index.js
semuthitamku's picture
Create index.js
b0a38b7 verified
raw
history blame contribute delete
237 Bytes
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' }
)