Skip to content

Commit

Permalink
International Phonenumber Feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Aravindha1234u committed Aug 24, 2020
1 parent e9f7684 commit 5480066
Show file tree
Hide file tree
Showing 11 changed files with 162 additions and 37 deletions.
6 changes: 0 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@ MANIFEST

# Installer logs
pip-log.txt
output.txt
pip-delete-this-directory.txt
plugins/log
plugins/output.csv
plugins/output.log

# Unit test / coverage reports
htmlcov/
Expand Down Expand Up @@ -114,6 +110,4 @@ core/config.py
# vscode settings
.vscode/

# database
plugins/IP2PROXY-LITE-PX8.BIN.ZIP
plugins/IP2PROXY-LITE-PX8.BIN
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<h4 align="center"> Most Advanced Open Source Intelligence (OSINT) Framework </h4>

<p align="center">
<a href="https://github.com/bhavsec/reconspider/releases"><img src="https://img.shields.io/badge/release-1.0.6%20(beta)-blue.svg">
<a href="https://github.com/bhavsec/reconspider/releases"><img src="https://img.shields.io/github/v/release/bhavsec/reconspider">
<a href="https://travis-ci.com/bhavsec/reconspider"><img src="https://api.travis-ci.com/bhavsec/reconspider.svg"></a>
<a class="badge-align" href="https://www.codacy.com/app/bhavsec/reconspider?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=bhavsec/reconspider&amp;utm_campaign=Badge_Grade"><img src="https://api.codacy.com/project/badge/Grade/107277982d6a4f2b9c55bba0d66d8051"/></a>

Expand Down Expand Up @@ -151,7 +151,7 @@ Step 3 - Installing all dependencies.
Once you clone and check python installation, you will find directory name as **reconspider**. Just go to that directory and install using these commands:
```
cd reconspider
sudo python3 setup.py install
sudo python setup.py install
```


Expand All @@ -174,7 +174,7 @@ Step 2 - Installing all dependencies.

After unzipping, go to that directory using Command Prompt and type the following command.
```
python3 setup.py install
python setup.py install
```

Step 3 - Database
Expand All @@ -192,7 +192,7 @@ Download database, extract it and move to reconspider/plugins/ directory.
ReconSpider is very handy tool and easy to use. All you have to do is just have to pass values to parameter.
In order to start ReconSpider just type:
```
python3 reconspider.py
python reconspider.py
```

**1. IP**
Expand Down Expand Up @@ -355,7 +355,7 @@ If you would like to see features and issues that are being worked on, you can d

# Special Thanks

