Datalux / Osintgram

Osintgram is a OSINT tool on Instagram. It offers an interactive shell to perform analysis on Instagram account of any users by its nickname
GNU General Public License v3.0
9.76k stars 2.16k forks source link

Version 0.8 not working #46

Closed christiansgbass closed 4 years ago

christiansgbass commented 4 years ago

Hi, I've been following the steps and when I try to run the tool some issues appears.

When I created the folder config and the json file "/Osintgram/config/settings.json" you said to write inside the json file the following: "{}"

Well, if I write "{}" nothing happens but if I write {} without "", then I can see that the file has been written.

Writing "{}" shows me the following message:

Attempt to login...
Traceback (most recent call last):
  File "main.py", line 89, in <module>
    api = Osintgram(args.id, args.file, args.json)
  File "/root/Escritorio/Osintgram/src/Osintgram.py", line 33, in __init__
    self.login(u, p)
  File "/root/Escritorio/Osintgram/src/Osintgram.py", line 1016, in login
    on_login=lambda x: self.onlogin_callback(x, settings_file))
  File "/usr/local/lib/python3.5/dist-packages/instagram_private_api/client.py", line 105, in __init__
    user_settings.get('uuid') or self.generate_uuid(False))
AttributeError: 'str' object has no attribute 'get'

Writing {} shows me:

Attempt to login...
Traceback (most recent call last):
  File "main.py", line 89, in <module>
    api = Osintgram(args.id, args.file, args.json)
  File "/root/Escritorio/Osintgram/src/Osintgram.py", line 34, in __init__
    self.setTarget(target)
  File "/root/Escritorio/Osintgram/src/Osintgram.py", line 40, in setTarget
    user = self.get_user(target)
  File "/root/Escritorio/Osintgram/src/Osintgram.py", line 952, in get_user
    data = json.load(content)
  File "/usr/lib/python3.5/json/__init__.py", line 268, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib/python3.5/json/__init__.py", line 312, in loads
    s.__class__.__name__))
TypeError: the JSON object must be str, not 'bytes'

And the JSON file in config folder appears written with a 1 line containing ids, uuids, and so on.

Don't know why the tool is not working. I have followed and done every step.

If it helps, I wrote my username without any @ or "", I mean Plain text and the same with my password (my account is private) and I'm trying to run the next command:

python3 main.py acdc

:D have a good day.

Datalux commented 4 years ago

Hi @christiansgesp, first of all when you create the settings.json file you have to insert {} without "", you have to create a JSON object file (I edited the README to explain better this thing). The second issue, is a problem of response decoding, fixed this in the #47 (v. 0.9). Can you try this version and give me a feedback if this is solved? Thank you!

christiansgbass commented 4 years ago

Hi @Datalux still not working. I've tried to make it run from another machine and it's not working for me. This is what I get when trying to run the main.py file:

Attempt to login...
Traceback (most recent call last):
  File "main.py", line 89, in <module>
    api = Osintgram(args.id, args.file, args.json)
  File "/root/Escritorio/Osintgram/src/Osintgram.py", line 34, in __init__
    self.setTarget(target)
  File "/root/Escritorio/Osintgram/src/Osintgram.py", line 40, in setTarget
    user = self.get_user(target)
  File "/root/Escritorio/Osintgram/src/Osintgram.py", line 952, in get_user
    data = json.load(content)
  File "/usr/lib/python3.5/json/__init__.py", line 268, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib/python3.5/json/__init__.py", line 312, in loads
    s.__class__.__name__))
TypeError: the JSON object must be str, not 'bytes'

You said if I could try v0.9 but still v0.8.

Datalux commented 4 years ago

Hi @Datalux still not working. I've tried to make it run from another machine and it's not working for me. This is what I get when trying to run the main.py file:

