sundowndev / phoneinfoga

Information gathering framework for phone numbers
https://sundowndev.github.io/phoneinfoga/
GNU General Public License v3.0
12.76k stars 3.55k forks source link

Geckodriver: Failed to decode response from marionette #113

Closed LaurDana closed 4 years ago

LaurDana commented 5 years ago

Hello,

It's my first post here and please note that I am not a tech guy. I am just an average Linux user. I installed PhoneInfoga and the geckodriver. I think I succeded, but I got these messages about failing to connect to the "marionette". Can you please advise what I did wrong? Because for all the searches that the PhoneInfoga does I receive this message:
"Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection"

Screenshot_2019-08-24_01-31-22

[laura@laura PhoneInfoga]$ python3 phoneinfoga.py -n "+4072XXXXXXX"


/ \ | _ _ / | _ / /)/ ' \ / | ' \ / \ / /\/ ' | | / \ / |/ _ | / _/| | | | (_) | | | | /\/ / | | | | | () | (| | (| | \/ || |_|_/|| ||__/ || ||| _/ _, |_,_| |___/
PhoneInfoga Ver. v1.10.9 Coded by Sundowndev

[!] ---- Fetching informations for 4072XXXXXXX ---- [!] [] Running local scan... [+] International format: +40 72X XXX XXX [+] Local format: 72XXXXXXX [+] Country found: Romania (+40) [+] City/Area: Romania [+] Carrier: Vodafone [+] Timezone: Europe/Bucharest [i] The number is valid and possible. [] Running Numverify.com scan... [+] Number: (+40) 072XXXXXXX [+] Country: Romania (RO) [+] Location: [+] Carrier: Vodafone Romania SA [+] Line type: mobile (!) This is most likely a mobile number, but it can still be a VoIP number. [] Running OVH scan... [] Running OSINT footprint reconnaissance... [i] Generating scan URL on 411.com... [+] Scan URL: https://www.411.com/phone/40-72X-XXX-XXX Would you like to use an additional format for this number ? (y/N) n [i] ---- Web pages footprints ---- [i] Searching for footprints on web pages... (limit=10) (!) You are temporary blacklisted from Google search. Complete the captcha then press ENTER.

