-
Notifications
You must be signed in to change notification settings - Fork 92
/
Server.py
27 lines (23 loc) · 881 Bytes
/
Server.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
##https://github.com/AngelSecurityTeam
from subprocess import check_output
import os
from platform import system as systemos, architecture
from wget import download
# NGROK
def Ngrok():
if True:
if 'Android' in str(check_output(('uname', '-a'))) or 'arm' in str(check_output(('uname', '-a'))):
filename = 'ngrok-stable-linux-arm.zip'
else:
ostype = systemos().lower()
if architecture()[0] == '64bit':
filename = 'ngrok-stable-{0}-amd64.zip'.format(ostype)
else:
filename = 'ngrok-stable-{0}-386.zip'.format(ostype)
url = 'https://bin.equinox.io/c/4VmDzA7iaHb/' + filename
download(url)
os.system('unzip ' + filename)
os.system('rm -Rf ' + filename)
os.system('clear')
os.system("chmod +x ngrok")
Ngrok()