Lucene search
+L

Simple Workflow

🗓️ 01 Dec 2025 12:51:31Reported by KittySploitType 
kittysploit
 kittysploit
🔗 kittysploit.com👁 1 Views

Simple Workflow in kittysploit demonstrates base features via ping and port scanning.

Refs
Code
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from kittysploit import *

class Module(Workflow):
    
    __info__ = {
        'name': 'Simple Workflow',
        'description': 'Workflow basic demonstration of base features',
        'author': 'KittySploit Team',
    }
    
    # Options
    target = OptString("", "Target host or IP address", required=True)
    verbose = OptBool(False, "Enable verbose output", required=False)
    
    def run(self):

        # Step 1: Ping the target
        ping_step = WorkflowStep(
            module_path="auxiliary/ping_test",
            options={
                "target": self.target,
                "verbose": self.verbose
            },
            name="ping_target",
            description="Connectivity test to target",
            on_success="port_scan",
            on_failure="workflow_end"
        )
        ping_step.map_output("ping_result", "target_reachable")
        ping_step.map_output("response_time", "ping_time")
        
        # Step 2: Basic port scan
        scan_step = WorkflowStep(
            module_path="auxiliary/quick_scan",
            name="port_scan",
            description="Quick scan of common ports",
            on_success="service_check",
            on_failure="workflow_end"
        )
        scan_step.map_input("target", "target_host")
        scan_step.map_output("open_ports", "discovered_ports")
        
        # Step 3: Check services
        service_step = WorkflowStep(
            module_path="auxiliary/service_check",
            name="service_check",
            description="Check services on open ports",
            on_success=None,
            on_failure=None
        )
        service_step.map_input("discovered_ports", "ports_to_check")
        service_step.map_output("services", "detected_services")
        
        # Add all steps to the workflow
        self.add_step(ping_step)
        self.add_step(scan_step)
        self.add_step(service_step)
        
        # Define the start step
        self.set_start_step("ping_target")

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

01 Dec 2025 12:51Current
5.8Medium risk
Vulners AI Score5.8
1