Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on local and Numverify scans #24

Closed
VampireFox2 opened this issue Jan 27, 2019 · 9 comments
Closed

Error on local and Numverify scans #24

VampireFox2 opened this issue Jan 27, 2019 · 9 comments
Labels
kind/bug Something isn't working unable to reproduce

Comments

@VampireFox2
Copy link

So I've properly installed Phoneinfoga along with the requirements however when I try running it with:

python3 phoneinfoga.py -n +1891XXXXXXX -s all --osint

I get the following output:

[!] ---- Fetching informations for +1891XXXXXXX ---- [!]
[*] Running local scan...
Traceback (most recent call last):
  File "phoneinfoga.py", line 654, in <module>
    scanNumber(args.number)
  File "phoneinfoga.py", line 602, in scanNumber
    localScan(InputNumber)
  File "phoneinfoga.py", line 268, in localScan
    'GET', 'https://restcountries.eu/rest/v2/callingcode/{}'.format(numberCountryCode.replace('+', ''))).content)
  File "/usr/lib/python3.5/json/__init__.py", line 312, in loads
    s.__class__.__name__))
TypeError: the JSON object must be str, not 'bytes'

I'm not fluent in Python so I have no idea how to fix this or even understand what this means. I did everything correctly. Maybe I made a really stupid mistake and I'm just not seeing it.

@VampireFox2 VampireFox2 changed the title Traceback Error Traceback (most recent call last): Jan 27, 2019
@sundowndev sundowndev added kind/bug Something isn't working unable to reproduce labels Jan 28, 2019
@sundowndev
Copy link
Owner

sundowndev commented Jan 28, 2019

Could you provide the dial code of the number you attempt to scan ?
It's not clear to me. +1 ?

sundowndev added a commit that referenced this issue Jan 28, 2019
@VampireFox2
Copy link
Author

+1 is for the United States

@sundowndev
Copy link
Owner

sundowndev commented Jan 28, 2019

Can you update the tool and retry ? It should be fixed.
git pull or python3 phoneinfoga.py --update

@VampireFox2
Copy link
Author

VampireFox2 commented Jan 29, 2019

I just updated it and still had issues. It ran partially this time however it got the country code wrong. It said it was Canada when it's a US number. It got the state correct which is weird. It gets to the point where it says The number is valid and possible, running Numverify.com scan.... then displays some issues. I'll copy and paste it here.

Here it is:

python3 phoneinfoga.py -n +1619XXXXXXX -s all --osint
    ___ _                       _____        __                   
   / _ \ |__   ___  _ __   ___  \_   \_ __  / _| ___   __ _  __ _ 
  / /_)/ '_ \ / _ \| '_ \ / _ \  / /\/ '_ \| |_ / _ \ / _` |/ _` |
 / ___/| | | | (_) | | | |  __/\/ /_ | | | |  _| (_) | (_| | (_| |
 \/    |_| |_|\___/|_| |_|\___\____/ |_| |_|_|  \___/ \__, |\__,_|
                                                      |___/       
 PhoneInfoga Ver. v1.0.0-rc3
 Coded by Sundowndev


[!] ---- Fetching informations for 1619XXXXXXX ---- [!]
[*] Running local scan...
[*] Country code found: Canada (CA)
[+] International format: +1 619-XXX-XXXX
[+] Local format: 0619XXXXXXX
[+] Country code: +1
[+] Location: California
[+] Carrier: 
[+] Area: California
[+] Timezone: America/Los_Angeles
[*] The number is valid and possible.
[*] Running Numverify.com scan...
Traceback (most recent call last):
  File "phoneinfoga.py", line 666, in <module>
    scanNumber(args.number)
  File "phoneinfoga.py", line 625, in scanNumber
    numverifyScan()
  File "phoneinfoga.py", line 343, in numverifyScan
    data = json.loads(response.content)
  File "/usr/lib/python3.5/json/__init__.py", line 312, in loads
    s.__class__.__name__))
TypeError: the JSON object must be str, not 'bytes'

@sundowndev sundowndev reopened this Jan 29, 2019
@sundowndev
Copy link
Owner

sundowndev commented Jan 31, 2019

I was able to reproduce this. For some reasons it works fine on the release candidate branch (develop). I just merged it.

Can you retry and tell me ?
Thank you

sundowndev added a commit that referenced this issue Jan 31, 2019
@VampireFox2
Copy link
Author

Hello again, my apologies for the late reply I was very busy. I still receive the same errors as above. It also still displays Canada as the country code. Most of everything before that works and is valid.

@sundowndev
Copy link
Owner

sundowndev commented Feb 4, 2019

Hi, I just pushed a commit to the develop branch. Can you use it and try again ?

git checkout develop then git pull

Either it will work, or you should get a custom error such as "Numverify is not available"

Thank you!

@VampireFox2
Copy link
Author

VampireFox2 commented Feb 4, 2019

So I ran the commands you stated above and that solved it. Everything works now! The entire scan completed and I had no errors whatsoever. The only thing that was incorrect was the Country displayed for the country code which displays Country code found: Canada (CA). Other than that everythings good. Thanks!

@sundowndev sundowndev changed the title Traceback (most recent call last): Error on local and Numverify scans Feb 4, 2019
@NeOkC
Copy link

NeOkC commented Nov 13, 2021

¿How can i fix this error?

[*] Running Numverify.com scan...
[!] Numverify.com is not available
[!] Couldn't find a tree builder with the features you requested: html5lib. Do you need to install a parser library?

Repository owner locked as resolved and limited conversation to collaborators Nov 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working unable to reproduce
Projects
None yet
Development

No branches or pull requests

3 participants