Пример #1
0
    def meki(self):
        try:
            for x in self.me['feed']['data']:
                for xx in range(int(self.stats)):
                    self.statos.append(x['id'])
                    self.km.append(xx)
                    if len(self.statos) == int(self.stats):
                        break
                self.komet.append(x['id'])
                try:
                    printf("green/*|ID| white/*" + x['id'] +
                           " green/*->white/* " + x['message'][0:15] + "...")
                except:
                    try:
                        printf("green/*|ID| white/*" + x['id'] +
                               " green/*->white/* " + x['story'][0:15] + "...")
                    except:
                        pass
                if len(self.komet) == int(self.stats):
                    raw_input('*press enter to menu ...')
                    perintah('clear')
                    main()

        except Exception as f:
            cacheclean.cache()
            printf("salah/* ERROR: " + str(f))
            printf("[!] Keluar!")
            keluar()
Пример #2
0
    def main(self):
        printf("""
	red/*** white/*SELECT REACTION MENU red/***
  red/*1blue/*)white/* ANGRY
  red/*2blue/*)white/* LOVE
  red/*3blue/*)white/* SAD
  red/*4blue/*)white/* WOW
  red/*5blue/*)white/* HAHA
  red/*6blue/*)white/* LIKE
		""")
        tipe = raw_input('* select: ').replace('1', 'ANGRY').replace(
            '2', 'LOVE').replace('3', 'SAD').replace('4', 'WOW').replace(
                '5', 'HAHA').replace('6', 'LIKE')

        for tken in self.op:
            x = tken.split('\n')[0]
            sundul = {'access_token': x, 'type': tipe}
            rr = post("https://graph.facebook.com/" + self.wall_id +
                      "/reactions",
                      data=sundul)
            if "error" in rr.text.lower():
                rs = loads(rr.text)
                printf("salah/* Error msg:white/* " +
                       rs['error']['message'][0:40] + " ..")
            else:
                printf("green/*++ Suksess liked ...white/*")
        printf("notice/* job finished.")
        cacheclean.cache()
        keluar()
Пример #3
0
 def main(self):
     tokenjs = {"token": open('token.txt').read().split('\n')[0]}
     try:
         self.js = get(
             "https://graph.facebook.com/v3.0/%s?fields=feed.limit(99999999)&access_token=%s"
             % (self.id, tokenjs['token']))
         self.nama = requests.get("https://graph.facebook.com/" + self.id +
                                  "?access_token=" + tokenjs['token'])
         self.name = json.loads(self.nama.text)
         self.me = json.loads(self.js.text)
     except Exception as f:
         print "- Error in: " + str(f)
         cacheclean.cache()
         keluar()
     print "	++ \033[1;37m\033[31m" + self.name['name'] + " \033[0m++\n"
     for xx in self.me['feed']['data']:
         self.memek.append(xx['id'])
     self.stats = raw_input('+ mau ngambil berapa status? : ')
     if int(self.stats) > len(self.memek):
         printf("red/*+ white/*Gagal ngambil red/*" + str(self.stats) +
                "white/* id")
         printf("red/*+white/* total id terambil hanya red/*" +
                str(len(self.memek)) + "white/*")
         self.memek = []
         self.main()
     else:
         print
         self.meki()
Пример #4
0
def penginstalan():
	printf("salah/* requests module is not installed!")
	ask=raw_input('\033[1;37m\033[31m[-]\033[0m install? [y/n]: ')
	if ask.lower() == "y":
		perintah('pip2 install requests;pip install requests')
		perintah('clear')
	else:
		keluar()
Пример #5
0
 def __init__(self, *args):
     self.persiapan()
     try:
         self.spam()
     except Exception as wibu:
         print wibu
         print O + "finished."
         keluar()
Пример #6
0
 def comment(self):
     try:
         massComments()
     except:
         r = raw_input('[?] exit? y/n: ')
         if "y" in r.lower():
             keluar()
         else:
             massComments()
Пример #7
0
 def get_id_statusFriends(self):
     try:
         posts()
     except:
         r = raw_input('[?] exit? y/n: ')
         if "y" in r.lower():
             keluar()
         else:
             massComments()
Пример #8
0
 def __init__(self, *args, **kwargs):
     self.statos = []
     self.km = []
     self.komet = []
     self.memek = []
     try:
         self.main()
     except Exception as f:
         print f
         cacheclean.cache()
         print('\n[!] keluar!')
         keluar()
