Giter Site home page Giter Site logo

kc-ios-hw-3's People

Contributors

bodouralrashidi avatar omar-barmej avatar omsi96 avatar shaimaa1236 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

kc-ios-hw-3's Issues

١١

try:
import requests
import uuid
import time
except Exception as e:
print(e)
logo = ("""

      ("--------------------------")
      ("Instagram ib2_n)
      ("--------------------------")

""")

print(logo)
user = input('Enter username: ')
password = input('Enter password: ')
target = str(input(("Target:")))
sle = int(input("Enter sleep: "))
def login():
global target
r = requests.Session()

uid = str(uuid.uuid4()) 

url = "https://i.instagram.com/api/v1/accounts/login/" 

headers = { 
    'User-Agent': 'Instagram 113.0.0.39.122 Android (24/5.0; 515dpi; 1440x2416; huawei/google; Nexus 6P; angler; angler; en_US)', 
    "Accept": "*/*", 
    "Accept-Encoding": "gzip, deflate", 
    "Accept-Language": "en-US", 
    "X-IG-Capabilities": "3brTvw==", 
    "X-IG-Connection-Type": "WIFI", 
    "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8", 
    'Host': 'i.instagram.com' 
} 

data = { 
    '_uuid': uid, 
    'username': user, 
    'enc_password': '#PWD_INSTAGRAM_BROWSER:0:1589682409:{}'.format(password), 
    'queryParams': '{}', 
    'optIntoOneTap': 'false', 
    'device_id': uid, 
    'from_reg': 'false', 
    '_csrftoken': 'missing', 
    'login_attempt_count': '0' 
} 

loginreq = r.post(url, data=data, headers=headers, allow_redirects=True) 
print(loginreq.text) 


if loginreq.text.find("is_private") >= 0: 
    done = 0 
    print("DONE LOGIN") 
    r.headers.update({'X-CSRFToken': loginreq.cookies['csrftoken']}) 
    url_id = "https://www.instagram.com/{}/?__a=1".format(target) 
    url_get_user_id = r.get(url_id).json() 
    print(url_get_user_id) 
    while True: 
        user_id = str(url_get_user_id["logging_page_id"]) 
        your_user_id = str(user_id.split("_")[1])# 4231341234
        urlRep = "https://i.instagram.com/users/" + your_user_id + "/report/" 
        datas = {  
                'source_name': '', 'reason_id': 2, 'frx_context': ''  # self injury
            } 
        req_SessionID = r.post(urlRep, data=datas) 
        done += 1 
        print(f"Done self injury  by s : : {done}") 
        time.sleep(0.1) 
else: 
    print("LOGIN FAILED CHECK YOUR INFO!") 

login()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.