Coder Social home page Coder Social logo

datalux / osintgram Goto Github PK

View Code? Open in Web Editor NEW
8.7K 187.0 1.9K 3.4 MB

Osintgram is a OSINT tool on Instagram. It offers an interactive shell to perform analysis on Instagram account of any users by its nickname

License: GNU General Public License v3.0

Python 96.44% Dockerfile 1.05% Makefile 2.51%
osint osint-python python3 instagram instagram-api penetration-testing instagram-account nickname analysis python

osintgram's Introduction

Osintgram 🔎📸

version-1.3 GPLv3 Python3 Telegram Docker

Osintgram is an OSINT tool on Instagram to collect, analyze, and run reconnaissance.

Disclaimer: FOR EDUCATIONAL PURPOSE ONLY! The contributors do not assume any responsibility for the use of this tool.

Warning: It is advisable to not use your own/primary account when using this tool.

Tools and Commands 🧰

Osintgram offers an interactive shell to perform analysis on Instagram account of any users by its nickname. You can get:

- addrs           Get all registered addressed by target photos
- captions        Get user's photos captions
- comments        Get total comments of target's posts
- followers       Get target followers
- followings      Get users followed by target
- fwersemail      Get email of target followers
- fwingsemail     Get email of users followed by target
- fwersnumber     Get phone number of target followers
- fwingsnumber    Get phone number of users followed by target
- hashtags        Get hashtags used by target
- info            Get target info
- likes           Get total likes of target's posts
- mediatype       Get user's posts type (photo or video)
- photodes        Get description of target's photos
- photos          Download user's photos in output folder
- propic          Download user's profile picture
- stories         Download user's stories  
- tagged          Get list of users tagged by target
- wcommented      Get a list of user who commented target's photos
- wtagged         Get a list of user who tagged target

You can find detailed commands usage here.

Latest version | Commands | CHANGELOG

FAQ

  1. Can I access the contents of a private profile? No, you cannot get information on private profiles. You can only get information from a public profile or a profile you follow. The tools that claim to be successful are scams!
  2. What is and how I can bypass the challenge_required error? The challenge_required error means that Instagram notice a suspicious behavior on your profile, so needs to check if you are a real person or a bot. To avoid this you should follow the suggested link and complete the required operation (insert a code, confirm email, etc)

Installation ⚙️

  1. Fork/Clone/Download this repo

    git clone https://github.com/Datalux/Osintgram.git

  2. Navigate to the directory

    cd Osintgram

  3. Create a virtual environment for this project

    python3 -m venv venv

  4. Load the virtual environment

    • On Windows Powershell: .\venv\Scripts\activate.ps1
    • On Linux and Git Bash: source venv/bin/activate
  5. Run pip install -r requirements.txt

  6. Open the credentials.ini file in the config folder and write your Instagram account username and password in the corresponding fields

    Alternatively, you can run the make setup command to populate this file for you.

  7. Run the main.py script in one of two ways

    • As an interactive prompt python3 main.py <target username>
    • Or execute your command straight away python3 main.py <target username> --command <command>

Use Osintgram v2 (beta)

You can use Osintgram2 beta just switching to v2 branch. The v2 has some improvements and is faster with a new command execution interface. Try it just running git checkout v2.

Docker Quick Start 🐳

This section will explain how you can quickly use this image with Docker or Docker-compose.

Prerequisites

Before you can use either Docker or Docker-compose, please ensure you do have the following prerequisites met.

  1. Docker installed - link
  2. Docker-composed installed (if using Docker-compose) - link
  3. Credentials configured - This can be done manually or by running the make setup command from the root of this repo

Important: Your container will fail if you do not do step #3 and configure your credentials

Docker

If docker is installed you can build an image and run this as a container.

Build:

docker build -t osintgram .

Run:

docker run --rm -it -v "$PWD/output:/home/osintgram/output" osintgram <target>
  • The <target> is the Instagram account you wish to use as your target for recon.
  • The required -i flag enables an interactive terminal to use commands within the container. docs
  • The required -v flag mounts a volume between your local filesystem and the container to save to the ./output/ folder. docs
  • The optional --rm flag removes the container filesystem on completion to prevent cruft build-up. docs
  • The optional -t flag allocates a pseudo-TTY which allows colored output. docs

Using docker-compose

You can use the docker-compose.yml file this single command:

docker-compose run osintgram <target>

Where target is the Instagram target for recon.

Alternatively, you may run docker-compose with the Makefile:

