@@ -447,12 +447,12 @@ async def github_wordlist(self, interaction: discord.Interaction, org: str,
447447 @app_commands .command (name = "backup_scan" , description = "Discover backup files using Fuzzuli" )
448448 @app_commands .describe (
449449 domain = "Target domain to scan for backup files" ,
450- threads = "Number of threads (default: 10 )" ,
450+ threads = "Number of threads (default: 100 )" ,
451451 delay = "Delay between requests in ms (default: 100)" ,
452452 full = "Run full backup scan on all subdomains (default: False)"
453453 )
454454 async def backup_scan (self , interaction : discord .Interaction , domain : str ,
455- threads : int = 10 , delay : int = 100 , full : bool = False ):
455+ threads : int = 100 , delay : int = 100 , full : bool = False ):
456456 """Discover backup files using Fuzzuli."""
457457 scan_id = f"backup_{ int (time .time ())} "
458458
@@ -592,10 +592,13 @@ async def scan_status(self, interaction: discord.Interaction):
592592 await interaction .response .send_message (embed = embed )
593593
594594 @app_commands .command (name = "subdomains" , description = "Enumerate subdomains" )
595- @app_commands .describe (domain = "The domain to enumerate" )
596- async def subdomains_cmd (self , interaction : discord .Interaction , domain : str ):
595+ @app_commands .describe (
596+ domain = "The domain to enumerate" ,
597+ threads = "Number of threads for subfinder (default: 100)"
598+ )
599+ async def subdomains_cmd (self , interaction : discord .Interaction , domain : str , threads : int = 100 ):
597600 scan_id = f"subdomains_{ int (time .time ())} "
598- command = [AUTOAR_SCRIPT_PATH , "subdomains" , "get" , "-d" , domain ]
601+ command = [AUTOAR_SCRIPT_PATH , "subdomains" , "get" , "-d" , domain , "-t" , str ( threads ) ]
599602 active_scans [scan_id ] = { 'type' : 'subdomains' , 'target' : domain , 'status' : 'running' , 'start_time' : datetime .now (), 'interaction' : interaction }
600603 embed = self .create_scan_embed ("Subdomains" , domain , "running" )
601604 await interaction .response .send_message (embed = embed )
@@ -612,20 +615,26 @@ async def cnames_cmd(self, interaction: discord.Interaction, domain: str):
612615 asyncio .create_task (self ._run_scan_background (scan_id , command ))
613616
614617 @app_commands .command (name = "livehosts" , description = "Filter live hosts from subdomains" )
615- @app_commands .describe (domain = "The domain" )
616- async def livehosts_cmd (self , interaction : discord .Interaction , domain : str ):
618+ @app_commands .describe (
619+ domain = "The domain" ,
620+ threads = "Number of threads for httpx (default: 100)"
621+ )
622+ async def livehosts_cmd (self , interaction : discord .Interaction , domain : str , threads : int = 100 ):
617623 scan_id = f"live_{ int (time .time ())} "
618- command = [AUTOAR_SCRIPT_PATH , "livehosts" , "get" , "-d" , domain ]
624+ command = [AUTOAR_SCRIPT_PATH , "livehosts" , "get" , "-d" , domain , "-t" , str ( threads ) ]
619625 active_scans [scan_id ] = { 'type' : 'live' , 'target' : domain , 'status' : 'running' , 'start_time' : datetime .now (), 'interaction' : interaction }
620626 embed = self .create_scan_embed ("Live Hosts" , domain , "running" )
621627 await interaction .response .send_message (embed = embed )
622628 asyncio .create_task (self ._run_scan_background (scan_id , command ))
623629
624630 @app_commands .command (name = "urls" , description = "Collect URLs and JS URLs" )
625- @app_commands .describe (domain = "The domain" )
626- async def urls_cmd (self , interaction : discord .Interaction , domain : str ):
631+ @app_commands .describe (
632+ domain = "The domain" ,
633+ threads = "Number of threads for urlfinder and jsfinder (default: 100)"
634+ )
635+ async def urls_cmd (self , interaction : discord .Interaction , domain : str , threads : int = 100 ):
627636 scan_id = f"urls_{ int (time .time ())} "
628- command = [AUTOAR_SCRIPT_PATH , "urls" , "collect" , "-d" , domain ]
637+ command = [AUTOAR_SCRIPT_PATH , "urls" , "collect" , "-d" , domain , "-t" , str ( threads ) ]
629638 active_scans [scan_id ] = { 'type' : 'urls' , 'target' : domain , 'status' : 'running' , 'start_time' : datetime .now (), 'interaction' : interaction }
630639 embed = self .create_scan_embed ("URLs" , domain , "running" )
631640 await interaction .response .send_message (embed = embed )
@@ -644,30 +653,39 @@ async def reflection_cmd(self, interaction: discord.Interaction, domain: str):
644653 asyncio .create_task (self ._run_scan_background (scan_id , command ))
645654
646655 @app_commands .command (name = "nuclei" , description = "Run nuclei templates on live subdomains" )
647- @app_commands .describe (domain = "The domain" )
648- async def nuclei_cmd (self , interaction : discord .Interaction , domain : str ):
656+ @app_commands .describe (
657+ domain = "The domain" ,
658+ threads = "Number of threads for nuclei (default: 100)"
659+ )
660+ async def nuclei_cmd (self , interaction : discord .Interaction , domain : str , threads : int = 100 ):
649661 scan_id = f"nuclei_{ int (time .time ())} "
650- command = [AUTOAR_SCRIPT_PATH , "nuclei" , "run" , "-d" , domain ]
662+ command = [AUTOAR_SCRIPT_PATH , "nuclei" , "run" , "-d" , domain , "-t" , str ( threads ) ]
651663 active_scans [scan_id ] = { 'type' : 'nuclei' , 'target' : domain , 'status' : 'running' , 'start_time' : datetime .now (), 'interaction' : interaction }
652664 embed = self .create_scan_embed ("Nuclei" , domain , "running" )
653665 await interaction .response .send_message (embed = embed )
654666 asyncio .create_task (self ._run_scan_background (scan_id , command ))
655667
656668 @app_commands .command (name = "tech" , description = "Detect technologies on live hosts" )
657- @app_commands .describe (domain = "The domain" )
658- async def tech_cmd (self , interaction : discord .Interaction , domain : str ):
669+ @app_commands .describe (
670+ domain = "The domain" ,
671+ threads = "Number of threads for httpx (default: 100)"
672+ )
673+ async def tech_cmd (self , interaction : discord .Interaction , domain : str , threads : int = 100 ):
659674 scan_id = f"tech_{ int (time .time ())} "
660- command = [AUTOAR_SCRIPT_PATH , "tech" , "detect" , "-d" , domain ]
675+ command = [AUTOAR_SCRIPT_PATH , "tech" , "detect" , "-d" , domain , "-t" , str ( threads ) ]
661676 active_scans [scan_id ] = { 'type' : 'tech' , 'target' : domain , 'status' : 'running' , 'start_time' : datetime .now (), 'interaction' : interaction }
662677 embed = self .create_scan_embed ("Tech Detect" , domain , "running" )
663678 await interaction .response .send_message (embed = embed )
664679 asyncio .create_task (self ._run_scan_background (scan_id , command ))
665680
666681 @app_commands .command (name = "ports" , description = "Run port scan (naabu) on live hosts" )
667- @app_commands .describe (domain = "The domain" )
668- async def ports_cmd (self , interaction : discord .Interaction , domain : str ):
682+ @app_commands .describe (
683+ domain = "The domain" ,
684+ threads = "Number of threads for naabu (default: 100)"
685+ )
686+ async def ports_cmd (self , interaction : discord .Interaction , domain : str , threads : int = 100 ):
669687 scan_id = f"ports_{ int (time .time ())} "
670- command = [AUTOAR_SCRIPT_PATH , "ports" , "scan" , "-d" , domain ]
688+ command = [AUTOAR_SCRIPT_PATH , "ports" , "scan" , "-d" , domain , "-t" , str ( threads ) ]
671689 active_scans [scan_id ] = { 'type' : 'ports' , 'target' : domain , 'status' : 'running' , 'start_time' : datetime .now (), 'interaction' : interaction }
672690 embed = self .create_scan_embed ("Ports" , domain , "running" )
673691 await interaction .response .send_message (embed = embed )
@@ -684,20 +702,26 @@ async def gf_cmd(self, interaction: discord.Interaction, domain: str):
684702 asyncio .create_task (self ._run_scan_background (scan_id , command ))
685703
686704 @app_commands .command (name = "sqlmap" , description = "Run SQLMap on GF SQLi results" )
687- @app_commands .describe (domain = "The domain" )
688- async def sqlmap_cmd (self , interaction : discord .Interaction , domain : str ):
705+ @app_commands .describe (
706+ domain = "The domain" ,
707+ threads = "Number of threads for sqlmap (default: 100)"
708+ )
709+ async def sqlmap_cmd (self , interaction : discord .Interaction , domain : str , threads : int = 100 ):
689710 scan_id = f"sqlmap_{ int (time .time ())} "
690- command = [AUTOAR_SCRIPT_PATH , "sqlmap" , "run" , "-d" , domain ]
711+ command = [AUTOAR_SCRIPT_PATH , "sqlmap" , "run" , "-d" , domain , "-t" , str ( threads ) ]
691712 active_scans [scan_id ] = { 'type' : 'sqlmap' , 'target' : domain , 'status' : 'running' , 'start_time' : datetime .now (), 'interaction' : interaction }
692713 embed = self .create_scan_embed ("SQLMap" , domain , "running" )
693714 await interaction .response .send_message (embed = embed )
694715 asyncio .create_task (self ._run_scan_background (scan_id , command ))
695716
696717 @app_commands .command (name = "dalfox" , description = "Run Dalfox XSS scan" )
697- @app_commands .describe (domain = "The domain" )
698- async def dalfox_cmd (self , interaction : discord .Interaction , domain : str ):
718+ @app_commands .describe (
719+ domain = "The domain" ,
720+ threads = "Number of threads for dalfox (default: 100)"
721+ )
722+ async def dalfox_cmd (self , interaction : discord .Interaction , domain : str , threads : int = 100 ):
699723 scan_id = f"dalfox_{ int (time .time ())} "
700- command = [AUTOAR_SCRIPT_PATH , "dalfox" , "run" , "-d" , domain ]
724+ command = [AUTOAR_SCRIPT_PATH , "dalfox" , "run" , "-d" , domain , "-t" , str ( threads ) ]
701725 active_scans [scan_id ] = { 'type' : 'dalfox' , 'target' : domain , 'status' : 'running' , 'start_time' : datetime .now (), 'interaction' : interaction }
702726 embed = self .create_scan_embed ("Dalfox" , domain , "running" )
703727 await interaction .response .send_message (embed = embed )
0 commit comments