Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
This library is a wrapper for the https://vak-sms.com/api/vak/ API from enthusiasts. All methods are described and all types are explicitly defined. Methods that create requests to https://vak-sms.com/api/vak/ return a pydantic's models for each response. Please write about all problems related to the library to issues
API is up-to-date as of 01 October 2024.
pip install aiovaksms
git clone https://github.com/AioSmsProviders/aiovaksms
import asyncio
from aiovaksms import VakSms
async def main():
client = VakSms('TOKEN') # use vaksms.com domain (not work in russia)
client = VakSms('TOKEN', base_url='moresms.net') # work in russia
balances = await client.get_balance()
print(balances) # balance = 100.0
asyncio.run(main())
import asyncio
from aiovaksms import VakSms
async def main():
client = VakSms('TOKEN') # use vaksms.com domain (not work in russia)
client = VakSms('TOKEN', base_url='moresms.net') # work in russia
data = await client.get_count_number('cp')
print(data) # service='cp' count=4663 price=18.0
asyncio.run(main())
import asyncio
from aiovaksms import VakSms
async def main():
client = VakSms('TOKEN') # use vaksms.com domain (not work in russia)
client = VakSms('TOKEN', base_url='moresms.net') # work in russia
data = await client.get_country_list()
print(data) # [CountryOperator(countryName='Tajikistan', countryCode='tj', operatorList=['babilon mobile', 'beeline', 'megafon', 'tcell']), CountryOperator(countryName='Zimbabwe', countryCode='zw', operatorList=['econet', 'netone', 'telecel'])... ]
asyncio.run(main())
import asyncio
from aiovaksms import VakSms
async def main():
client = VakSms('TOKEN') # use vaksms.com domain (not work in russia)
client = VakSms('TOKEN', base_url='moresms.net') # work in russia
data = await client.get_number('ya')
# An exclusive function for obtaining the lifetime of a number
# all known services whose lifetime differs from the standard 20 minutes
# are included in the library database as of 10/02/2024
# also work with "rent=True" parameter
print(data.lifetime) # 1200 lifetime from date of purchase
print(data.lives_up_to) # 1727823949 unix time of death
print(data) # tel=79296068469 service='ya' idNum='1725546315697382' lifetime=1200 lives_up_to=1727823949
asyncio.run(main())
import asyncio
from aiovaksms import VakSms
async def main():
client = VakSms('TOKEN') # use vaksms.com domain (not work in russia)
client = VakSms('TOKEN', base_url='moresms.net') # work in russia
data = await client.get_sms_code('1725546315697382') # 1725546315697382 is number id (idNum)
print(data) # smsCode='1234'
asyncio.run(main())
import asyncio
from aiovaksms import VakSms
async def main():
client = VakSms('TOKEN') # use vaksms.com domain (not work in russia)
client = VakSms('TOKEN', base_url='moresms.net') # work in russia
data = await client.set_status('1725546315697382', 'send') # 1725546315697382 is number id (idNum)
print(data) # ready
asyncio.run(main())
import asyncio
from aiovaksms import VakSms
async def main():
client = VakSms('TOKEN') # use vaksms.com domain (not work in russia)
client = VakSms('TOKEN', base_url='moresms.net') # work in russia
data = await client.get_count_number_list()
print(data) # {'mr': Service(name='VK - MailRu', icon='https://vak-sms.com/static/service/mr.png', info='Тут можно принять смс от сервисов VKGroup.Не забывайте проверять номера на занятость через восстановление. Подробнее в базе знаний - https://bit.ly/3M6tXup', cost=22.0, rent=False, quantity=41153, private=False), ... }
print(data['mr'].name) # VK - MailRu
asyncio.run(main())
FAQs
Async VakSms api wrapper for python
We found that aiovaksms 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.