make run - Builds and Runs with compose. Prompts for a target before running.

Makefile (easy mode)

For ease of use with Docker-compose, a Makefile has been provided.

Here is a sample work flow to spin up a container and run osintgram with just two commands!

  1. make setup - Sets up your Instagram credentials
  2. make run - Builds and Runs a osintgram container and prompts for a target

Sample workflow for development:

  1. make setup - Sets up your Instagram credentials
  2. make build-run-testing - Builds an Runs a container without invoking the main.py script. Useful for an it Docker session for development
  3. make cleanup-testing - Cleans up the testing container created from build-run-testing

Development version 💻

To use the development version with the latest feature and fixes just switch to development branch using Git:

git checkout development

and update to last version using:

git pull origin development

Updating ⬇️

To update Osintgram with the stable release just pull the latest commit using Git.

  1. Make sure you are in the master branch running: git checkout master
  2. Download the latest version: git pull origin master

Contributing 💡

You can propose a feature request opening an issue or a pull request.

Here is a list of Osintgram's contributors:

External library 🔗

Instagram API

osintgram's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

osintgram's Issues

Bypass challenge required

How can I pass the required challange every time I login when launching the script? Every command I give, every time is requesting a challenge. Even I confirm to Instagram on web browser that it was me, I cannot get passed over this phase. Many thanks!

Error while running due to json module

Attempt to login...
Traceback (most recent call last):
  File "/data/data/com.termux/files/home/Osintgram/main.py", line 109, in <module>
    api = Osintgram(args.id, args.file, args.json)
  File "/data/data/com.termux/files/home/Osintgram/src/Osintgram.py", line 36, in __init__
    self.setTarget(target)
  File "/data/data/com.termux/files/home/Osintgram/src/Osintgram.py", line 42, in setTarget
    user = self.get_user(target)
  File "/data/data/com.termux/files/home/Osintgram/src/Osintgram.py", line 955, in get_user
    data = content.json()
  File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/requests/models.py", line 898, in json
    return complexjson.loads(self.text, **kwargs)
  File "/data/data/com.termux/files/usr/lib/python3.9/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/data/data/com.termux/files/usr/lib/python3.9/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/data/data/com.termux/files/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)```

Login problem

"Attempt to login...
"Please wait a few minutes before you try again.: Please wait a few minutes before you try again"

Every time I run the main.py file , I keep receveing the above error message. Have any idea how to fix it?
Many thanks!

ImportError: cannot import name 'encodestring' from 'base64' (/data/data/com.termux/files/usr/lib/python3.9/base64.py)

When i use python3 main.py cmdThen i face this problem Traceback (most recent call last): File "/data/data/com.termux/files/home/Osintgram/main.py", line 4, in from src.Osintgram import Osintgram File "/data/data/com.termux/files/home/Osintgram/src/Osintgram.py", line 10, in from geopy.geocoders import Nominatim File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/geopy/init.py", line 13, in from geopy.geocoders import * # pylint: disable=W0401 File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/geopy/geocoders/init.py", line 101, in from geopy.geocoders.dot_us import GeocoderDotUS File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/geopy/geocoders/dot_us.py", line 6, in from base64 import encodestring

Screenshot_2020-10-09-04-20-53-825_com.termux.jpg

simplejson.errors.JSONDecodeError

Attempt to login...

Traceback (most recent call last):
File "/home/kali/Osintgram/main.py", line 107, in
api = Osintgram(args.id, args.file, args.json)
File "/home/kali/Osintgram/src/Osintgram.py", line 36, in init
self.setTarget(target)
File "/home/kali/Osintgram/src/Osintgram.py", line 42, in setTarget
user = self.get_user(target)
File "/home/kali/Osintgram/src/Osintgram.py", line 955, in get_user
data = content.json()
File "/usr/lib/python3/dist-packages/requests/models.py", line 898, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python3/dist-packages/simplejson/init.py", line 525, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

[BUG] Unable to find file: config/settings.json

Hello i have this error and i tried to search a solution but i did not found anything. First, i had an error that said "Unable to find file: config/settings.json" so i created that file and now i have this error:

