honeypots package¶
Submodules¶
honeypots.honeypot module¶
-
class
honeypots.honeypot.
Honeypot
(address, scan_os=False, verbose_scan=True)[source]¶ Bases:
object
Holds all data known about one Honeypot. Used for decoupling the acquisition of the data from its usages.
-
__init__
(address, scan_os=False, verbose_scan=True)[source]¶ Parameters: - address – ip address of the target
- scan_os – scan for Operating System information (requires elevated privileges)
- verbose_scan – print progress bars and stats when running a scan
-
css
= []¶
-
get_all_ports
(protocol)[source]¶ Returns all open ports on the honeypot :param protocol: ‘tcp’ / ‘udp’ :return: list of ports
Grab banner on specified port :param port: port number :param protocol: ‘tcp’ / ‘udp’ :return: banner as string :raises: ScanFailure
-
get_service_name
(port, protocol)[source]¶ Get name of service running on requested port :param port: target port :param protocol: ‘tcp’ or ‘udp’ :return: service name
-
get_service_ports
(service_name, protocol)[source]¶ Checks if the Honeypot has a certain service available. :param service_name: name of the service to search for :param protocol: ‘tcp’ or ‘udp’ :return: list of port numbers (a certain service can run on multiple ports)
-
get_service_product
(protocol, port)[source]¶ Get the product description for a certain port :param protocol: ‘tcp’ / ‘udp’ :param port: port number :return: description string
-
get_websites
()[source]¶ Gets websites for all active web servers found on the target :return: list of website content strings
-
get_websites_css
()[source]¶ Gets website stylesheet for all active web servers found on the target :return: list of stylesheet strings
-
has_tcp
(port_number)[source]¶ Checks if the Honeypot has a certain port open. :param port_number: port number :return: port status boolean
-
ip
¶
-
os
¶
-
run_nmap_script
(script, port, protocol='tcp')[source]¶ Runs a .nse script on the specified port range :param script: <script_name>.nse :param port: port / port range :param protocol: ‘tcp’/’udp’ :return: script output as string :raises: ScanFailure
-
scan_id
= 0¶
-
websites
= []¶
-