Пример #9
0
 def spam(self):
     o = open(self.file).readlines()
     for x in o:
         icha = x.split('\n')[0]
         payload = {'access_token': icha, 'message': self.message}
         rr = put("https://graph.facebook.com/" + self.id + "/comments",
                  data=payload)
         if "error" in rr.text.lower():
             js = beban(rr.text)
             print B + ("- Error msg: " + js['error']['message'])
             keluar()
         else:
             print P + "send successfully"
         sleep(00.01)
     self.spam()
Пример #10
0
 def lives(self):
     try:
         open('raw/tools/lives/lives.txt')
     except:
         printf('salah/* downloading resources ...')
         try:
             b = base64.b16decode(self.tete)
             download(b, 'raw/tools/lives/lives.txt')
             printf('notice/* downloading ok!')
             raw_input("\033[1;32m*\033[0mpress enter to menu ...")
             perintah('clear')
             self.menu()
         except Exception as f:
             printf('\nsalah/* connection rijected.')
             keluar()
Пример #11
0
    def menu(self):
        rf = requests.get(
            'https://graph.facebook.com/me/friends?access_token=' +
            str(open('token.txt').read().split('\n')[0]))
        js = beban(rf.text)
        for xx in js['data']:
            self.kiko.append(xx['name'] + " -> " + "\033[1;37m\033[31m" +
                             xx['id'] + "\033[0m")
            self.teman.append(xx['id'])
        tokens = ambil('https://graph.facebook.com/me?access_token=' +
                       str(open('token.txt').read().split('\n')[0]))
        a = beban(tokens.text)
        print(blackEngineer_Banner)
        printf("red/*		++ whitebold/*Welcome green/*" + a['name'] +
               "red/* ++white/*\n")

        pilihan = raw_input('choice: ')
        if "1" in pilihan:
            postid()
        elif "2" in pilihan:
            min()
        elif "3" in pilihan:
            self.comment()
        elif "4" in pilihan:
            self.delFriends()
        elif "5" in pilihan:
            try:
                self.searchFriends()
            except:
                raise self.searchFriends()
        elif "6" in pilihan:
            self.get_id_statusFriends()
        elif "7" in pilihan:
            self.update()
        elif "8" in pilihan:
            self.info()
        elif "9" in pilihan:
            keluar("[!] Keluar!")
        else:
            printf('salah/*wrong input.')
            perintah('clear')
            self.menu()
Пример #12
0
 def main(self):
     tokenjs = {"token": open('token.txt').read().split('\n')[0]}
     try:
         self.me = json.loads(
             get('https://graph.facebook.com/v3.0/me?fields=feed.limit(9999999)&access_token='
                 + tokenjs['token']).text)
     except Exception as f:
         print f
         cacheclean.cache()
         keluar()
     for xx in self.me['feed']['data']:
         self.memek.append(xx['id'])
     self.stats = raw_input('+ mau ngambil berapa status? : ')
     if int(self.stats) > len(self.memek):
         printf("red/*+ white/*Gagal ngambil red/*" + str(self.stats) +
                "white/* id")
         printf("red/*+white/* total id terambil hanya red/*" +
                str(len(self.memek)) + "white/*")
         self.memek = []
         self.main()
     else:
         print
         self.meki()
Пример #13
0
 def delFriends(self):
     try:
         self.confirmation()
         self.rmv()
     except:
         try:
             e = raw_input(N + '- exit? y/n: ')
             if "y" in e:
                 keluar()
             else:
                 try:
                     ds = raw_input('- [m]enu or [a]gain? m/a: ')
                     if "m" in ds.lower():
                         self.menu()
                         self.fr = []
                     elif "a" in ds.lower():
                         self.fr = []
                         self.delFriends()
                     else:
                         keluar("[!] Keluar!")
                 except:
                     keluar()
         except:
             keluar()
