Compare commits
31
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e27df61576 | ||
|
|
c0f28325a8 | ||
|
|
538c91c38d | ||
|
|
9ba5f4a934 | ||
|
|
8e2e0d66d4 | ||
|
|
9944febe83 | ||
|
|
fef294ce98 | ||
|
|
2f7f795398 | ||
|
|
132bb83982 | ||
|
|
61c14c38b6 | ||
|
|
a1ed099fb1 | ||
|
|
34ab8fea23 | ||
|
|
72c1a58f00 | ||
|
|
6999bfddbb | ||
|
|
0fd81b5d73 | ||
|
|
4d6f6e9e9b | ||
|
|
6a534a487f | ||
|
|
b68a3b0a11 | ||
|
|
a6eb8fe87f | ||
|
|
c6f913308b | ||
|
|
8bec22b3ee | ||
|
|
d0e3f0de92 | ||
|
|
395b5e72c8 | ||
|
|
d1f028ccaf | ||
|
|
614f504cf6 | ||
|
|
b016d4509b | ||
|
|
91c8e703fd | ||
|
|
b0a2f08b67 | ||
|
|
517e6820bf | ||
|
|
3bb8c14971 | ||
|
|
fd4c08be75 |
No files matched your search
@@ -0,0 +1,174 @@
|
||||
<img src='/.images/phomber_logo.png'>
|
||||
|
||||
|
||||
```
|
||||
A Infomation Grathering tool that reverse search phone numbers and get their details !
|
||||
```
|
||||
|
||||
<a href='https://www.w3schools.in/ethical-hacking/information-gathering-techniques/'><img src="https://img.shields.io/badge/Etical Hacking-Infomation Grathering Tool-yellow.svg?logo=sharp"></a>
|
||||
<a href='https://github.com/s41r4j/phomber/releases/'><img src="https://img.shields.io/badge/Version-v1.0-orange.svg?logo=vectorworks"></a>
|
||||
<a href='https://www.python.org/'><img src="https://img.shields.io/badge/Python-3-blue.svg?style=flat&logo=python"></a>
|
||||
<a href='LICENSE'><img src="https://img.shields.io/badge/License-GPL%20v3.0-brightgreen.svg"></a>
|
||||
|
||||
|
||||
<br>
|
||||
|
||||
|
||||
<details>
|
||||
<summary>What is phomber?</summary>
|
||||
<br>
|
||||
|
||||
- Phomber is one of the best tools available for Infomation Grathering.
|
||||
- It reverse searches given number online and retrieves all data available.
|
||||
|
||||
<br>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Search & Scans</summary>
|
||||
<br>
|
||||
|
||||
- Basic search
|
||||
- Advance search (Experimental)
|
||||
- Phoneinfoga scan (Comming soon)
|
||||
- Truecaller scan (Comming soon)
|
||||
|
||||
<br>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Operating Systems Tested</summary>
|
||||
<br>
|
||||
|
||||
- [](https://www.google.com/search?q=OS%20X)
|
||||
- [](https://www.google.com/search?q=Unix+Linux)
|
||||
- [](https://www.google.com/search?q=Windows)
|
||||
|
||||
|
||||
<br>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Direct Downloads</summary>
|
||||
<br>
|
||||
|
||||
- [zip](https://github.com/s41r4j/phomber/archive/refs/tags/phomber.zip)
|
||||
- [tar.gz](https://github.com/s41r4j/phomber/archive/refs/tags/phomber.tar.gz)
|
||||
|
||||
<br>
|
||||
</details>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
|
||||
## Installation
|
||||
|
||||
Clone the repo
|
||||
|
||||
```
|
||||
git clone https://github.com/s41r4j/phomber
|
||||
```
|
||||
Change the directory
|
||||
|
||||
```
|
||||
cd phomber
|
||||
```
|
||||
Install Requirements
|
||||
|
||||
```
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
<details>
|
||||
<summary>Additional Configuration</summary>
|
||||
<br>
|
||||
|
||||
- There is a `config.py` file persent in `phomber` folder.
|
||||
- Click on '[*Additional Settings*](https://github.com/s41r4j/phomber/blob/main/.more/additional_config.md)' to see how to configure it.
|
||||
|
||||
</details>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
|
||||
## Usage
|
||||
|
||||
> The `PH0MBER` takes [command line arguments](https://www.google.com/search?q=Command+Line+Arguments).
|
||||
|
||||
```
|
||||
$ python3 phomber.py +(country code)xxxxxxxxxx
|
||||
```
|
||||
|
||||
<br>
|
||||
|
||||
Example (Linux based):
|
||||
```
|
||||
s41r4j@github:~/Desktop/phomber$ python3 phomber.py +001234567890
|
||||
```
|
||||
|
||||
<details>
|
||||
<summary>Explaination</summary>
|
||||
<br>
|
||||
|
||||
- `python3 phomber.py` - Running phomber script with python3
|
||||
- `+001234567890` - Command line argument, the phone number you want to search.
|
||||
<details>
|
||||
<summary>Phone number breakdown / explained</summary>
|
||||
<br>
|
||||
|
||||
- `+00` is [country code](https://en.wikipedia.org/wiki/List_of_country_calling_codes), eg: +1 (Canada, US), +47 (Norway), +91 (India), +86 (China)
|
||||
- `1234567890` is the phone number without spaces, dashes & brackets
|
||||
|
||||
<br>
|
||||
</details>
|
||||
</details>
|
||||
|
||||
|
||||
|
||||
<br>
|
||||
<br>
|
||||
|
||||
## Prerequisites
|
||||
|
||||
<details>
|
||||
<summary>Required</summary>
|
||||
<br>
|
||||
|
||||
- python3
|
||||
- git
|
||||
|
||||
<br>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Optional</summary>
|
||||
<br>
|
||||
|
||||
- GoLang ([Download Here](https://golang.org/dl/)) , for Phoneinfoga scan.
|
||||
- OpenCage Account ([create a account here](https://opencagedata.com/users/sign_up)) , for Basic search.
|
||||
- Truecaller Account ([create a account here](https://www.truecaller.com/auth/sign-in)) , for Truecaller scan.
|
||||
|
||||
<br>
|
||||
</details>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
<hr>
|
||||
<br>
|
||||
|
||||
<a href=''><img src="https://img.shields.io/badge/Disclaimer-Please don't use this tool for unethical purposes-red.svg?logo=hackaday"></a>
|
||||
> The [Developer](https://github.com/s41r4j/) of [PH0MBER](https://github.com/s41r4j/phomber/) is not responsible for an loss or misuse of the tool, it is end user's responsiblity.
|
||||
|
||||
<br>
|
||||
|
||||
## Support
|
||||
|
||||
<a href="https://www.buymeacoffee.com/S41R4J" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/arial-yellow.png" alt="Buy Me A Coffee" style="height: 50px !important;width: 50px !important;"></a>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
<hr>
|
||||
<br>
|
||||
|
||||

|
||||
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
# This is the configuration file for PH0MBER (v1.0)
|
||||
# Created by @s41r4j (https://github.com/s41r4j/)
|
||||
|
||||
#=======================================================
|
||||
|
||||
# Please put your API key here
|
||||
key = ''
|
||||
|
||||
# Q] What is the API key for & why should I get it?
|
||||
# > The API key is to get the cordinates of the country the sim belongs to.
|
||||
# > You should get it so that you could get more accurate infomation (Latitude and longitude) about target.
|
||||
|
||||
# Q] Where Should you get it ?
|
||||
# > You have to get the api keys from [opencagedata.com] website only.
|
||||
# > Create an account and then go to dashboard > API keys (tab)
|
||||
# > Here you will get you api keys
|
||||
|
||||
# [NOTE] How to get api keys is explained in detail on GITHUB & YOUTUBE.
|
||||
# [Github] https://github.com/s41r4j/phomber/blob/main/.more/additional_config.md
|
||||
|
||||
# [Youtube] https://youtube.com/s41r4j/
|
||||
|
||||
#=======================================================
|
||||
@@ -0,0 +1,238 @@
|
||||
##############################
|
||||
# PH0MBER #
|
||||
# #
|
||||
# An advance pyhton script #
|
||||
# that finds phone number #
|
||||
# details. #
|
||||
# #
|
||||
##############################
|
||||
# #
|
||||
# Created by : S41R4J #
|
||||
# #
|
||||
# Github : #
|
||||
# https://github.com/s41r4j/ #
|
||||
# #
|
||||
##############################
|
||||
# PH0MBER (v1.0) #
|
||||
##############################
|
||||
|
||||
|
||||
# Importing main packages
|
||||
import phonenumbers, sys, datetime, progressbar, time, mechanize
|
||||
|
||||
# For geolocation cordinates
|
||||
from config import key
|
||||
from opencage.geocoder import OpenCageGeocode
|
||||
|
||||
# Utilized in external search
|
||||
from bs4 import BeautifulSoup
|
||||
|
||||
# Module for Progress Bar
|
||||
from tqdm import tqdm
|
||||
|
||||
# Importing modules for finding Geolocation, Carrier or Service Provider, Timezone
|
||||
from phonenumbers import geocoder, carrier, timezone
|
||||
|
||||
def target_number():
|
||||
|
||||
# Globalizing variables
|
||||
global phone_number
|
||||
|
||||
# Taking input as target number
|
||||
phone_number = str(sys.argv[1])
|
||||
|
||||
def bar(description):
|
||||
|
||||
# for i in tqdm (range (100), desc=description):
|
||||
# time.sleep(0.01)
|
||||
# pass
|
||||
|
||||
widgets = [description, progressbar.AnimatedMarker()]
|
||||
bar = progressbar.ProgressBar(widgets=widgets).start()
|
||||
|
||||
for i in range(50):
|
||||
time.sleep(0.03)
|
||||
bar.update(i)
|
||||
|
||||
def line():
|
||||
print('-'*45)
|
||||
|
||||
def current_time():
|
||||
e = datetime.datetime.now()
|
||||
time_now = "%s:%s:%s" % (e.hour, e.minute, e.second)
|
||||
|
||||
return(time_now)
|
||||
|
||||
def banner():
|
||||
print('''
|
||||
▒█▀▀█ ▒█░▒█ █▀▀█ ▒█▀▄▀█ ▒█▀▀█ ▒█▀▀▀ ▒█▀▀█
|
||||
▒█▄▄█ ▒█▀▀█ █▄▀█ ▒█▒█▒█ ▒█▀▀▄ ▒█▀▀▀ ▒█▄▄▀
|
||||
▒█░░░ ▒█░▒█ █▄▄█ ▒█░░▒█ ▒█▄▄█ ▒█▄▄▄ ▒█░▒█''')
|
||||
|
||||
|
||||
def dev():
|
||||
line();print();line()
|
||||
print('[#] THANK YOU for using PH0MBER')
|
||||
line()
|
||||
print('''
|
||||
[=] Contact us for IMPOROVEMENTS and Fixing BUGS of the PH0MBER.\n
|
||||
[+] Github : https://github.com/s41r4j/phomber/
|
||||
[+] Instagram : https://www.instagram.com/s41r4j/
|
||||
''')
|
||||
|
||||
#==============================================
|
||||
|
||||
def external_search(phone_number):
|
||||
|
||||
mc = mechanize.Browser()
|
||||
mc.set_handle_robots(False)
|
||||
|
||||
url = 'https://www.findandtrace.com/trace-mobile-number-location'
|
||||
mc.open(url)
|
||||
|
||||
mc.select_form(name='trace')
|
||||
mc['mobilenumber'] = phone_number # Enter a mobile number
|
||||
res = mc.submit().read()
|
||||
|
||||
soup = BeautifulSoup(res,'html.parser')
|
||||
tbl = soup.find_all('table',class_='shop_table')
|
||||
#print(tbl)
|
||||
|
||||
data = tbl[0].find('tfoot')
|
||||
c=0
|
||||
for i in data:
|
||||
c+=1
|
||||
if c in (1,4,6,8):
|
||||
continue
|
||||
th = i.find('th')
|
||||
td = i.find('td')
|
||||
try:
|
||||
print('[+]',th.text,td.text)
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
data = tbl[1].find('tfoot')
|
||||
c=0
|
||||
for i in data:
|
||||
c+=1
|
||||
if c in (2,20,22,26):
|
||||
th = i.find('th')
|
||||
td = i.find('td')
|
||||
print('[+]',th.text,td.text)
|
||||
|
||||
#==============================================
|
||||
|
||||
def getting_details():
|
||||
|
||||
line()
|
||||
print(f'[#] Scanned [{phone_number}] @ [{current_time()}]')
|
||||
line()
|
||||
|
||||
try:
|
||||
# Phone number format: (+Countrycode)xxxxxxxxxx
|
||||
phone_number_details = phonenumbers.parse(phone_number)
|
||||
|
||||
# Extracting number without Country Code
|
||||
global only_number
|
||||
split_pnd = str(phone_number_details).split('Number:', 1)
|
||||
|
||||
only_number = split_pnd[1].replace(' ', '')
|
||||
|
||||
except:
|
||||
print('[!] Country Code Missing\n')
|
||||
print('[TIP] Use plus sign (+), before your two\ndigit country code {Example: +91, +44, +1} ')
|
||||
line()
|
||||
sys.exit()
|
||||
|
||||
# Validating a phone number
|
||||
valid = phonenumbers.is_valid_number(phone_number_details)
|
||||
|
||||
# Checking possibility of a number
|
||||
possible = phonenumbers.is_possible_number(phone_number_details)
|
||||
|
||||
if valid == True and possible == True:
|
||||
|
||||
print();line()
|
||||
print('[$] Basic Results')
|
||||
line()
|
||||
|
||||
# Creating a phone number variable for country
|
||||
counrty_number = phonenumbers.parse(phone_number,'CH')
|
||||
|
||||
# Gives mobile number's location (Country)
|
||||
geolocation = geocoder.description_for_number(counrty_number, 'en')
|
||||
|
||||
# Creating a phone number variable for service provider
|
||||
service_number = phonenumbers.parse(phone_number,'RO')
|
||||
|
||||
# Gives mobile number's service provider (Airtel, Idea, Jio)
|
||||
service_provider = carrier.name_for_number(service_number, 'en')
|
||||
|
||||
# Gives mobile number's timezone
|
||||
timezone_details_unfiltered = str(timezone.time_zones_for_number(phone_number_details))
|
||||
|
||||
special_chars = "()'',"
|
||||
for special_char in special_chars:
|
||||
timezone_details = timezone_details_unfiltered.replace(special_char, '')
|
||||
|
||||
print('[+] Timezone : ', timezone_details)
|
||||
print('[+] Service Provicer : ', service_provider)
|
||||
print('[+] Country : ', geolocation)
|
||||
|
||||
if key:
|
||||
|
||||
try:
|
||||
# Finding cordinates of country
|
||||
ocd_geocoder = OpenCageGeocode(key)
|
||||
query = str(geolocation)
|
||||
|
||||
results = ocd_geocoder.geocode(query)
|
||||
|
||||
lat = results[0]['geometry']['lat']
|
||||
lng = results[0]['geometry']['lng']
|
||||
|
||||
print('[+] Latitude : ', lat)
|
||||
print('[+] Longutude : ', lng)
|
||||
|
||||
except:
|
||||
print('\n[-] Entered Invaild API')
|
||||
print("[-] Instructions are givien in config file.")
|
||||
|
||||
else:
|
||||
print("\n[-] Enter API key in 'config.py'")
|
||||
print("[-] Instructions are givien in config file.")
|
||||
|
||||
|
||||
else :
|
||||
print('[!] Invalid Number Detected')
|
||||
line()
|
||||
sys.exit()
|
||||
|
||||
#==============================================
|
||||
|
||||
def main():
|
||||
banner()
|
||||
target_number()
|
||||
bar('Validating Number ')
|
||||
getting_details()
|
||||
line();print();line()
|
||||
print('[$] Advance Results (Experimental)')
|
||||
line()
|
||||
try:
|
||||
external_search(only_number)
|
||||
except IndexError:
|
||||
print('[!] Got Unexpected Error\n\n[Tip] Please report any error on the github\n page (https://github.com/s41r4j/phomber) &\n stpes to reproduce same error and HELP US\n to improve the tool for better.')
|
||||
|
||||
line();print();line()
|
||||
print('[Phoneinfoga scan] comming soon')
|
||||
line();print();line()
|
||||
print('[Truecaller scan] comming soon')
|
||||
|
||||
dev()
|
||||
line()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
#---------------------------------------------------
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 117 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 55 KiB |
@@ -1,8 +1,8 @@
|
||||
## Additional Configuration
|
||||
|
||||
- [API Keys](api_keys.md) (for Basic search)
|
||||
- [Phoneinfoga Setup](phoneinfoga.md) (for Phoneinfoga scan)
|
||||
- [Truecaller Account](truecaller.md) (for Truecaller scan)
|
||||
- [Golang](go.md) (for Phoneinfoga scan)
|
||||
|
||||
<br>
|
||||
<hr>
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
# Comming soon
|
||||
@@ -0,0 +1 @@
|
||||
# Phoneinfoga Setup
|
||||
@@ -1,24 +1,26 @@
|
||||
<img src='/.images/Phomber_official_logo.png'>
|
||||
<img src='/.images/phomber_logo.png'>
|
||||
|
||||
|
||||
```
|
||||
A Infomation Grathering tool that reverse search phone numbers and get their details !
|
||||
```
|
||||
|
||||
<a href='LICENSE'><img src="https://img.shields.io/badge/License-GNU%20General%20Public%20License%20v3.0-red.svg"></a>
|
||||
<a href='https://www.python.org/'><img src="https://img.shields.io/badge/Language-Python 3-blue.svg"></a>
|
||||
<a href='https://www.golang.org/'><img src="https://img.shields.io/badge/Language-Golang-brightgreen.svg"></a>
|
||||
<a href='https://www.w3schools.in/ethical-hacking/information-gathering-techniques/'><img src="https://img.shields.io/badge/Etical Hacking-Infomation Grathering Tool-yellow.svg"></a>
|
||||
<a href='https://www.w3schools.in/ethical-hacking/information-gathering-techniques/'><img src="https://img.shields.io/badge/Etical Hacking-Infomation Grathering Tool-yellow.svg?logo=sharp"></a>
|
||||
<a href='https://github.com/s41r4j/phomber/releases/'><img src="https://img.shields.io/badge/Version-v2.0-orange.svg?logo=vectorworks"></a>
|
||||
<a href='https://www.python.org/'><img src="https://img.shields.io/badge/Python-3-blue.svg?style=flat&logo=python"></a>
|
||||
<a href='hhttps://golang.org/'><img src="https://img.shields.io/badge/Golang-Phoneinfoga-9cf.svg?style=flat&logo=go"></a>
|
||||
<a href='LICENSE'><img src="https://img.shields.io/badge/License-GPL%20v3.0-brightgreen.svg"></a>
|
||||
|
||||
|
||||
<br>
|
||||
|
||||
|
||||
<details>
|
||||
<summary>What phomber does?</summary>
|
||||
<summary>What is phomber?</summary>
|
||||
<br>
|
||||
|
||||
- Phomber reverse searches given number online and retrieves all data available.
|
||||
- It is one of the best tools available for Infomation Grathering.
|
||||
- Phomber is one of the best tools available for Infomation Grathering.
|
||||
- It reverse searches given number online and retrieves all data available.
|
||||
|
||||
<br>
|
||||
</details>
|
||||
@@ -29,17 +31,32 @@ A Infomation Grathering tool that reverse search phone numbers and get their det
|
||||
|
||||
- Basic search
|
||||
- Advance search (Experimental)
|
||||
- Phoneinfoga scan (Comming soon)
|
||||
- Phoneinfoga scan (Optional)
|
||||
- Truecaller scan (Comming soon)
|
||||
|
||||
<br>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Download Zip</summary>
|
||||
<summary>Operating Systems Tested</summary>
|
||||
<br>
|
||||
|
||||
- [Start downloading]()
|
||||
- [](https://www.google.com/search?q=OS%20X)
|
||||
- [](https://www.google.com/search?q=Unix+Linux)
|
||||
- [](https://www.google.com/search?q=Windows)
|
||||
|
||||
|
||||
<br>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Direct Downloads</summary>
|
||||
<br>
|
||||
|
||||
- [zip](https://github.com/s41r4j/phomber/archive/refs/tags/phomber.zip)
|
||||
- [tar.gz](https://github.com/s41r4j/phomber/archive/refs/tags/phomber.tar.gz)
|
||||
|
||||
<br>
|
||||
</details>
|
||||
|
||||
<br>
|
||||
@@ -67,7 +84,7 @@ A Infomation Grathering tool that reverse search phone numbers and get their det
|
||||
<br>
|
||||
|
||||
- There is a `config.py` file persent in `phomber` folder.
|
||||
- Click on '[*Additional Settings*](https://github.com/s41r4j/phomber/blob/main/.more/additional_config.md)' to see more about it.
|
||||
- Click on '[*Additional Settings*](https://github.com/s41r4j/phomber/blob/main/.more/additional_config.md)' to see how to configure it.
|
||||
|
||||
</details>
|
||||
|
||||
@@ -102,6 +119,7 @@ s41r4j@github:~/Desktop/phomber$ python3 phomber.py +001234567890
|
||||
- `+00` is [country code](https://en.wikipedia.org/wiki/List_of_country_calling_codes), eg: +1 (Canada, US), +47 (Norway), +91 (India), +86 (China)
|
||||
- `1234567890` is the phone number without spaces, dashes & brackets
|
||||
|
||||
<br>
|
||||
</details>
|
||||
</details>
|
||||
|
||||
@@ -118,17 +136,19 @@ s41r4j@github:~/Desktop/phomber$ python3 phomber.py +001234567890
|
||||
|
||||
- python3
|
||||
- git
|
||||
|
||||
|
||||
<br>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Optional</summary>
|
||||
<br>
|
||||
|
||||
- GoLang ([Download Here](https://golang.org/dl/)) , for Phoneinfoga scan.
|
||||
- OpenCage Account ([create a account here](https://opencagedata.com/users/sign_up)) , for Basic search.
|
||||
- Truecaller Account ([create a account here](https://www.truecaller.com/auth/sign-in)) , for Truecaller scan.
|
||||
- Golang ([Go Programing Language](https://golang.org/)) , for Phoneinfoga scan.
|
||||
|
||||
|
||||
<br>
|
||||
</details>
|
||||
|
||||
<br>
|
||||
@@ -136,7 +156,7 @@ s41r4j@github:~/Desktop/phomber$ python3 phomber.py +001234567890
|
||||
<hr>
|
||||
<br>
|
||||
|
||||
<a href=''><img src="https://img.shields.io/badge/Disclaimer-Please don't use this tool for unethical purposes-red.svg"></a>
|
||||
<a href=''><img src="https://img.shields.io/badge/Disclaimer-Please don't use this tool for unethical purposes-red.svg?logo=hackaday"></a>
|
||||
> The [Developer](https://github.com/s41r4j/) of [PH0MBER](https://github.com/s41r4j/phomber/) is not responsible for an loss or misuse of the tool, it is end user's responsiblity.
|
||||
|
||||
<br>
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
# Please put your API key here
|
||||
key = ''
|
||||
|
||||
|
||||
# FAQ
|
||||
|
||||
# Q] What is the API key for & why should I get it?
|
||||
# > The API key is to get the cordinates of the country the sim belongs to.
|
||||
# > You should get it so that you could get more accurate infomation (Latitude and longitude) about target.
|
||||
@@ -20,4 +23,26 @@ key = ''
|
||||
|
||||
# [Youtube] https://youtube.com/s41r4j/
|
||||
|
||||
#=======================================================
|
||||
|
||||
# Want phoneinfoga scan results
|
||||
# 'N' for NO / 'Y' For YES
|
||||
phoneinfoga_key = 'y'
|
||||
|
||||
|
||||
# FAQ
|
||||
|
||||
# Q] What if put other than 'N' and 'Y' in config for 'phoneinfoga_scan' ?
|
||||
# > Anything other than 'Y' is considered no
|
||||
|
||||
# Q] Why to use this feature?
|
||||
# > To improve search results
|
||||
|
||||
# Q] Giving error for phoneinfoga\
|
||||
# > This could have the following reasons :
|
||||
# > * Golang not installed
|
||||
# > * config.py file not configured
|
||||
# > + For above to problems, check instructions here: https://github.com/s41r4j/phomber/blob/main/.more/phoneinfoga.md
|
||||
# > If any other error please create an issue at (https://github.com/s41r4j/phomber/issues) with steps to reproduce the error, and screenshots recommended.
|
||||
|
||||
#=======================================================
|
||||
+51
-3
@@ -13,17 +13,20 @@
|
||||
# https://github.com/s41r4j/ #
|
||||
# #
|
||||
##############################
|
||||
# PH0MBER (v1.0) #
|
||||
# PH0MBER (v2.0) #
|
||||
##############################
|
||||
|
||||
|
||||
# Importing main packages
|
||||
import phonenumbers, sys, datetime, progressbar, time, mechanize
|
||||
import phonenumbers, sys, datetime, progressbar, time, mechanize, os
|
||||
|
||||
# For geolocation cordinates
|
||||
from config import key
|
||||
from opencage.geocoder import OpenCageGeocode
|
||||
|
||||
# Phoneinfoga phoneinfoga_support
|
||||
from config import phoneinfoga_key
|
||||
|
||||
# Utilized in external search
|
||||
from bs4 import BeautifulSoup
|
||||
|
||||
@@ -122,6 +125,46 @@ def external_search(phone_number):
|
||||
|
||||
#==============================================
|
||||
|
||||
def phoneinfoga_scan(phone_number):
|
||||
|
||||
if phoneinfoga_key == 'Y' or phoneinfoga_key == 'y' :
|
||||
|
||||
try:
|
||||
if os.path.isfile('./phoneinfoga'):
|
||||
try:
|
||||
command = f'./phoneinfoga scan -n {phone_number}'
|
||||
os.system(command)
|
||||
except:
|
||||
print('[!] Phoneinfoga Scan Error\n[-] Please create a issue at:\n [https://github.com/s41r4j/phomber/issues]\n[-] With steps to reproduce the error !!')
|
||||
|
||||
else:
|
||||
try:
|
||||
if os.path.isfile('./phoneinfoga.sh'):
|
||||
os.system('bash phoneinfoga.sh')
|
||||
else:
|
||||
if os.path.isfile('./phoneinfoga.bat'):
|
||||
os.system('./phoneinfoga.bat')
|
||||
print()
|
||||
print()
|
||||
|
||||
try:
|
||||
command = f'./phoneinfoga scan -n {phone_number}'
|
||||
os.system(command)
|
||||
except:
|
||||
print('[!] Phoneinfoga Scan Error\n[-] Please create a issue at:\n [https://github.com/s41r4j/phomber/issues]\n[-] With steps to reproduce the error !!')
|
||||
|
||||
except:
|
||||
print('[!] Phoneinfoga support - installation files missing,\n[-] Please clone/download the phomber again !!')
|
||||
|
||||
except:
|
||||
print("[!] Setup not done properly\n[-] Please check Instructions at:\n [https://github.com/s41r4j/phomber/blob/main/.more/phoneinfoga.md]\n[-] Please create a issue at:\n [https://github.com/s41r4j/phomber/issues]\n[-] With steps to reproduce the error !!")
|
||||
|
||||
else:
|
||||
print("[-] 'Phoneinfoga Scan' is turned OFF\n[-] Setup Instructions are given in config.py to turn it ON")
|
||||
|
||||
|
||||
#==============================================
|
||||
|
||||
def getting_details():
|
||||
|
||||
line()
|
||||
@@ -191,8 +234,11 @@ def getting_details():
|
||||
lat = results[0]['geometry']['lat']
|
||||
lng = results[0]['geometry']['lng']
|
||||
|
||||
google_maps_link = "https://www.google.com/maps/place/"+lat+","+lng
|
||||
|
||||
print('[+] Latitude : ', lat)
|
||||
print('[+] Longutude : ', lng)
|
||||
print('[+] Google Maps Link : ', google_maps_link)
|
||||
|
||||
except:
|
||||
print('\n[-] Entered Invaild API')
|
||||
@@ -224,7 +270,9 @@ def main():
|
||||
print('[!] Got Unexpected Error\n\n[Tip] Please report any error on the github\n page (https://github.com/s41r4j/phomber) &\n stpes to reproduce same error and HELP US\n to improve the tool for better.')
|
||||
|
||||
line();print();line()
|
||||
print('[Phoneinfoga scan] comming soon')
|
||||
print('[$] Phoneinfoga Scan Results')
|
||||
line()
|
||||
phoneinfoga_scan(phone_number)
|
||||
line();print();line()
|
||||
print('[Truecaller scan] comming soon')
|
||||
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
:: RUN THE FILE [phoneinfoga.bat] IN POWERSHELL
|
||||
|
||||
@echo off
|
||||
|
||||
call :phomber_phoneinfoga_support
|
||||
|
||||
:phomber_phoneinfoga_support
|
||||
echo ====================================
|
||||
echo Phomber - phoneinfoga support
|
||||
echo ====================================
|
||||
echo https://github.com/s41r4j/phomber
|
||||
echo ====================================
|
||||
echo _
|
||||
echo _
|
||||
curl -L "https://github.com/sundowndev/phoneinfoga/releases/download/v2.3.8/PhoneInfoga_Windows_x86_64.tar.gz" -o phoneinfoga.tar.gz
|
||||
tar -xf phoneinfoga.tar.gz
|
||||
DEL phoneinfoga.tar.gz
|
||||
echo _
|
||||
echo _
|
||||
echo "Phoneinfoga installed (Golang required to run program)"
|
||||
echo _
|
||||
echo _
|
||||
echo Check Out Instruction and Prerequisites here :-
|
||||
echo https:/\github.com\s41r4j\phomber\blob\main\%CD%more\phoneinfoga.md
|
||||
exit
|
||||
@@ -0,0 +1,21 @@
|
||||
phomber_phoneinfoga_support () {
|
||||
echo ====================================
|
||||
echo Phomber - phoneinfoga support
|
||||
echo ====================================
|
||||
echo https://github.com/s41r4j/phomber
|
||||
read -t 2 -p "==================================="
|
||||
echo =
|
||||
echo _
|
||||
curl -L "https://github.com/sundowndev/phoneinfoga/releases/download/v2.3.8/phoneinfoga_$(uname -s)_$(uname -m).tar.gz" -o phoneinfoga.tar.gz
|
||||
tar xfv phoneinfoga.tar.gz
|
||||
rm phoneinfoga.tar.gz
|
||||
echo _
|
||||
echo _
|
||||
echo "Phoneinfoga installed (Golang required to run program)"
|
||||
echo _
|
||||
echo _
|
||||
echo Check Out Instruction and Prerequisites here :-
|
||||
echo https://github.com/s41r4j/phomber/blob/main/.more/phoneinfoga.md
|
||||
}
|
||||
|
||||
phomber_phoneinfoga_support
|
||||
Reference in new issue
Block a user