该报错是因为在执行execute_command()函数时,缺少了一个必需的参数vulnerable_urls。根据代码分析,vulnerable_urls是一个列表,用于存储存在漏洞的URL。在执行execute_command()函数时,需要将vulnerable_urls作为参数传递进去。

解决该问题的方法是,在执行execute_command()函数时,将vulnerable_urls作为参数传递进去。具体做法是修改execute_commands()函数中的代码,将execute_command()函数调用语句修改为:

execute_command(url, command, vulnerable_urls)

修改后的execute_commands()函数代码如下:

def execute_commands(url, commands):
    for command in commands:
        if execute_command(url, command, vulnerable_urls):
            print(f"Command executed: {command}")
        else:
            print(f"An error has occured, url is not vulnerable: {url}")

修改后重新运行程序,报错应该就会消失

运行报错:Traceback most recent call last File CUsersAdministratorDownloadsPOC-bomber-maingaipocpy line 66 in module main File CUsersAdministratorDownloadsPOC-bomber-maingaipocpy line 56 in main ex

原文地址: https://www.cveoy.top/t/topic/hyen 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录