-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathinstaOSINT.py
128 lines (113 loc) · 7.83 KB
/
instaOSINT.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
#!/usr/bin/python
# << CODE BY HUNX04
# << MAU RECODE ??? IZIN DULU LAH , MINIMAL TAG AKUN GITHUB MIMIN YANG MENGARAH KE AKUN INI, LEBIH ENAKNYA SIH FORK
# << KALAU DI ATAS TIDAK DI IKUTI MAKA AKAN MENDAPATKAN DOSA KARENA MIMIN GAK IKHLAS DUNIA AKHIRAT SAMPAI 7 TURUNAN
# “Wahai orang-orang yang beriman! Janganlah kamu saling memakan harta sesamamu dengan jalan yang batil,” (QS. An Nisaa': 29). Rasulullah SAW juga melarang umatnya untuk mengambil hak orang lain tanpa izin.
import instaloader #MUDULE
import time
from sys import stderr
import sys
import os
Bl='\033[30m' # VARIABLE COLOR
Re='\033[1;31m'
Gr='\033[1;32m'
Ye='\033[1;33m'
Blu='\033[1;34m'
Mage='\033[1;35m'
Cy='\033[1;36m'
Wh='\033[1;37m'
try:
#LOGO GW
stderr.writelines(f"""{Gr}
{Gr}██╗███╗ ██╗███████╗████████╗ █████╗ {Re}██████╗ ███████╗██╗███╗ ██╗████████╗
{Gr}██║████╗ ██║██╔════╝╚══██╔══╝██╔══██╗ {Re}██╔═══██╗██╔════╝██║████╗ ██║╚══██╔══╝
{Gr}██║██╔██╗ ██║███████╗ ██║ ███████║{Wh}█████╗{Re}██║ ██║███████╗██║██╔██╗ ██║ ██║
{Gr}██║██║╚██╗██║╚════██║ ██║ ██╔══██║{Wh}╚════╝{Re}██║ ██║╚════██║██║██║╚██╗██║ ██║
{Gr}██║██║ ╚████║███████║ ██║ ██║ ██║ {Re}╚██████╔╝███████║██║██║ ╚████║ ██║
{Gr}╚═╝╚═╝ ╚═══╝╚══════╝ ╚═╝ ╚═╝ ╚═╝ {Re}╚═════╝ ╚══════╝╚═╝╚═╝ ╚═══╝ ╚═╝
{Wh} <----- {Gr}O S I N T {Wh}I N S T A G R A M {Wh}B Y {Gr}H U N B Y T S {Wh}----->
""")
print(f"\n {Wh}[ {Gr}! {Wh}] LOGIN YOUR INSTAGRAM ACCOUNT")
US = input(f"\n [ {Gr}+ {Wh}] INPUT USERNAME INSTAGRAM ACCOUNT : {Re}")
PW = input(f" {Wh}[ {Gr}+ {Wh}] INPUT PASSWORD INSTAGRAM ACCOUNT : {Re}")
os.system('clear')
def osintig(US,PW):
stderr.writelines(f"""{Gr}
{Gr}██╗███╗ ██╗███████╗████████╗ █████╗ {Re}██████╗ ███████╗██╗███╗ ██╗████████╗
{Gr}██║████╗ ██║██╔════╝╚══██╔══╝██╔══██╗ {Re}██╔═══██╗██╔════╝██║████╗ ██║╚══██╔══╝
{Gr}██║██╔██╗ ██║███████╗ ██║ ███████║{Wh}█████╗{Re}██║ ██║███████╗██║██╔██╗ ██║ ██║
{Gr}██║██║╚██╗██║╚════██║ ██║ ██╔══██║{Wh}╚════╝{Re}██║ ██║╚════██║██║██║╚██╗██║ ██║
{Gr}██║██║ ╚████║███████║ ██║ ██║ ██║ {Re}╚██████╔╝███████║██║██║ ╚████║ ██║
{Gr}╚═╝╚═╝ ╚═══╝╚══════╝ ╚═╝ ╚═╝ ╚═╝ {Re}╚═════╝ ╚══════╝╚═╝╚═╝ ╚═══╝ ╚═╝
{Wh} <----- {Gr}O S I N T {Wh}I N S T A G R A M {Wh}B Y {Gr}H U N B Y T S {Wh}----->
""")
IG_INSTA = instaloader.Instaloader()
IG_INSTA.login(US, PW)
if not IG_INSTA.context.is_logged_in:
IG_INSTA.context.log(f"\n {Wh}[ {Gr}+ {Wh}] {Re}Login failed!, you account wrong")
else:
IG_INSTA.context.log(f"\n {Wh}[ {Gr}+ {Wh}] {Gr}Login Success!")
time.sleep(3)
user_input = input(f"\n {Wh}[ {Gr}+ {Wh}] INPUT USERNAME TARGET : {Re}")
profile = instaloader.Profile.from_username(IG_INSTA.context, user_input)
print(f"\n {Wh}============================== {Gr}INFORMATION ACCOUNT {Wh}=============================")
print(f"\n {Wh}Username :{Gr} {profile.username}")
print(f" {Wh}Full Name :{Gr} {profile.full_name}")
print(f" {Wh}Id :{Gr} {profile.userid}")
print(f" {Wh}Bio :{Gr} {profile.biography}")
print(f" {Wh}Url Profile :{Gr} {profile.external_url}")
print(f" {Wh}Account Private :{Gr} {profile.is_private}")
print(f" {Wh}Account Business :{Gr} {profile.is_business_account}")
print(f" {Wh}Account business type :{Gr} {profile.business_category_name}")
print(f" {Wh}Followers :{Gr} {profile.followers}")
print(f" {Wh}Following :{Gr} {profile.followees}")
print(f" {Wh}Total Post :{Gr} {profile.mediacount}")
time.sleep(0.3)
print(f"\n {Wh}[ {Gr}+ {Wh}]{Wh} Download profile picture : ")
profile_pic = profile.profile_pic_url
print(profile_pic)
print()
print(f" {Wh}[ {Gr}+ {Wh}]{Wh} Download {Gr}target post : ")
for post in profile.get_posts():
IG_INSTA.download_post(post, target=profile.username)
print()
print(f" {Wh}[ {Gr}+ {Wh}]{Wh} Download {Gr}igtv post : ")
for post in IG_INSTA.get_feed_posts():
IG_INSTA.download_post(post, target=profile.username)
print()
print(f" {Wh}[ {Gr}+ {Wh}]{Wh} Download {Gr}highlights post : ")
for highlight in IG_INSTA.get_highlights(profile):
for post in highlight.get_items():
IG_INSTA.download_storyitem(post, target=profile.username)
print()
def animasi():
for i in range(10):
sys.stdout.write(f'\r {Wh}LOADING {Gr}|')
time.sleep(0.1)
sys.stdout.write(f'\r {Wh}LOADING {Gr}/')
time.sleep(0.1)
sys.stdout.write(f'\r {Wh}LOADING {Gr}-')
time.sleep(0.1)
sys.stdout.write(f'\r {Wh}LOADING {Gr}\\')
animasi()
print(f"\n {Wh}[ {Gr}+ {Wh}]{Wh} Show {Gr}target followers : ")
followers = profile.get_followers()
for follower in followers:
print(f" {Gr}USERNAME : {Wh}{follower.username} {Gr}| ID : {Wh}{follower.userid}")
def animasi():
for i in range(10):
sys.stdout.write(f'\r {Wh}LOADING {Gr}|')
time.sleep(0.1)
sys.stdout.write(f'\r {Wh}LOADING {Gr}/')
time.sleep(0.1)
sys.stdout.write(f'\r {Wh}LOADING {Gr}-')
time.sleep(0.1)
sys.stdout.write(f'\r {Wh}LOADING {Gr}\\')
animasi()
print(f"\n {Wh}[ {Gr}+ {Wh}]{Wh} Show {Gr}target followings : ")
followees = profile.get_followees()
for followee in followees:
print(f" {Gr}USERNAME : {Wh}{followee.username} {Gr}| ID : {Wh}{followee.userid}")
osintig(US,PW)
except KeyboardInterrupt:
print(f" {Wh}[ {Ye}! {Wh}] {Ye}PROGRAM STOPPED...")