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.77k stars 2.17k forks source link

when i type python3 main.py <target username> i get this error #461

Open Nitrohell opened 2 years ago

Nitrohell commented 2 years ago

image

Roosterkobain commented 2 years ago

┌──(kali㉿kali)-[~/Osintgram] └─$ python3 main.py th3ro0ster
Traceback (most recent call last): File "/home/kali/Osintgram/main.py", line 3, in from src.Osintgram import Osintgram File "/home/kali/Osintgram/src/Osintgram.py", line 13, in from geopy.geocoders import Nominatim ModuleNotFoundError: No module named 'geopy'

┌──(kali㉿kali)-[~/Osintgram] └─$ python3 -m venv venv 1 ⨯ The virtual environment was not created successfully because ensurepip is not available. On Debian/Ubuntu systems, you need to install the python3-venv package using the following command.

apt install python3.9-venv

You may need to use sudo with that command. After installing the python3-venv package, recreate your virtual environment.

Failing command: ['/home/kali/Osintgram/venv/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']

┌──(kali㉿kali)-[~/Osintgram] └─$ sudo apt install python3.9-venv 1 ⨯ Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were automatically installed and are no longer required: libgdk-pixbuf-xlib-2.0-0 libgdk-pixbuf2.0-0 libvpx6 ruby-atomic ruby-thread-safe Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: libpython3.9 libpython3.9-dev libpython3.9-minimal libpython3.9-stdlib python3-pip-whl python3-setuptools-whl python3.9 python3.9-dev python3.9-minimal Suggested packages: python3.9-doc The following NEW packages will be installed: python3-pip-whl python3-setuptools-whl python3.9-venv The following packages will be upgraded: libpython3.9 libpython3.9-dev libpython3.9-minimal libpython3.9-stdlib python3.9 python3.9-dev python3.9-minimal 7 upgraded, 3 newly installed, 0 to remove and 747 not upgraded. Need to get 14.0 MB of archives. After this operation, 3,081 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://kali.download/kali kali-rolling/main amd64 python3.9-dev amd64 3.9.10-2 [508 kB] Get:2 http://kali.download/kali kali-rolling/main amd64 python3.9 amd64 3.9.10-2 [487 kB] Get:3 http://kali.download/kali kali-rolling/main amd64 libpython3.9-dev amd64 3.9.10-2 [4,243 kB] Get:4 http://kali.download/kali kali-rolling/main amd64 libpython3.9 amd64 3.9.10-2 [1,705 kB] Get:5 http://kali.download/kali kali-rolling/main amd64 libpython3.9-stdlib amd64 3.9.10-2 [1,683 kB] Get:6 http://kali.download/kali kali-rolling/main amd64 python3.9-minimal amd64 3.9.10-2 [1,937 kB] Get:7 http://kali.download/kali kali-rolling/main amd64 libpython3.9-minimal amd64 3.9.10-2 [803 kB] Get:8 http://http.kali.org/kali kali-rolling/main amd64 python3-pip-whl all 22.0.2+dfsg-1 [1,751 kB] Get:9 http://kali.download/kali kali-rolling/main amd64 python3-setuptools-whl all 59.6.0-1.2 [858 kB] Get:10 http://kali.download/kali kali-rolling/main amd64 python3.9-venv amd64 3.9.10-2 [5,384 B] Fetched 14.0 MB in 1s (10.3 MB/s)
(Reading database ... 292445 files and directories currently installed.) Preparing to unpack .../0-python3.9-dev_3.9.10-2_amd64.deb ... Unpacking python3.9-dev (3.9.10-2) over (3.9.9-4) ... Preparing to unpack .../1-python3.9_3.9.10-2_amd64.deb ... Unpacking python3.9 (3.9.10-2) over (3.9.9-4) ... Preparing to unpack .../2-libpython3.9-dev_3.9.10-2_amd64.deb ... Unpacking libpython3.9-dev:amd64 (3.9.10-2) over (3.9.9-4) ... Preparing to unpack .../3-libpython3.9_3.9.10-2_amd64.deb ... Unpacking libpython3.9:amd64 (3.9.10-2) over (3.9.9-4) ... Preparing to unpack .../4-libpython3.9-stdlib_3.9.10-2_amd64.deb ... Unpacking libpython3.9-stdlib:amd64 (3.9.10-2) over (3.9.9-4) ... Preparing to unpack .../5-python3.9-minimal_3.9.10-2_amd64.deb ... Unpacking python3.9-minimal (3.9.10-2) over (3.9.9-4) ... Preparing to unpack .../6-libpython3.9-minimal_3.9.10-2_amd64.deb ... Unpacking libpython3.9-minimal:amd64 (3.9.10-2) over (3.9.9-4) ... Selecting previously unselected package python3-pip-whl. Preparing to unpack .../7-python3-pip-whl_22.0.2+dfsg-1_all.deb ... Unpacking python3-pip-whl (22.0.2+dfsg-1) ... Selecting previously unselected package python3-setuptools-whl. Preparing to unpack .../8-python3-setuptools-whl_59.6.0-1.2_all.deb ... Unpacking python3-setuptools-whl (59.6.0-1.2) ... Selecting previously unselected package python3.9-venv. Preparing to unpack .../9-python3.9-venv_3.9.10-2_amd64.deb ... Unpacking python3.9-venv (3.9.10-2) ... Setting up python3-setuptools-whl (59.6.0-1.2) ... Setting up python3-pip-whl (22.0.2+dfsg-1) ... Setting up libpython3.9-minimal:amd64 (3.9.10-2) ... Setting up python3.9-minimal (3.9.10-2) ... Setting up libpython3.9-stdlib:amd64 (3.9.10-2) ... Setting up libpython3.9:amd64 (3.9.10-2) ... Setting up python3.9 (3.9.10-2) ... Setting up libpython3.9-dev:amd64 (3.9.10-2) ... Setting up python3.9-dev (3.9.10-2) ... Setting up python3.9-venv (3.9.10-2) ... Processing triggers for kali-menu (2021.4.2) ... Processing triggers for desktop-file-utils (0.26-1) ... Processing triggers for libc-bin (2.33-1) ... Processing triggers for man-db (2.9.4-4) ... Processing triggers for mailcap (3.70+nmu1) ...