* [Aravindha Hariharan M](https://instagram.com/aravindha_hariharan)
* [Adithyan AK](https://github.com/adithyan-ak)
* [S0md3v](https://github.com/s0md3v/)
* [Parshant](mailto:[email protected])

2 changes: 1 addition & 1 deletion core/repl_prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def repl(): # Read–eval–print loop

elif choice == 3:
while 1:
ph = prompt("PHONE NUMBER (919485247632) >> ")
ph = prompt("PHONE NUMBER (with CountryCode example) >> ")
break
Phonenumber(ph)
continue
Expand Down
Binary file added plugins/IP2PROXY-LITE-PX8.BIN (1).ZIP
Binary file not shown.
Binary file added plugins/IP2PROXY-LITE-PX8.BIN.ZIP
Binary file not shown.
53 changes: 29 additions & 24 deletions plugins/Phonenumber.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,32 @@
import requests

def Phonenumber(ph):
print ('[+]' + ' Fetching Phonenumber Details...' + '\n')
api_key=phoneapis()
if api_key == "":
print("Add you phoneapis api key to src/api.py")
exit()
url = ("http://apilayer.net/api/validate?access_key="+api_key+"&number="+str(ph))
response=requests.get(url)
try:
if "91" not in str(ph):
print("Error: CountryCode is missing")
else:
if response.status_code ==200:
get=response.json()
print("Number: "+get['number'])
print("Type: "+get['line_type'])
print("CountryCode: "+get['country_code'])
print("Country: "+get['country_name'])
print("Location: "+get['location'])
print("Carrier: "+get['carrier'])
print("")
else:
print("Error: Invalid Mobile Number")
except:
print(str(response.json()['error']['info']).split(".")[0])
print ('[+]' + ' Fetching Phonenumber Details...' + '\n')
apikey=phoneapis()
if apikey == "":
print("Add you phoneapis api key to src/api.py")
exit()
ph=''.join([i for i in ph if i.isdigit()])
for api_key in apikey.split(","):
url = ("http://apilayer.net/api/validate?access_key="+api_key+"&number="+str(ph))
try:
response=requests.get(url)
if 'error' in response.json().keys():
continue
elif response.json()['valid']==False:
print("Error: Invalid Mobile Number")
return
else:
get=response.json()
print("Number: "+get['number'])
print("Type: "+get['line_type'])
print("CountryCode: "+get['country_code'])
print("Country: "+get['country_name'])
print("Location: "+get['location'])
print("Carrier: "+get['carrier'])
print("")
return
except:
continue
print(str(response.json()['error']['info']).split(".")[0])

9 changes: 9 additions & 0 deletions plugins/api.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
def phoneapis():
api= "e01791e4d18fbbdfa0c9033bf207decd,2f8c8e865a0b25bbf4da08c4db039b8d"
return str(api)
def ipstack():
api="276cfee2c31729505691e515e8321a02"
return str(api)
def gmap():
api="AIzaSyAKGik6Fok3_mbIsgquaAnDGNy-h_AjhVw"
return str(api)
41 changes: 41 additions & 0 deletions plugins/log
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
 h8mail is free & open-source. Please report scammers.


 Version 2.4.1 - "ECHO MIKE" 
 
 ._____. ._____. ;____________;
 | ._. | | ._. | ; h8mail ;
 | !_| |_|_|_! | ;------------;
 !___| |_______! Heartfelt Email OSINT
 .___|_|_| |___. Use responsibly
 | ._____| |_. | ;____________________;
 | !_! | | !_! | ; github.com/khast3x ;
 !_____! !_____! ;--------------------;
 
[!] Not running latest h8mail version. [Current: 2.4.1 | Latest: 2.5]
[>] Targets:
[email protected] 
[~] Removing duplicates
[~] Target factory started for [email protected]

 __________________________________________________________________________________________

[>] Showing results for [email protected]

[~] No results founds
__________________________________________________________________________________________



  Session Recap: 


Target | Status 
__________________________________________________________________________________________

[email protected] |  Not Compromised 
__________________________________________________________________________________________

Execution time (seconds):  3.238361358642578 

[>] Writing to CSV
1 change: 1 addition & 0 deletions plugins/output.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Target,Type,Data
75 changes: 75 additions & 0 deletions plugins/webosint/who/output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
% [whois.apnic.net]
% Whois data copyright terms http://www.apnic.net/db/dbcopyright.html

% Information related to '182.72.162.0 - 182.72.162.63'

% Abuse contact for '182.72.162.0 - 182.72.162.63' is '[email protected]'

inetnum: 182.72.162.0 - 182.72.162.63
netname: KRCF-1933857-Coimbatore
descr: KUMARAGURU COLLEGE OF TEC
descr: n/a
descr: KUMARAGURU COLLEGE OF TECHNOLOGY THUDIYALUR
descr: ROAD SARAVANAMPATTI COIMBATORE-641035
descr: Coimbatore
descr: TAMIL NADU
descr: India
descr: Contact Person: N SIVARAMAKRISHNAN
descr: Email: [email protected]
descr: Phone: 9789559327
country: IN
admin-c: NA40-AP
tech-c: NA40-AP
mnt-by: MAINT-IN-BBIL
mnt-irt: IRT-BHARTI-IN
status: ASSIGNED NON-PORTABLE
last-modified: 2017-02-27T10:46:40Z
source: APNIC

irt: IRT-BHARTI-IN
address: Bharti Airtel Ltd.
address: ISP Division - Transport Network Group
address: 234 , Okhla Industrial Estate,
address: Phase III, New Delhi-110020, INDIA
e-mail: [email protected]
abuse-mailbox: [email protected]
admin-c: NA40-AP
tech-c: NA40-AP
auth: # Filtered
remarks: [email protected] was validated on 2019-12-14
mnt-by: MAINT-IN-BBIL
last-modified: 2019-12-14T08:39:37Z
source: APNIC

person: Network Administrator
nic-hdl: NA40-AP
e-mail: [email protected]
address: Bharti Airtel Ltd.
address: ISP Division - Transport Network Group
address: Plot no.16 , Udyog Vihar , Phase -IV , Gurgaon - 122015 , Haryana , INDIA
address: Phase III, New Delhi-110020, INDIA
phone: +91-124-4222222
fax-no: +91-124-4244017
country: IN
mnt-by: MAINT-IN-BBIL
last-modified: 2018-12-18T12:52:19Z
source: APNIC

% Information related to '182.72.162.0/24AS9498'

route: 182.72.162.0/24
descr: BHARTI-IN
descr: Bharti Airtel Limited
descr: Class A ISP in INDIA .
descr: Plot No. CP-5,sector-8,
descr: IMT Manesar
descr: INDIA
country: IN
origin: AS9498
mnt-by: MAINT-IN-BBIL
last-modified: 2010-05-15T09:59:58Z
source: APNIC

% This query was served by the APNIC Whois Service version 1.88.15-46 (WHOIS-JP3)


2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

fout = open("plugins/api.py", "w")
fout.write("def phoneapis():"+ "\n")
fout.write(" api= "+ '"' + "2f8c8e865a0b25bbf4da08c4db039b8d" + '"' + "\n")
fout.write(" api= "+ '"' + "e01791e4d18fbbdfa0c9033bf207decd,2f8c8e865a0b25bbf4da08c4db039b8d" + '"' + "\n")
fout.write(" return str(api)"+ "\n")
fout.write("def ipstack():"+ "\n")
fout.write(" api="+ '"' +"276cfee2c31729505691e515e8321a02"+ '"' + "\n")
Expand Down

0 comments on commit 5480066

Please sign in to comment.