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.