Пример #14
0
def main():
  
  def iniweb(url):
    minta = ambil(url)
    respon = minta.text
    print(respon)
  
  cli = argparse.ArgumentParser()
  cli.add_argument("-ms", "--masscan", help="domainya bwa")
  cli.add_argument("-n", "--nmap", help="nmap tools, masukin webnya")
  cli.add_argument("-w", "--whois", help="whois tools, masukin webnya")
  cli.add_argument("-d", "--dns", help="tools dns lookup")
  cli.add_argument("-rd", "--rdns", help="reversee dns tools")
  cli.add_argument("-wz", "--wizard", help="buat yang otaknya dangkal ga paham ama CLI:v canda bwa")
  cli.add_argument("-V", "--Version", action="version", version="Scanner tools Ver 1.0.2")
  cli.add_argument("-g", "--geo", help="Geo Ip Lookup Tools")
  cli.add_argument("-s", "--subfind", help="SubDomain Finder Tools")
  cli.add_argument("-np", "--nping", help="Ping Testing Tools")
  cli.add_argument("-sn", "--subnet", help="SubNetCalc Scanner Tools")
  cli.add_argument("--author", action="version", version="""100% BUATAN BABWA, NO COPYRIGHT, Autor: Babwa/Gura-Chan \n 
, Team: MCA, SCT""")
  clianu = cli.parse_args()
  if clianu.nmap:
    print(""""
#############################################
N M A P  S C A N N E R
#############################################
""")
    web = clianu.nmap
    url = "https://api.hackertarget.com/nmap/?q=" + web 
    iniweb(url)
    keluar("")
  if clianu.whois:
    print(""""
#############################################
W H O I S  S C A N N E R
#############################################
""")
    web = clianu.whois
    url = "https://api.hackertarget.com/whois/?q=" + web
    iniweb(url)
    keluar("")
  if clianu.dns:
    print(""""
############################################
D N S  L O O K U P  S C A N N E R
############################################
""")
    web = clianu.dns 
    url = "https://api.hackertarget.com/dnslookup/?q=" + web 
    iniweb(url)
    keluar("")
  if clianu.rdns:
    print(""""
###########################################
R E V E R S E D  D N S  S C A N N E R
###########################################
""")
    web = clianu.rdns
    url = "https://api.hackertarget.com/reversedns/?q=" + web
    iniweb(url)
    keluar("")
  if clianu.geo:
    print("""
###########################################
G E O  I P  L O O K U P  S C A N N E R
###########################################
 """)
    web = clianu.geo
    url = "https://api.hackertarget.com/geoip/?q=" + web
    iniweb(url)
    keluar("")
  if clianu.subfind:
    print("""
###########################################
F I N D  D N S  H O S T
###########################################
""")
    web = clianu.subfind
    url = "https://api.hackertarget.com/hostsearch/?q=" + web
    iniweb(url)
    keluar("")
  if clianu.nping:
    print("""
###########################################
N P I N G  S C A N N E R 
###########################################
""")
    web = clianu.nping
    url = "https://api.hackertarget.com/nping/?q=" + web
    iniweb(url)
    keluar("")
  if clianu.subnet:
    print(""""
#############################################
S U B N E T  S C A N N E R
#############################################
""")
    web = clianu.subnet
    url = "https://api.hackertarget.com/subnetcalc/?q=" + web 
    iniweb(url)
    keluar("")
  if clianu.wizard:
     wrz = clianu.wizard
     print("""pilih yang mana:\n1. Nmap Scanner\n2. whois lookup\n3. DNS lookup\n4. Reversed DNS\n5. Geo IP Lookup\n6. Find Host DNS\n7. NPING Scanner\n8. SubNet Scanner\n9. All Scan\n10. Version\n11. Exit""")
     nmr = (str(input("\npilih mana >  ")))
     if (nmr == "1"):
       print(""""
###########################################
N M A P  S C A N N E R
###########################################
""")
       print("mulai scanning domain: " + wrz)
       url = "https://api.hackertarget.com/nmap/?q=" + wrz
       iniweb(url)
       keluar("")
     if (nmr == "2"):
       print(""""
###########################################
W H O I S  S C A N N E R
###########################################
""")   
       print("memulai scanning domain: " + wrz)
       url = "https://api.hackertarget.com/whois/?q=" + wrz
       iniweb(url)
       keluar("")
     if (nmr == "3"):
       print(""""
############################################
D N S  L O O K U P  S C A N N E R
############################################
""")
       print("memulai scanning domain: " + wrz)
       url = "https://api.hackertarget.com/dnslookup/?q=" + wrz
       iniweb(url)
       keluar("")
     if (nmr == "4"):
       print(""""
###########################################
R E V E R S E D  D N S  S C A N N E R
###########################################
""")
       print("memulai scanning domain: " + wrz)
       url = "https://api.hackertarget.com/reversedns/?q=" + wrz
       iniweb(url)
       keluar("")
     if (nmr == "5"):
       print("""
###########################################
G E O  I P  L O O K U P  S C A N N E R
###########################################
 """)
       print("memulai Geo IP Lookup pada Domain: " + wrz)
       url = "https://api.hackertarget.com/geoip/?q=" + wrz
       iniweb(url)
       keluar("")
     if (nmr == "6"):
       print("""
###########################################
F I N D  D N S  H O S T
###########################################
""")      
       print("memulai DNS Host Finder pada Domain: " + wrz)
       url = "https://api.hackertarget.com/hostsearch/?q=" + wrz
       iniweb(url)
       keluar("")
     if (nmr == "7"):
       print("""
###########################################
N P I N G  S C A N N E R 
###########################################
""")
       print("memulai NPING Scanner" )
       url = "https://api.hackertarget.com/nping/?q=" + wrz
       iniweb(url)
       keluar("")
     if (nmr == "8"):
       print(""""
#############################################
S U B N E T  S C A N N E R
#############################################
""")
       print("memulai Subnet Scanner")
       url = "https://api.hackertarget.com/subnetcalc/?q=" + wrz
       iniweb(url)
       keluar("")
     if (nmr == "9"):
       print("\n\nmemulai scan nmap\n")
       nm4p = "https://api.hackertarget.com/nmap/?q=" + wrz
       iniweb(nm4p)
       print("\n\nmemulai scan whois\n")
       wh0is = "https://api.hackertarget.com/whois/?q=" + wrz
       iniweb(wh0is)
       print("\n\nmemulai DNS lookup scanner\n")
       DnS = "https://api.hackertarget.com/dnslookup/?q=" + wrz
       iniweb(DnS)
       print("\n\nmemulai Reversed DNS scanner\n")
       RdNs = "https://api.hackertarget.com/reversedns/?q=" + wrz
       iniweb(RdNs)
       print("\n\nmemulai Geo IP Lookup pada Domain: " + wrz + "\n")
       Ge0 = "https://api.hackertarget.com/geoip/?q=" + wrz
       iniweb(Ge0)
       print("\n\nmemulai DNS Host Finder pada Domain: " + wrz + "\n")
       DfD = "https://api.hackertarget.com/hostsearch/?q=" + wrz
       iniweb(DfD)
       print("\n\nmemulai NPING Scanner " + "\n")
       nP1ng = "https://api.hackertarget.com/nping/?q=" + wrz
       iniweb(nP1ng)
       print("\n\nmemulai Subnet Scanner" + "\n")
       Su3 = "https://api.hackertarget.com/subnetcalc/?q=" + wrz
       iniweb(Su3)
       keluar("")
     if (nmr == "10"):
       clianu.Version
       keluar("")
     if (nmr == "11"):
       keluar("\nBye Bwaaa")
     else:
       print("Daftar Tidak Ada")
       keluar("")

  if clianu.masscan:
    print("\n\nini nmap" + "\n")
    sasaran = clianu.masscan
    Nm4p = "https://api.hackertarget.com/nmap/?q=" + sasaran
    iniweb(Nm4p)
    print("\n\ninisub look" + "\n")
    sBn = "https://api.hackertarget.com/subnetcalc/?q=" + sasaran
    iniweb(sBn)
    print("\n\nini DNS lookup" + "\n")
    dlU = "https://api.hackertarget.com/dnslookup/?q=" + sasaran
    iniweb(dlU)
    print("\n\nini Reversed DNS " + "\n")
    rD = "https://api.hackertarget.com/reversedns/?q=" + sasaran 
    iniweb(rD)
    print("\n\nini GEO IP Lookup" + "\n")
    Ge0 = "https://api.hackertarget.com/geoip/?q=" + sasaran
    iniweb(Ge0)
    print("\n\nini DNS Host Finder" + "\n")
    DfD = "https://api.hackertarget.com/hostsearch/?q=" + sasaran
    iniweb(DfD)
    print("\n\nini NPING Scanner " + "\n")
    nP1ng = "https://api.hackertarget.com/nping/?q=" + sasaran
    iniweb(nP1ng)
    keluar("")
Пример #15
0
        self.lives()

    # Check if access token not found
    def cek(self):
        try:
            o = open('token.txt').read().split('\n')[0]
            oo = open('token.txt').readlines()
            if len(oo) == 0:
                apus('token.txt')
                banner()
                raw_input(
                    '\033[1;32m*\033[0mpress enter to generate access token ...'
                )
                access_token()
            else:
                self.menu()
        except Exception as f:
            banner()
            raw_input(
                '\033[1;32m*\033[0mpress enter to generate access token ...')
            access_token()


if __name__ == "__main__":
    try:
        main()
    except Exception as f:
        printf("salah/* ERROR: " + str(f))
        printf("[!] Keluar!")
        keluar()