┌──(kali㉿kali)-[~/Osintgram] └─$ python3 -m venv venv

┌──(kali㉿kali)-[~/Osintgram] └─$ source venv/bin/activate

┌──(venv)─(kali㉿kali)-[~/Osintgram] └─$ pip3 install -r requirements.txt Ignoring pyreadline: markers 'platform_system == "Windows"' don't match your environment Collecting requests==2.24.0 Downloading requests-2.24.0-py2.py3-none-any.whl (61 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.8/61.8 KB 540.1 kB/s eta 0:00:00 Collecting requests-toolbelt==0.9.1 Downloading requests_toolbelt-0.9.1-py2.py3-none-any.whl (54 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.3/54.3 KB 2.7 MB/s eta 0:00:00 Collecting geopy>=2.0.0 Downloading geopy-2.2.0-py3-none-any.whl (118 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.9/118.9 KB 2.5 MB/s eta 0:00:00 Collecting prettytable==0.7.2 Downloading prettytable-0.7.2.zip (28 kB) Preparing metadata (setup.py) ... done Collecting instagram-private-api==1.6.0 Downloading instagram_private_api-1.6.0.0-py3-none-any.whl (78 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.9/78.9 KB 13.8 MB/s eta 0:00:00 Collecting gnureadline>=8.0.0 Downloading gnureadline-8.0.0.tar.gz (3.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.1/3.1 MB 12.2 MB/s eta 0:00:00 Preparing metadata (setup.py) ... done Collecting chardet<4,>=3.0.2 Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.4/133.4 KB 19.4 MB/s eta 0:00:00 Collecting idna<3,>=2.5 Downloading idna-2.10-py2.py3-none-any.whl (58 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.8/58.8 KB 8.7 MB/s eta 0:00:00 Collecting certifi>=2017.4.17 Downloading certifi-2021.10.8-py2.py3-none-any.whl (149 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 149.2/149.2 KB 20.9 MB/s eta 0:00:00 Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 Downloading urllib3-1.25.11-py2.py3-none-any.whl (127 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 128.0/128.0 KB 9.3 MB/s eta 0:00:00 Collecting geographiclib<2,>=1.49 Downloading geographiclib-1.52-py3-none-any.whl (38 kB) Using legacy 'setup.py install' for prettytable, since package 'wheel' is not installed. Using legacy 'setup.py install' for gnureadline, since package 'wheel' is not installed. Installing collected packages: prettytable, instagram-private-api, gnureadline, geographiclib, chardet, certifi, urllib3, idna, geopy, requests, requests-toolbelt Running setup.py install for prettytable ... done Running setup.py install for gnureadline ... done Successfully installed certifi-2021.10.8 chardet-3.0.4 geographiclib-1.52 geopy-2.2.0 gnureadline-8.0.0 idna-2.10 instagram-private-api-1.6.0.0 prettytable-0.7.2 requests-2.24.0 requests-toolbelt-0.9.1 urllib3-1.25.11

┌──(venv)─(kali㉿kali)-[~/Osintgram] └─$ python3 main.py th3ro0ster

Attempt to login... Traceback (most recent call last): File "/home/kali/Osintgram/main.py", line 121, in api = Osintgram(args.id, args.file, args.json, args.command, args.output, args.cookies) File "/home/kali/Osintgram/src/Osintgram.py", line 47, in init self.login(u, p) File "/home/kali/Osintgram/src/Osintgram.py", line 1110, in login cached_settings = json.load(file_data, object_hook=self.from_json) File "/usr/lib/python3.9/json/init.py", line 293, in load return loads(fp.read(), File "/usr/lib/python3.9/json/init.py", line 359, in loads return cls(**kw).decode(s) File "/usr/lib/python3.9/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/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)

Nitrohell commented 2 years ago

i just deleted the Osintgram file and then reinstalled, it works now :p

Faisa1245 commented 2 years ago

sudo apt install python3.9-venv 1 ⨯

┌──(kail㉿kali)-[~/Osintgram] └─$ sudo apt install python3.9-venv 1 ⨯ 100 ⨯ Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package 1 E: Unable to locate package ⨯

???????