Attempt to login...
Traceback (most recent call last):
  File "main.py", line 89, in <module>
    api = Osintgram(args.id, args.file, args.json)
  File "/root/Escritorio/Osintgram/src/Osintgram.py", line 34, in __init__
    self.setTarget(target)
  File "/root/Escritorio/Osintgram/src/Osintgram.py", line 40, in setTarget
    user = self.get_user(target)
  File "/root/Escritorio/Osintgram/src/Osintgram.py", line 952, in get_user
    data = json.load(content)
  File "/usr/lib/python3.5/json/__init__.py", line 268, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib/python3.5/json/__init__.py", line 312, in loads
    s.__class__.__name__))
TypeError: the JSON object must be str, not 'bytes'

You said if I could try v0.9 but still v0.8.

@christiansgesp v 0.9 is in development branch: https://github.com/Datalux/Osintgram/tree/development

christiansgbass commented 4 years ago

: @christiansgesp v 0.9 is in development branch: https://github.com/Datalux/Osintgram/tree/development

Okay @Datalux , if I use the development branch it works.

SuryaAbishek commented 3 years ago

Traceback (most recent call last): File "/home/suryaabishek/Desktop/Osintgram/main.py", line 3, in from src.Osintgram import Osintgram File "/home/suryaabishek/Desktop/Osintgram/src/Osintgram.py", line 9, in import requests ModuleNotFoundError: No module named 'requests'

ByteNinjaSmit commented 3 years ago

Traceback (most recent call last): File "/home/suryaabishek/Desktop/Osintgram/main.py", line 3, in from src.Osintgram import Osintgram File "/home/suryaabishek/Desktop/Osintgram/src/Osintgram.py", line 9, in import requests ModuleNotFoundError: No module named 'requests'

I have same problem this @datalux please solution me

Datalux commented 3 years ago

Install requests using pip.

ByteNinjaSmit commented 3 years ago

Traceback (most recent call last): File "main.py", line 3, in from src.Osintgram import Osintgram ImportError: No module named src.Osintgram

@Datalux now this problem please solution

Screenshot (51)

karamlo commented 2 years ago

Traceback (most recent call last): File "/home/karim/Osintgram/main.py", line 3, in from src.Osintgram import Osintgram File "/home/karim/Osintgram/src/Osintgram.py", line 13, in from geopy.geocoders import Nominatim ModuleNotFoundError: No module named 'geopy'

Hamasterck commented 11 months ago

Someone plz help me out regarding this error ClientError checkpoint_challenge_required (Code: 400, Response: {"message": "challenge_required", "challenge": {"url": "htt ps://i.instagram.com/challenge/AXHY4m1Dw5GdcxMWz4yEpAAU87L2myiRGs7V_yocLEYvG1pBCtpCcaZ0mwYCkGTbVmkNBDA/AfxMT4p7D10EZEAZVIR V3zfU-a02-bqx6132x9DRTq4y20xU1PK(KAyqlDmy_ZaimLEm7BOD2zlw/", "api_path": "/challenge/AXHY4m1Dw5Gdcxz4yEpAAU87L2myG7V yocLEYvG1pBCtpCcaZ@mwYCkGTbVmkN8DA/AfxMT4pJnDioE2EaIYGMV_3zfU-a02-bqxG1J2X9DRTq4y20xU1PKIKAyqlDmy_ZaimLEm7B0D2zw/", "hide webview header": true, "lock": true, "logout": false, "native_flow": true, "flow_render_type": 0, "status": "fail", "error

Attempt to login...

type": "checkpoint_challenge_required"})challenge_required: checkpoint_challenge_required Please follow this link to complete the challenge: https://i.instagram.com/challenge/AXHY4m1Dw5GdcxMWz4yEpAAU87L2myiRGs7V_y ocLEYVG1pBCtpCcaZ@mwYCkGTbVmkN8DA/AfxMT4pJnDioE2EaIYGMV_3zfU-a02-bqxG1J2x9DRTq4y20xU1PKlKAyqlDmy_ZaimLEm7BOD2zlw/