Traceback (most recent call last):
File "main.py", line 89, in
api = Osintgram(args.id, args.file, args.json)
File "/home/kali/Osintgram/src/Osintgram.py", line 33, in init
self.login(u, p)
File "/home/kali/Osintgram/src/Osintgram.py", line 1009, in login
cached_settings = json.load(file_data, object_hook=self.from_json)
File "/usr/lib/python3.8/json/init.py", line 293, in load
return loads(fp.read(),
File "/usr/lib/python3.8/json/init.py", line 370, in loads
return cls(**kw).decode(s)
File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Error - Unable to get pastthis

_______ /____ >|| /| __ /|| (____ /|_| /
/ / / /_____/ / /

Version 1.0.1 - Developed by Giuseppe Criscione

Type 'list' to show all allowed commands
Type 'FILE=y' to save results to files like '.txt (deafult is disabled)'
Type 'FILE=n' to disable saving to files'
Type 'JSON=y' to export results to a JSON files like '
.json (deafult is disabled)'
Type 'JSON=n' to disable exporting to files'
Error: file "config/username.conf" not found!

Ive tried everything i could think of idk what else to do

I even reinstalled .... Help?

[BUG] challenge request not show link

Attempt to login...
Traceback (most recent call last):
File "main.py", line 107, in
api = Osintgram(args.id, args.file, args.json)
File "/home/wadod/Osintgram/src/Osintgram.py", line 35, in init
self.login(u, p)
File "/home/wadod/Osintgram/src/Osintgram.py", line 1005, in login
cached_settings = json.load(file_data, object_hook=self.from_json)
File "/usr/lib/python3.8/json/init.py", line 293, in load
return loads(fp.read(),
File "/usr/lib/python3.8/json/init.py", line 370, in loads
return cls(**kw).decode(s)
File "/usr/lib/python3.8/json/decoder.py", line 340, in decode
raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 2 column 1 (char 3)

[BUG] user has private profile error, even when following the account

I am continuously fronted with the same error message after I try to download a friends photos whilst logged into my account (I follow him on the account so I'm not sure why it's spewing this error at me) and would like to get some help on why this is happening ? thanks 👍

everything works perfectly (apart from downloading stories) with this so great job otherwise.

Screenshot_3

readline error

/usr/bin/ld: cannot find -lncurses
collect2: error: ld returned 1 exit status
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

ERROR: Failed building wheel for readline
Running setup.py clean for readline
Successfully built prettytable
Failed to build readline
Installing collected packages: requests, requests-toolbelt, geographiclib, geopy, prettytable, instagram-private-api, readline
Running setup.py install for readline ... error

Corrects the issue on Ubuntu 20, but should be added to the installer script:

sudo apt install libreadline-dev

Run python3 main.py error

python3 main.py
Traceback (most recent call last):
File "main.py", line 4, in
from src.Osintgram import Osintgram
File "/opt/Osintgram/src/Osintgram.py", line 19, in
class Osintgram:
File "/opt/Osintgram/src/Osintgram.py", line 22, in Osintgram
geolocator = Nominatim()
File "/usr/local/lib/python3.8/dist-packages/geopy/geocoders/nominatim.py", line 105, in init
raise ConfigurationError(
geopy.exc.ConfigurationError: Using Nominatim with default or sample user_agent "geopy/2.0.0" is strongly discouraged, as it violates Nominatim's ToS https://operations.osmfoundation.org/policies/nominatim/ and may possibly cause 403 and 429 HTTP errors. Please specify a custom user_agent with Nominatim(user_agent="my-application") or by overriding the default user_agent: geopy.geocoders.options.default_user_agent = "my-application".

[FEATURE] Automatically send follow requests to private accounts.

First, I would like to say this is a great tool, for capturing instagram information. But I think that it is limited only to users having a public profile. For users having a private profile, it would be great if we could send a request to follow from the terminal app itself, instead of logging on instagram.

raise JSONDecodeError

Hello @Datalux
i had this problems
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Attempt to login...
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/instagram_private_api/client.py", line 523, in _call_api
response = self.opener.open(req, timeout=self.timeout)
File "/usr/lib/python3.8/urllib/request.py", line 531, in open
response = meth(req, response)
File "/usr/lib/python3.8/urllib/request.py", line 640, in http_response
response = self.parent.error(
File "/usr/lib/python3.8/urllib/request.py", line 569, in error
return self._call_chain(*args)
File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
result = func(*args)
File "/usr/lib/python3.8/urllib/request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: Bad Request

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "main.py", line 77, in
api = Osintgram(args.id, args.file, args.json)
File "/root/Osintgram/src/Osintgram.py", line 28, in init
self.api = AppClient(auto_patch=True, authenticate=True, username=u, password=p)
File "/usr/local/lib/python3.8/dist-packages/instagram_private_api/client.py", line 208, in init
self.login()
File "/usr/local/lib/python3.8/dist-packages/instagram_private_api/endpoints/accounts.py", line 49, in login
login_response = self._call_api(
File "/usr/local/lib/python3.8/dist-packages/instagram_private_api/client.py", line 527, in _call_api
ErrorHandler.process(e, error_response)
File "/usr/local/lib/python3.8/dist-packages/instagram_private_api/errors.py", line 135, in process
raise ClientError(error_msg, http_error.code, error_response)
instagram_private_api.errors.ClientError: Bad Request: rate_limit_error

Error ModuleNotFoundError

image

srpuigar@linux:~/Documentos/OPM/Osintgram$ python3.7 main.py prueba
Traceback (most recent call last):
File "main.py", line 4, in
from src.Osintgram import Osintgram
File "/home/srpuigar/Documentos/OPM/Osintgram/src/Osintgram.py", line 10, in
from geopy.geocoders import Nominatim
ModuleNotFoundError: No module named 'geopy'

readline installation error

I'm trying to install it on windows 8.1 Pro and it displays this error text.
image
I actually don't understand this but I dont think it's a normal error. I ignored it and carried on with the installation process, tried to run the osint anyways but when I try to run the main.py script, it returns me this other error
ERROR 2.
I don't really know what to do, so I'm expecting someone to tell me what should I do.
Thanks a lot.

KeyError: 'business_email'

Hello,

I updated the tool and ran the command to inspect someone's account (python main.py username).
Then I write "info" and get this error :

Traceback (most recent call last):
File "main.py", line 134, in
api.get_user_info()
File "/home/kali/Osintgram/src/Osintgram.py", line 470, in get_user_info
if data['business_email']:
KeyError: 'business_email'

Do you have a solution ?

[BUG] KeyError in addrs command

Run a command: addrs
Searching for target localizations...
Traceback (most recent call last):
File "main.py", line 100, in
api.get_addrs()
File "/home/kali/Osintgram/src/Osintgram.py", line 128, in get_addrs
lat = post['location']['lat']
KeyError: 'lat'

Issue - double free or corruption (out)

┌──(kali㉿kali)-[~/apps/Osintgram]
└─$ python main.py my_target.username

________ .__ __
_____ \ || / | ________________ _____
/ | \ / / |/ \ _/ _ __ _ \ / \
/ | \
| | | \ | / /
/ > | // __ | Y Y
_ /
_ >|| /| __ /|| (____ /|_| /
/ / / /_____/ / /

Version 1.0.1 - Developed by Giuseppe Criscione

Type 'list' to show all allowed commands
Type 'FILE=y' to save results to files like '.txt (deafult is disabled)'
Type 'FILE=n' to disable saving to files'
Type 'JSON=y' to export results to a JSON files like '
.json (deafult is disabled)'
Type 'JSON=n' to disable exporting to files'

Attempt to login...

Logged as my.username. Target: my_target.username [XXXXXXXXX] [PRIVATE PROFILE] [NOT FOLLOWING]

Run a command: list
double free or corruption (out)
zsh: abort python main.py my_target.username

┌──(kali㉿kali)-[~/apps/Osintgram]
└─$

can someone help me on this problem. it said double free or corruption (out)
i'm using the latest kali ova installed on virtual box macos bigsur

Thank you

Tagged command

Have you noticed that the tagged command doesn't return the correct number of times that a user was tagged?
Indeed it just checks at the 18 newest post that has the parameter "next_max_id" or something like that...

On the case that i've tested when i checked manually at the 18 newest post there were:
12 post that has tagged users;
4 different tagged users
one of the user were tagged 12 times
the other 3 users were tagged 1 time each

The Osintgram detected the following result:
1 user tagged twice (it detected only the user that has been tagged 12 times)

I think that the getPeopleTaggedByUser isn't detecting the correct amount of posts (18)... maybe when selecting only post that has the max_id param...

How to log in???

┌──(me㉿kali)-[~]
└─$ mkdir config

┌──(me㉿kali)-[~]
└─$ cd config

┌──(me㉿kali)-[~/config]
└─$ cat > username.conf
myusername
^C

┌──(me㉿kali)-[~/config]
└─$ cat > pw.conf
mypassword
^C

And then what?? How can I successfully log in after using python3 main.py targetuser ?

Attempt to Login

Screen Shot 2020-09-22 at 6 42 12 PM

I'm getting this error when I try to run everything! Anyone know how to fix it?

simplejson.errors.JSONDecodeError

$ python3 main.py sec0ps
________ .__ __
_____ \ || / | ________________ _____
/ | \ / / |/ \ _/ _ __ _ \ / \
/ | \
| | | \ | / /
/ > | // __ | Y Y
_ /
_ >|| /| __ /|| (____ /|_| /
/ / / /_____/ / /

Version 0.9 - Developed by Giuseppe Criscione - 2019

Type 'list' to show all allowed commands
Type 'FILE=y' to save results to files like '.txt (deafult is disabled)'
Type 'FILE=n' to disable saving to files'
Type 'JSON=y' to export results to a JSON files like '
.json (deafult is disabled)'
Type 'JSON=n' to disable exporting to files'

Attempt to login...
Traceback (most recent call last):
File "main.py", line 107, in
api = Osintgram(args.id, args.file, args.json)
File "/home/devvm/Osintgram/src/Osintgram.py", line 36, in init
self.setTarget(target)
File "/home/devvm/Osintgram/src/Osintgram.py", line 42, in setTarget
user = self.get_user(target)
File "/home/devvm/Osintgram/src/Osintgram.py", line 955, in get_user
data = content.json()
File "/home/devvm/.local/lib/python3.8/site-packages/requests/models.py", line 898, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python3/dist-packages/simplejson/init.py", line 518, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Error

Hi.
I am running the tool using version 0.8 because version 0.9 does not work with python 3.9. So I downloaded 0.8 and am using it with python 3.7.1.
When running, these errors appear.

image

image
I already tested with python 3.6.5 and the error that appears is another.
Please, can you recommend me which python versions to run the application perfectly, while the new version is not ready yet?

[FEATURE] Add Phone Number Collect Method

Hey bro, It's a wonderful app with a lots of crazy really crazy tools. I'm in love with it right now. Though the '_' and '.' doesn't work till now, I came to know it's a bug and you guys will fix it within somedays. That's mesmerizing. But it would be great of you could add the Phone Number collect method. So, we can get phone numbers of the cyber culprits .... xD

[BUG] Error: file "config/username.conf" not found!

I've created the username.conf file in /home/kali/Osintgram/config/ however it prompts Error: file "config/username.conf" not found! whenever I run python3 main.py list
Any idea what could be the issue here?

Python 3.9.0

Im using python 3.9.0 on Windows 2004
I tried visual studio code and powershell

I keep getting an error

"ImportError: cannot import name 'encodestring' from 'base64' (C:\Users\hugob\AppData\Local\Programs\Python\Python39\lib\base64.py)"

Hi there I’m very desperate and need help.

2weeks ago, my Instagram account went temporarily disabled. They sent a confirmation code to my email but when I created my Instagram account, I used a very old email that I don’t remember. And I can’t contact the support team because it doesn’t exist. I need to find my if email back please. That i used. My Instagram is emma_gravel_ so, can you help me to find my email please..? If you need more information, text me, at 5149222571, If you don’t need more infos, just write me and answer my email in this issue. Thank you very very much.

Version 0.8 not working

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.

Error response in html that cannot be decoded

After executing the tool on one of my account it failed with a traceback:

Traceback (most recent call last): File "main.py", line 107, in <module> api = Osintgram(args.id, args.file, args.json) File "/home/devlinux/Osintgram/src/Osintgram.py", line 36, in __init__ self.setTarget(target) File "/home/devlinux/Osintgram/src/Osintgram.py", line 42, in setTarget user = self.get_user(target) File "/home/devlinux/Osintgram/src/Osintgram.py", line 956, in get_user data = content.json() File "/usr/local/lib/python3.8/dist-packages/requests/models.py", line 898, in json return complexjson.loads(self.text, **kwargs) File "/usr/lib/python3/dist-packages/simplejson/__init__.py", line 525, in loads return _default_decoder.decode(s) File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

The response was actually html and looked like an error it's very long but here is a snippet from the very bottom when I outputted the content.text to my terminal:

` window.addEventListener('load', function(){
if (window.__bufferedErrors && window.__bufferedErrors.length) {
if (window.caches && window.caches.keys && window.caches.delete) {
window.caches.keys().then(function(keys) {
keys.forEach(function(key) {
window.caches.delete(key)
})
})
}
window.__bufferedErrors.map(function(error) {
return normalizeError(error)
}).forEach(function(normalizedError) {
var request = new XMLHttpRequest();
request.open('POST', '/client_error/', true);
request.setRequestHeader('Content-Type', 'application/json; charset=utf-8');
request.send(JSON.stringify(normalizedError));
})
}
})
}());
</script>

`

I am running Python3.8 on Kali-Linux let me know if you need any more details

urllib.error.HTTPError: HTTP Error 400: Bad Request

I Installed the new api and I get this
The config files were not changed, I was logged in before that.

Traceback (most recent call last):
File "/home/santiago/.local/lib/python3.6/site-packages/instagram_private_api/client.py", line 523, in _call_api
response = self.opener.open(req, timeout=self.timeout)
File "/usr/lib/python3.6/urllib/request.py", line 532, in open
response = meth(req, response)
File "/usr/lib/python3.6/urllib/request.py", line 642, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.6/urllib/request.py", line 570, in error
return self._call_chain(*args)
File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
File "/usr/lib/python3.6/urllib/request.py", line 650, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: Bad Request

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "main.py", line 77, in
api = Osintgram(args.id, args.file, args.json)
File "/home/santiago/Devel/Osintgram/src/Osintgram.py", line 28, in init
self.api = AppClient(auto_patch=True, authenticate=True, username=u, password=p)
File "/home/santiago/.local/lib/python3.6/site-packages/instagram_private_api/client.py", line 208, in init
self.login()
File "/home/santiago/.local/lib/python3.6/site-packages/instagram_private_api/endpoints/accounts.py", line 50, in login
'accounts/login/', params=login_params, return_response=True)
File "/home/santiago/.local/lib/python3.6/site-packages/instagram_private_api/client.py", line 527, in _call_api
ErrorHandler.process(e, error_response)
File "/home/santiago/.local/lib/python3.6/site-packages/instagram_private_api/errors.py", line 125, in process
error_response=json.dumps(error_obj)
instagram_private_api.errors.ClientLoginError: bad_password

not run main.py

After run "python main.py memedeportes" said:

File "main.py", line 52, in
api = Osintgram(args.id)
File "/root/Escritorio/instagra/Osintgram/Osintgram.py", line 30, in init
pc.printout(" (" + str(self.api.username_id) + ") ")
AttributeError: InstagramAPI instance has no attribute 'username_id'

i got problems with accessing

the requirement text jams when
root@ultron-VirtualBox:~/Osintgram# pip3 install -r requirements.txt
Collecting requests==2.24.0 (from -r requirements.txt (line 1))
Using cached https://files.pythonhosted.org/packages/45/1e/0c169c6a5381e241ba7404532c16a21d86ab872c9bed8bdcd4c423954103/requests-2.24.0-py2.py3-none-any.whl
Collecting requests-toolbelt==0.9.1 (from -r requirements.txt (line 2))
Using cached https://files.pythonhosted.org/packages/60/ef/7681134338fc097acef8d9b2f8abe0458e4d87559c689a8c306d0957ece5/requests_toolbelt-0.9.1-py2.py3-none-any.whl
Collecting geopy==1.11 (from -r requirements.txt (line 3))
Using cached https://files.pythonhosted.org/packages/e0/fd/d1b3225959939907a1a87c3623a021742b3b9ef5db35c15cb916e18de42c/geopy-1.11.0-py2.py3-none-any.whl
Collecting prettytable==0.7.2 (from -r requirements.txt (line 4))
Using cached https://files.pythonhosted.org/packages/ef/30/4b0746848746ed5941f052479e7c23d2b56d174b82f4fd34a25e389831f5/prettytable-0.7.2.tar.bz2
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'setuptools'

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-23j3qfgj/prettytable/
and please dont blame it on the virtual box. i tried to download the setuptools but it says that it is already there and updated. i tired to download geopy and it still does like if i dont have it. also \

i did the steps that you said
in username.conf (the only thing i wrote was the email adress of the instagram user)
in pw.conf (only thing i wrote there was the usernames password)
the settings.json (the only thing i wrote was them weird parentheisis) () but wavy anyways) mybe i was suposed to write more there, if yes write it for me to make a copy and paste please.

and to finish, i never was able to exxecute the last step witch was like pip3 ... main.py (i didnt understood what to write after) i wrote directy the email like that (...main.py [email protected]) and wrote it like that without any email or conection. ...main.py and still didnt worked. please help me.

Error Installing

Hello. Im trying to run the app but when I try to run main.py I get this error text.

I think is related with pip3 and nominatim, but I don't know how to fix it (im just starting to learn about linux sorry)

Screenshot_2020-11-25_17-13-01

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.