Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
phone-email-verifier
Advanced tools
Validation of the email and international or local telephone number.
If you install with
pip install phone_email_verifier
1 : Download here https://github.com/Bogro/phone_email_verifier/blob/develop/phone_email_verifier/code.txt and drop it at the root of your project.
2 : Add the phone code dictionary path in the .env of your project.
#.env
DICT_CODE="dict_name.txt"
Note: This file is important for checking phone numbers
For direct downloads on github you do not need to follow the process above
from phone_email_verifier.email_verifier import email_verifier as email_v
email = email_v()
email_list = ['test@mail.tx', 'demo@mail.test', 'e.mail@mailer.com']
>>> email.set_email_list(email_list)
or
>>> email.set_email_in_file(file_name)
>>> email.exec()
{'OK': ['test@mail.tx', 'e.mail@mailer.com'], 'ERROR': ['demo@mail.test']}
It is possible to make a restriction on the country by making:
>>> email.set_email_list(email, 'FR')
or
>>> email.set_email_in_file(file_name, 'FR')
and this will make a filter on any email not ending
.fr
if the file used is a CSV, indicate the column of email
>>> email.set_email_in_file(file_name, colum=0)
or
>>> email.set_email_in_file(file_name, 'FR', 0)
Les types de fichier utilisable sont:
CSV et TXT
from phone_email_verifier.phone_verifier import phone_verifier as phone_v
phone = phone_v()
phone_list = ['+22547000000', '+225-47-00-00-00', '+225 47 00 00 00 00', '+33 00 25 00 11', '47 02 00 00']
>>> filter.set_phone_list(phone_list)
or
>>> filter.set_phone_in_file(file_name)
>>> filter.exec()
{'OK': ['+22547000000', '+22547000000', '+2254700000000', '+3300250011'], 'ERROR': ['47020000']}
It is possible to make a precision with the name of the country and is identifying code
>>> filter.set_phone_list(phone_list, 'FR', '+33')
or
>>> filter.set_phone_in_file(name_list, 'FR', '+33', colum=0) # colum is column of numbers
>>> filter.exec()
{'OK': ['+3300250011'], 'ERROR': ['47020000', '+22547000000', '+22547000000', '+2254700000000']}
It is important to specify the number column when the file is a csv file.
You can add or reduce the list according to your usage. I advise you to reduce according to your use, to make fast execution
To add, go to the line and:
The name of the country, abbreviation of the name, identify code (+33 | 33 | 0033), length of the number without the identified code and the local code, the local code if it exists,
Example:
France
FR
+33|33|0033
8
Note:
If the number can be several lengths, add it in ascending order with " | " as separator
6|7|8|9
s'il existe
0
Note: if there are more than one, add with " | " as separator
0|1|2
if it does not exist the line ends with a
','
in the end we have this line
France,FR,+33|33|0033,8,0,
* The spaces between the values are forbidden
* The finished line always with a ";
FAQs
Validation of the email or international or local telephone number
We found that phone-email-verifier demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.