#!/usr/bin/python
#-*- coding: utf-8 -*-
#Developer by Bafomet
import subprocess
import os
import sys
import readline
#set color
WHSL = '\033[1;32m'
ENDL = '\033[0m'
REDL = '\033[0;31m'
GNSL = '\033[1;34m'
os.system("printf '\033]2;Subjection San\a'")
os.system('clear')
page_1 = '''{1}
 {1}{0}[{2} Official channel {0}tg {1}@osint_san_framework {1}{0}]                {0}[{2} GitHub {1}https://github.com/Bafomet666 {1}{0}]            {0}[ {2}патч 3.1 {1}{0}]

{0}                                    _______   ________  _______          ______    ______   ______  __    __  ________  {1}     __    __ 
{0}                                   /       \ /        |/       \        /      \  /      \ /      |/  \  /  |/        | {1}    /  |  /  |
{0}                                   $$$$$$$  |$$$$$$$$/ $$$$$$$  |      /$$$$$$  |/$$$$$$  |$$$$$$/ $$  \ $$ |$$$$$$$$/  {1}    $$ |  $$ |
{0}                                   $$ |__$$ |$$ |__    $$ |  $$ |      $$ |  $$ |$$ \__$$/   $$ |  $$$  \$$ |   $$ |    {1}    $$  \/$$/ 
{0}                                   $$    $$< $$    |   $$ |  $$ |      $$ |  $$ |$$      \   $$ |  $$$$  $$ |   $$ |    {1}      $$  $$<  
{0}                                   $$$$$$$  |$$$$$/    $$ |  $$ |      $$ |  $$ | $$$$$$  |  $$ |  $$ $$ $$ |   $$ |    {1}      $$$$  \ 
{0}                                   $$ |  $$ |$$ |_____ $$ |__$$ |      $$ \__$$ |/  \__$$ | _$$ |_ $$ |$$$$ |   $$ |    {1}     $$ /$$  |
{0}                                   $$ |  $$ |$$       |$$    $$/       $$    $$/ $$    $$/ / $$   |$$ | $$$ |   $$ |    {1}    $$ |  $$ |
{0}                                   $$/   $$/ $$$$$$$$/ $$$$$$$/         $$$$$$/   $$$$$$/  $$$$$$/ $$/   $$/    $$/     {1}    $$/   $$/ 
                                                                                                                                                                                                                                                                                                                                                                                                                     
 {2}Framework :{2}{0} OSINT SAN.{0}
 {2}Update{0} RED Alert v-3.0

 {2}Сначала установи : {0} sudo pip3 install -r requerements.txt

 {2}Зависимости обязательные к установке. {2}
 {0}
   sudo apt install etherape
   sudo pip3 install wxPython
   sudo apt install android-tools-adb android-tools-fastboot
 
 {2}Зависимость для Big Bro и Beff XSS {2}

  {1} Ngrok  https://ngrok.com/download

  {0} Запуск для Big Bro 8.0  {1} sudo ./ngrok http 8080
  
  {0} Запуск для Beff XSS {1} ./ngrok start --all

 
 {2}Видеогайды по установке ngrok {2}{0} 1 https://www.youtube.com/watch?v=xkxsXLH8iKs {0}

                                2 https://www.youtube.com/watch?v=cQhnE_PORgg {1}
    
{2} У вас может быть разный pip при install. Но ставить все и запускать надо на python3 {2}
{2} eсли вдруг установка не прошла, копируйте нужный вам модуль, и гуглите установку. {2}


 {0}[ {1}99{0} ] {2}Выйти в главное меню...                  

'''.format(GNSL, REDL, WHSL)
def main():
    print(page_1)
    option = input(REDL + " └──>" + ENDL +" Введите 99 для выхода : ")
    
    while(1):
        if option == '99':
            print(("{1} [{0} + {1}]{2} Спасибо за использование нашего Exploit.").format(REDL, GNSL, WHSL))
            os.system("exit")
            exit()
            option = input(ENDL + ""+GNSL+"["+REDL + " menu " + GNSL + "]"+ENDL + " :")
            
        else:
            os.system("python3 subjection.py")
try:
    main()

except KeyboardInterrupt:
    sys.exit(1)
except KeyboardInterrupt:
        print ("Ctrl+C pressed...")