[!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Failed to decode response from marionette [i] Searching for documents... (limit=10) [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] ---- Reputation footprints ---- [i] Searching for reputation report on whosenumber.info... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for phone fraud footprints... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for reputation report on findwhocallsme.com... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for reputation report on yellowpages.ca... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for reputation report on phonenumbers.ie... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for reputation report on who-calledme.com... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for reputation report on usphonesearch.net... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for reputation report on whocalled.us... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for reputation report on quinumero.info... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for reputation report on uk.popularphotolook.com... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Generating URL on scamcallfighters.com... [+] http://www.scamcallfighters.com/search-phone-4072XXXXXXX.html Would you like to search for temporary number providers footprints ? (Y/n) y [i] ---- Temporary number providers footprints ---- [i] Searching for phone number on tempophone.com... [!] Unable to reach tempophone.com API. Skipping. [i] Searching for footprints on hs3x.com... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for footprints on receive-sms-now.com... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for footprints on smslisten.com... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for footprints on smsnumbersonline.com... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for footprints on freesmscode.com... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for footprints on catchsms.com... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for footprints on smstibo.com... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for footprints on smsreceiving.com... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for footprints on getfreesmsnumber.com... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for footprints on sellaite.com... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for footprints on receive-sms-online.info... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for footprints on receivesmsonline.com... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for footprints on receive-a-sms.com... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for footprints on sms-receive.net... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for footprints on receivefreesms.com... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for footprints on receive-sms.com... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for footprints on receivetxt.com... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for footprints on freephonenum.com... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for footprints on freesmsverification.com... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for footprints on receive-sms-online.com... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for footprints on smslive.co... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] ---- Social media footprints ---- [i] Searching for footprints on facebook.com... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for footprints on twitter.com... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for footprints on linkedin.com... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for footprints on instagram.com... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] ---- Phone books footprints ---- [i] Searching for footprints on numinfo.net... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for footprints on sync.me... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for footprints on whocallsyou.de... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for footprints on pastebin.com... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for footprints on whycall.me... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] Searching for footprints on locatefamily.com... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

Would you like to rerun OSINT scan ? (e.g to use a different format) (y/N) n [i] Scan finished.

sundowndev commented 5 years ago

Hi, this is definitely a bug from geckodriver.

Note that you must have firefox installed.

LaurDana commented 5 years ago

Hi,

OPERATING SYSTEM: ManjaroLinux 18.0.4 Kernel: 4.19.66-1-MANJARO (x86_64)
Desktop: Xfce 4.14

Screenshot_2019-08-24_10-35-50

Screenshot_2019-08-24_10-37-07

The geckodriver I installed is the latest: Screenshot_2019-08-24_10-45-44

Firefox was installed and it is the main browser I use.

Thanks

sundowndev commented 5 years ago

Found several topic in geckodriver repository about this:

Also found this topic on stackoverflow that describes exactly the problem: https://stackoverflow.com/questions/49734915/failed-to-decode-response-from-marionette-message-in-python-firefox-headless-s

But cannot find a real working solution at the moment. From various discussions, it seems to be a problem with memory. How much hardware memory do you have ?

LaurDana commented 5 years ago

I only have 4GB DDR4 on this machine, but I can upgrade to 12 GB.

Before opening this topic I did some Google research myself and I found and read that stackoverflow topic. But as I wrote in the first post I am not a programmer so the discussions in that topic are beyond my knowldge. I read this solotion in that topic. Do you think it will work?

Screenshot_2019-08-24_16-14-50

If you find any other solution for this problem please let me know.

Putting geckodriver in path took me some time. I ran several commands found on your page and also on youtube to succeed to put gecko in path.

I also noticed that the geckodriver is now in /usr/bin/ but also in /usr/local/bin/ in the same time on this machine. Do you think this could be a problem?

Do you think a fresh reinstall of the PhoneInfoga/selenium/python/geckodriver could fix the problem?

Thanks

sundowndev commented 5 years ago

A fresh install of Firefox and Geckodriver could help. If not, it could be a compatibility issue.

I also noticed that the geckodriver is now in /usr/bin/ but also in /usr/local/bin/ in the same time on this machine. Do you think this could be a problem?

I don't think so.

The solution you mentioned could work, can you try by yourself ? You have to edit the file lib/googlesearch.py and replace the following code :

# line 35
browser = webdriver.Firefox()

with this, including your Firefox path :

browser = webdriver.Firefox(firefox_binary='/usr/bin/firefox')
LaurDana commented 5 years ago

I don't fully understand the question. What do you mean by "output"?

I will reinstall an older version of Firefox as I mentioned above. I am not sure how to do the Geckodriver reinstall. Just delete the Geckodriver file from /usr/bin/ and /usr/local/bin/ is enough? Or do I have to run some command lines? I read yesterday on a youtube video (I can not find it anymore) related to Geckodriver errors, that the solution provided in that video only worked if selenium was not installed. Do I have to remove&reinstall selenium too?

Thanks

sundowndev commented 5 years ago

Before reinstalling, try what I mentioned.

What do you mean by "output"?

I mean, type the command in your command line and tell me what happens. So type these commands in your terminal :

  1. which geckodriver
  2. which firefox

Tell me what is the output, then edit the file lib/googlesearch.py which is in the PhoneInfoga folder. And replace this :

browser = webdriver.Firefox()

By this :

browser = webdriver.Firefox(firefox_binary='/home/laura/.mozilla/firefox')

(assuming /home/laura/.mozilla/firefox is actually your firefox path)

LaurDana commented 5 years ago

[laura@laura ~]$ which geckodriver /usr/local/bin/geckodriver [laura@laura ~]$ which firefox /usr/bin/firefox

sundowndev commented 5 years ago

Ok, then you have to replace by

browser = webdriver.Firefox(firefox_binary='/usr/bin/firefox')

here :

https://github.com/sundowndev/PhoneInfoga/blob/76a5a4012748c4e0fc9ebc1c9c48a84cdc4c2b47/lib/googlesearch.py#L31-L35

But this is actually the default path so I don't think this will change anything. This is still worth the try.

LaurDana commented 5 years ago

I already found the file and edited it. Now I run PhoneInfoga to see if the problem still exists?

Screenshot_2019-08-24_18-13-12

sundowndev commented 5 years ago

Wrong path. Use /usr/bin/firefox. Then you can run the tool again.

LaurDana commented 5 years ago

Would you like to use an additional format for this number ? (y/N) n [i] ---- Web pages footprints ---- [i] Searching for footprints on web pages... (limit=10) Traceback (most recent call last): File "phoneinfoga.py", line 95, in main() File "phoneinfoga.py", line 71, in main scanNumber(args.number) File "phoneinfoga.py", line 38, in scanNumber osintScan(number) File "/home/laura/PhoneInfoga/scanners/footprints.py", line 173, in osintScan for result in search(req, stop=10): File "/home/laura/PhoneInfoga/lib/googlesearch.py", line 35, in search browser = webdriver.Firefox(firefox_binary='/home/laura/.mozilla/firefox') File "/home/laura/.local/lib/python3.7/site-packages/selenium/webdriver/firefox/webdriver.py", line 174, in init keep_alive=True) File "/home/laura/.local/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in init self.start_session(capabilities, browser_profile) File "/home/laura/.local/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "/home/laura/.local/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute self.error_handler.check_response(response) File "/home/laura/.local/lib/python3.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities

