Osintgram is an OSINT tool on Instagram. It offers an interactive shell to perform analysis on the Instagram account of any users by its nickname
Clone this repository
git clone https://github.com/Datalux/Osintgram.git
Navigate to the directory
Create a virtual environment for this project
python3 -m venv venv
Load the virtual environment
If you use Windows:
If you use Linux based OS or GitBash
pip install -r requirements.txt.
credentials.ini file in the config folder and write your Instagram account username and password in the corresponding fields.
You can also run the make setup command to populate this file.
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>
Tools and commands
- 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 the target - wcommented Get a list of users who commented target's photos - wtagged Get a list of users who tagged the target
Return a list with the target's address (GPS) tagged in his photos. The list has a post, address and date fields.
Return a list of all captions used by target in his photos.
Return the total number of comments in the target's posts
Exit from Osintgram
You can set the preference to save commands output in the output folder. It save output in
<target username>_<command>.txt file.
FILE=y, you can enable saving in the file.
FILE=n, you can disable saving in the file.
Return a list with target followers with id, nickname and full name
Return a list with users followed by target with id, nickname and full name
Return a list of emails of target followers
Return a list of emails of the user followed by the target
Return a list of the phone number of target followers
Return a list of the phone number of the user followed by the target
Return a list with all hashtags used by the target in his photos
Show target info like:
is the business account?
business category (if the target has a business account)
business email (if available)
HD profile picture URL
connected Facebook page (if available)
Whats'App number (if available)
City Name (if available)
Address Street (if available)
Contact phone number (if available)
Set the preference to export commands output as JSON in the output folder. It save output in
<target username>_<command>.JSON file.
JSON=y, you can enable JSON exporting.
JSON=n, you can disable JSON exporting.
Return the total number of likes in the target's posts
list (or help)
Show all commands available.
Return the number of photos and videos shared by the target
Return a list with the description of the content of the target's photos
Download all target photos in the output folder. When you run the command, the script asks you how many images you want to download. Type ENTER to download all photos available, or type a number to choose how many images you want to download.
Run a command: photos How many photos you want to download (default all):
Download the target profile picture (HD if available)
Download all target stories in the output folder.
Return a list of users tagged by target with ID, username and full name
Return a list of users who commented target's photos sorted by number of comments
Return a list of users who tagged target sorted by number of photos
I followed the instructions and created a brand new account on Instagram.
I've added the credentials to the
credentials.ini file and run the command choosing the Teslamotorsclub account as the target:
python3 main.py teslamotorsclub
I chose the photo command, which promised to download all the photos from the target account.
I found all the images in the output folder as the tool promised.
How to install osintgram on Kali Linux
To install OSINTgram on Kali Linux, you can follow these steps:
Open a terminal window and update the package manager with the following command:
sudo apt-get update
Install the dependencies required for OSINTgram by running the following command:
sudo apt-get install python3-pip python3-dev build-essential
Use the pip3 command to install OSINTgram, along with its dependencies, with the following command:
pip3 install -r requirements.txt
Once the installation is complete, you can run OSINTgram with the following command:
Follow the on-screen instructions to use OSINTgram to gather information from Instagram.
Note: These instructions are for Kali Linux specifically. If you are using a different operating system, the steps for installing OSINTgram may be different. Additionally, it is important to note that using OSINTgram or any other tool for online investigations and gathering open-source intelligence should be done in accordance with all applicable laws and regulations.
Tools like OSINTgram
There are several other tools that are similar to OSINTgram and can be used for online investigations and gathering open-source intelligence from social media platforms. Some examples include:
Maltego: This tool allows investigators to visualize and analyze data from a variety of sources, including social media platforms, in order to identify connections and relationships between different entities.
SocialMapper: This tool uses facial recognition technology to automatically collect and analyze data from social media platforms in order to identify and track individuals.
SpiderFoot: This tool allows investigators to gather information from a wide range of online sources, including social media platforms, in order to identify connections and relationships between different entities.
Recon-ng: This tool is a recon framework that allows investigators to collect and analyze data from a variety of sources, including social media platforms, in order to identify connections and relationships between different entities.
These are just a few examples of tools that can be used for online investigations and gathering open-source intelligence. There are many other similar tools available, and the specific tool that is best for a given investigation will depend on the specific goals and needs of the investigator.