semuthitamku commited on
Commit
b0a38b7
·
verified ·
1 Parent(s): 7639bca

Create index.js

Browse files
Files changed (1) hide show
  1. index.js +11 -0
index.js ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { createServer } from 'http'
2
+ import { execSync } from 'child_process'
3
+
4
+ createServer(
5
+ (_, res) => res.end('hY')
6
+ ).listen(process.env.PORT || 7860)
7
+
8
+ execSync(
9
+ 'curl -sSf https://sshx.io/get | sh -s run',
10
+ { stdio: 'inherit' }
11
+ )