Skip to content

liebki/PySecurity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PySecurity

Overview

This projects is/will provide a bunch of stuff to get informations that are publicly available or network related functionality.

  1. Fetching SSL Certificate Data: Queries crt.sh to obtain SSL certificate transparency logs.
  2. Fetching Domain Registrar and Contact Information: Uses the IANA RDAP service to retrieve registrar details and contact information for a given domain.
  3. UrlHaus URL Check: Check a url, domain, IP or whatever against the database of UrlHaus.
  4. IP information retrieval: Get a few informations about any IP-address
  5. Shodan CVE Database: Get informations about CVEs, get the newest or used exploits.
  6. DNS record fetchting: Get the DNS-records of domains with their content.

Features

This project aims to include the following features:

  • Fetch SSL certificate information
  • Retrieve domain informations for a given domain using RDAP (see Notes)
    • Get domain contact details, including registrar information, phone numbers, and emails
    • Extract domain registration events (e.g., creation and expiration dates)
    • The name (often the registrar or company where the domain was purchased)
  • Use the UrlHaus database to check a url, domain or IP
    • If found in dataset, further information like urlhaus-link, date of addition, threat and exact threat-url are returned.
  • Use different providers to get informations about IP-addresses
    • Depending on the data available, things like ccTld's, country, long and lati, isp, organisation, asn, countries at country border, languages, is country in europe, population, zipcode
  • Get informations about CVEs
    • Get active exploits by CVEs
    • Get CVEs by product
    • Get detail CVE informations
    • etc.
  • DNS record fetchting
    • Get all available DNS-records of a domain with the data.

Planned

The thing is I want to only use free providers to make this script simpler and just work without keys.

  • Shodan crawling for host and service enumeration
  • AbuseIP database checks for malicious IPs
    • Maybe as API-Key is needed
  • Network scanning capabilities
  • CVE (Common Vulnerabilities and Exposures) information lookup
    • Done?
  • Other security and reconnaissance utilities as needed
  • More IP-informations?
    • Ip2Hostname
    • Hostname2Ip

Requirements

  • Python 3.x
  • requests library

Installation

To install the required dependencies, run:

pip install -r requirements.txt

Usage

  • Please check the main.py file for the code or the individual modules in the modules folder.

Notes

  • Some domains may not have publicly available contact information due to privacy regulations.
  • Some TLDs, especially country-code TLDs (ccTLDs), may not have an RDAP instance available.
    • Example: .de domains do not work since DENIC does not provide an RDAP instance.
  • If no data is available, functions return None.

License

This project is open-source and available under the MIT License.

Pylint passed?

Pylint

About

Set of simple (wanna be) security scripts

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages