Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
.. image:: https://img.shields.io/badge/License-MIT-green.svg :alt: reverse-ip-py license :target: https://opensource.org/licenses/MIT
.. image:: https://img.shields.io/pypi/v/reverse-ip.svg :alt: reverse-ip-py release :target: https://pypi.org/project/reverse-ip
.. image:: https://github.com/whois-api-llc/reverse-ip-py/workflows/Build/badge.svg :alt: reverse-ip-py build :target: https://github.com/whois-api-llc/reverse-ip-py/actions
The client library for
Reverse IP/DNS API <https://reverse-ip.whoisxmlapi.com/>
_
in Python language.
The minimum Python version is 3.6.
::
pip install reverse-ip
Full API documentation available here <https://reverse-ip.whoisxmlapi.com/api/documentation/making-requests>
_
::
from reverseip import *
client = Client('Your API key')
::
# Get parsed records as a model instance.
result = client.data('8.8.8.8')
print(result.size)
for record in result.result:
print("Domain: {}, visited: {}".format(
record.name, record.last_visit))
# Get raw API response
resp_str = client.raw_data('1.1.1.1')
Pagination
::
for response in client.iterate_over('1.1.1.1'):
# Working with the current page
print(response.size)
for record in response.result:
print(record.name)
# Alternative way
try:
response = client.data('1.1.1.1')
# processing
# ...
while response.has_next:
response = client.next_page('1.1.1.1', response)
# processing
# ...
except ReverseIpApiError as error:
print(error.message)
Get raw data in XML
::
raw = client.raw_data('1.1.1.1', output_format='xml')
print(raw)
FAQs
Python client library for Reverse IP/DNS API.
We found that reverse-ip 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.