I will change the path you mentioned above and I will post the output.

LaurDana commented 5 years ago

I changed the path as you instructed and I ran the tool again. The problem is still there.

[!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Failed to decode response from marionette

[i] Searching for documents... (limit=10) [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

[i] ---- Reputation footprints ---- [i] Searching for reputation report on whosenumber.info... [!] Request failed. Please retry or open an issue on https://github.com/sundowndev/PhoneInfoga. Message: Tried to run command without establishing a connection

I will reinstall the Firefox with an older version, v66 worked for that user. Please advise about the geckodriver reinstall. Just delete the Geckodriver file from /usr/bin/ and /usr/local/bin/ is enough? Or do I have to run some command lines?

sundowndev commented 5 years ago

Just delete the Geckodriver file from /usr/bin/ and /usr/local/bin/ is enough? Or do I have to run some command lines?

Deleting geckodriver executable in /usr/bin/ and /usr/local/bin/ is enough.

LaurDana commented 5 years ago

Hi,

I tried to install v66 of Firefox folowing the instructions from the Mozilla website for installing outside of a package manager. https://support.mozilla.org/en-US/kb/install-firefox-linux I don't know if this is the only way to install an older version of Firefox. Unfortunately I succeded to launch Firefox only from the terminal using this command ~/firefox/firefox.

Screenshot_2019-08-25_19-34-00

When I tried to check Firefox with the command which firefox the output was

[laura@laura ~]$ which firefox which: no firefox in (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)

I ran the tool again and the output was:

Would you like to use an additional format for this number ? (y/N) n [i] ---- Web pages footprints ---- [i] Searching for footprints on web pages... (limit=10) Traceback (most recent call last): File "phoneinfoga.py", line 95, in main() File "phoneinfoga.py", line 71, in main scanNumber(args.number) File "phoneinfoga.py", line 38, in scanNumber osintScan(number) File "/home/laura/PhoneInfoga/scanners/footprints.py", line 173, in osintScan for result in search(req, stop=10): File "/home/laura/PhoneInfoga/lib/googlesearch.py", line 35, in search browser = webdriver.Firefox(firefox_binary='/usr/bin/firefox') File "/home/laura/.local/lib/python3.7/site-packages/selenium/webdriver/firefox/webdriver.py", line 174, in init keep_alive=True) File "/home/laura/.local/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in init self.start_session(capabilities, browser_profile) File "/home/laura/.local/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "/home/laura/.local/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute self.error_handler.check_response(response) File "/home/laura/.local/lib/python3.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities

Geckodriver was reinstalled ok

[laura@laura ~]$ which geckodriver /usr/bin/geckodriver

sundowndev commented 5 years ago

[laura@laura ~]$ which firefox which: no firefox in (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)

This means firefox is not installed (properly). And so, PhoneInfoga will not run as it should.

Unfortunately I succeded to launch Firefox only from the terminal using this command ~/firefox/firefox.

This means firefox executable is located at /home/laura/firefox/firefox. You should try to move it to a bin path like this :

cp ~/firefox/firefox /usr/local/bin/firefox

Then retry the command which firefox, it should output /usr/local/bin/firefox.

LaurDana commented 5 years ago

That command did not work. I ran it as a root also and the output is the same.

[laura@laura ~]$ cp ~/firefox/firefox /usr/local/bin/firefox cp: cannot create regular file '/usr/local/bin/firefox': Permission denied [laura@laura ~]$ sudo su [sudo] password for laura: [laura laura]# cp ~/firefox/firefox /usr/local/bin/firefox cp: cannot stat '/root/firefox/firefox': No such file or directory

The v66 Mozilla archive is downloaded on this path on my machine /home/laura/. The firefox folder including the firefox executable is on the same path. I installed Firefox folowing with these instructions from Mozilla website:

Screenshot_2019-08-26_00-02-24

Firefox is working but I can only launch it from terminal and also can't find it in installed packages in pamac.

sundowndev commented 5 years ago

@darknodi 1. This is off-topic

  1. You didn't follow the install instructions in the docs
  2. Stop spamming issues or I'm blocking you
sundowndev commented 5 years ago

@LaurDana

sudo cp ~/firefox/firefox /usr/local/bin/firefox

Well, since you logged as root (not recommanded), what you actually typed is sudo cp /home/root/firefox/firefox /usr/local/bin/firefox but what you wanted is sudo cp /home/laura/firefox/firefox /usr/local/bin/firefox.

Because in UNIX systems, ~/ means /home/${USER}. Don't type sudo su, just sudo <command>.

So try with this : sudo cp /home/laura/firefox/firefox /usr/local/bin/firefox.

LaurDana commented 5 years ago

I ran the previous command you posted cp ~/firefox/firefox /usr/local/bin/firefox first as normal user and after that as root. Both failed.

Now I ran sudo cp /home/laura/firefox/firefox /usr/local/bin/firefox as you instructed but Firefox still doesn' launch and still doesn't appear in Pamac.

Screenshot_2019-08-26_20-08-25

But I can launch it from the terminal with this command ~/firefox/firefox. After I closed Firefox I got this message on terminal. It say something about gecko. I am on Chromium browser now.

Screenshot_2019-08-26_20-19-51

So I think I quit trying to install Mozilla v66 :D. It's beyond my skills. :D

If you find any solution for the geckodriver/marionette problem please post it.

Thanks

sundowndev commented 5 years ago

Now I ran sudo cp /home/laura/firefox/firefox /usr/local/bin/firefox as you instructed but Firefox still doesn' launch and still doesn't appear in Pamac.

This command will simply link the firefox executable in your PATH. Which means you can now launch firefox just by typing firefox in the terminal. This is needed for PhoneInfoga to launch firefox.

LaurDana commented 5 years ago

[laura@laura ~]$ firefox Exec failed with error: No such file or directory

sundowndev commented 5 years ago

Again, what's the output of which firefox ?

If you cannot get this working, consider using Docker : https://sundowndev.github.io/PhoneInfoga/install/#docker-compose

Docker is a computer program that performs operating-system-level virtualization also known as containerization.

Which will allows you to run PhoneInfoga, Firefox and everything else in a virtual environment. You'll need docker, docker-compose and a simple VNC client.

LaurDana commented 5 years ago

what's the output of which firefox ? [laura@laura ~]$ which firefox /usr/local/bin/firefox

Now I am on Firefox (installed from pamac) but if I try to launch it from the terminal with the command firefox, the output is the same: [laura@laura ~]$ firefox Exec failed with error: No such file or directory

consider using Docker Thanks for the advice. I'll read on how to use it and then try it.

LaurDana commented 5 years ago

Hi, Do you think that if python is installed in another path as the Firefox is, could be the reason that the tool doesn't work? Since I've learned from you the command which, I checked all the paths for the required software for PhoneInfoga.

[laura@laura ~]$ which python /usr/bin/python [laura@laura ~]$ which firefox /usr/local/bin/firefox

So the python is in /usr/bin but the Firefox is in /usr/local/bin Could this be the problem?

programandoconro commented 5 years ago

Please try it. I will try to run the Dockerfile again today, yesterday a managed to solve the first problem about the gecko. I will share if I have success.

El sáb., 31 ago. 2019 a las 14:16, LaurDana (notifications@github.com) escribió:

Hi, Do you think that if python is installed in another path as the Firefox is, could be the reason that the tool doesn't work? Since I've learned from you the command which, I checked all the paths for the required software for PhoneInfoga.

[laura@laura ~]$ which python /usr/bin/python [laura@laura ~]$ which firefox /usr/local/bin/firefox

So the python is in /usr/bin but the Firefox is in /usr/local/bin Coukd this be the problem?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sundowndev/PhoneInfoga/issues/113?email_source=notifications&email_token=AL6LYNWWXRCVZSKSAWWJ3Y3QHJVJ5A5CNFSM4IPECKCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5TMSSY#issuecomment-526829899, or mute the thread https://github.com/notifications/unsubscribe-auth/AL6LYNV2UWSUAIZILHD7P6DQHJVJ5ANCNFSM4IPECKCA .

LaurDana commented 5 years ago

@progamandoconro I don't understand what exactly to try? If you mean to move python to /usr/local/bin to be in the same path as Firefox, I will need some help to do this. As I said in my first post I am just an average Linux user. Please note that I installed python using this command: python3 -m pip install -r requirements.txt --user

Thanks

sundowndev commented 5 years ago

@LaurDana He's talking about using Docker.

So the python is in /usr/bin but the Firefox is in /usr/local/bin Could this be the problem?

No.

LaurDana commented 4 years ago

I installed docker, pulled the repository as you instructed and then tried to run the tool. The output was: bash: phoneinfoga.py: command not found

[laura@laura ~]$ docker run --rm -it sundowndev/phoneinfoga --help
usage: phoneinfoga.py -n <number> [options]

Advanced information gathering tool for phone numbers
(https://github.com/sundowndev/PhoneInfoga) version v1.10.9

optional arguments:
  -h, --help            show this help message and exit
  -n number, --number number
                        The phone number to scan (E164 or international
                        format)
  -i input_file, --input input_file
                        Phone number list to scan (one per line)
  -o output_file, --output output_file
                        Output to save scan results
  -s scanner, --scanner scanner
                        The scanner to use
  --recon               Launch custom format reconnaissance
  --no-ansi             Disable colored output
  -v, --version         Show tool version
[laura@laura ~]$ phoneinfoga.py -n +407XXXXXXXX
bash: phoneinfoga.py: command not found

Did I do something wrong?

The docker seems to be installed properly.

laura@laura ~]$ docker version
Client:
 Version:           19.03.1-ce
 API version:       1.40
 Go version:        go1.12.8
 Git commit:        74b1e89e8a
 Built:             Fri Aug 16 14:00:42 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          19.03.1-ce
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.8
  Git commit:       74b1e89e8a
  Built:            Fri Aug 16 13:58:02 2019
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v1.2.8.m
  GitCommit:        a4bc1d432a2c33aa2eed37f338dceabb93641310.m
 runc:
  Version:          1.0.0-rc8
  GitCommit:        425e105d5a03fabd737a126ad93d62a9eeede87f
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683
sundowndev commented 4 years ago

Did I do something wrong?

@LaurDana Yes. Since you are running the tool in Docker, you have to use docker run --rm -it sundowndev/phoneinfoga as executable, not phoneinfoga.py.

So the command should be : docker run --rm -it sundowndev/phoneinfoga -n +407XXXXXXXX

LaurDana commented 4 years ago

Of course. I should have seen that in the previous command I used, copied from your installation documentation.

Now I ran the command properly but I still get an error message:

[laura@laura ~]$ docker run --rm -it sundowndev/phoneinfoga -n +4072xxxxxxx
    ___ _                       _____        __                   
   / _ \ |__   ___  _ __   ___  \_   \_ __  / _| ___   __ _  __ _ 
  / /_)/ '_ \ / _ \| '_ \ / _ \  / /\/ '_ \| |_ / _ \ / _` |/ _` |
 / ___/| | | | (_) | | | |  __/\/ /_ | | | |  _| (_) | (_| | (_| |
 \/    |_| |_|\___/|_| |_|\___\____/ |_| |_|_|  \___/ \__, |\__,_|
                                                      |___/       
 PhoneInfoga Ver. v1.10.9
 Coded by Sundowndev

[!] ---- Fetching informations for 4072xxxxxxx ---- [!]
[*] Running local scan...
[+] International format: +40 72x xxx xxx
[+] Local format: 726xxxxxxx
[+] Country found: Romania (+40)
[+] City/Area: Romania
[+] Carrier: Vodafone
[+] Timezone: Europe/Bucharest
[i] The number is valid and possible.
[*] Running Numverify.com scan...
[+] Number: (+40) 0726xxxxxxx
[+] Country: Romania (RO)
[+] Location: 
[+] Carrier: Vodafone Romania SA
[+] Line type: mobile
(!) This is most likely a mobile number, but it can still be a VoIP number.
[*] Running OVH scan...
[*] Running OSINT footprint reconnaissance...
[i] Generating scan URL on 411.com...
[+] Scan URL: https://www.411.com/phone/40-72x-xxx-xxx
Would you like to use an additional format for this number ? (y/N) n
[i] ---- Web pages footprints ----
[i] Searching for footprints on web pages... (limit=10)
Traceback (most recent call last):
  File "/usr/local/lib/pyenv/versions/3.6.9/lib/python3.6/site-packages/selenium/webdriver/common/service.py", line 76, in start
    stdin=PIPE)
  File "/usr/local/lib/pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 729, in __init__
    restore_signals, start_new_session)
  File "/usr/local/lib/pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 1364, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'geckodriver': 'geckodriver'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "phoneinfoga.py", line 95, in <module>
    main()
  File "phoneinfoga.py", line 71, in main
    scanNumber(args.number)
  File "phoneinfoga.py", line 38, in scanNumber
    osintScan(number)
  File "/opt/phoneinfoga/scanners/footprints.py", line 173, in osintScan
    for result in search(req, stop=10):
  File "/opt/phoneinfoga/lib/googlesearch.py", line 35, in search
    browser = webdriver.Firefox()
  File "/usr/local/lib/pyenv/versions/3.6.9/lib/python3.6/site-packages/selenium/webdriver/firefox/webdriver.py", line 164, in __init__
    self.service.start()
  File "/usr/local/lib/pyenv/versions/3.6.9/lib/python3.6/site-packages/selenium/webdriver/common/service.py", line 83, in start
    os.path.basename(self.path), self.start_error_message)
selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.

Please note that I didn't used docker-compose file because it's beyond my skills.

sundowndev commented 4 years ago

You have to run geckodriver with docker-compose (following this guide: https://sundowndev.github.io/PhoneInfoga/install/#from-the-source-code). Did you ?

To verify, what is the output of docker ps ? You also need a VNC client, I don't know if MacOS have one by default.

LaurDana commented 4 years ago

[laura@laura ~]$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES [laura@laura ~]$

I didn't used docker-compose because I didn't know where to find that source code you were talking about in the guide, to download it.

I don't use MacOS. I use Linux Manjaro.

sundowndev commented 4 years ago

I didn't used docker-compose because I didn't know where to find that source code you were talking about in the guide, to download it.

The source code is the actual code in this GitHub repository. You just have to pull it and run docker-compose inside the folder.

I don't use MacOS. I use Linux Manjaro.

Ok never mind. There's also a lot of VNC clients on Linux.

sundowndev commented 4 years ago

Closing due to inactivity. Feel free to reopen and add further details!

LaurDana commented 4 years ago

Hi

I installed Kali Linux in VirtualBox on the same machine where I have Manjaro as host OS. The tool works fine on Kali. No hardware or software changes were made on the machine configuration since opening this thread. On host OS - Manjaro Linux, the tool still doesn't work.

sundowndev commented 4 years ago

Hi @LaurDana, thank you for updating this issue. I'm glad you finally made it work. This is probably an issue with Manjaro and Geckodriver. Feel free to reopen and give further details about this bug :)