Skip to content

Commit 5bac4ad

Browse files
committed
apply suggested Legba module changes
1 parent bff1822 commit 5bac4ad

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

bbot/modules/deadly/legba.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ class legba(BaseModule):
4141
}
4242

4343
options_desc = {
44-
"ssh_wordlist": "Wordlist URL for SSH combined username:password wordlist, newline separated (default https://raw.githubusercontent.com/danielmiessler/SecLists/refs/heads/master/Passwords/Default-Credentials/ssh-betterdefaultpasslist.txt)",
45-
"ftp_wordlist": "Wordlist URL for FTP combined username:password wordlist, newline separated (default https://raw.githubusercontent.com/danielmiessler/SecLists/refs/heads/master/Passwords/Default-Credentials/ftp-betterdefaultpasslist.txt)",
46-
"telnet_wordlist": "Wordlist URL for TELNET combined username:password wordlist, newline separated (default https://raw.githubusercontent.com/danielmiessler/SecLists/refs/heads/master/Passwords/Default-Credentials/telnet-betterdefaultpasslist.txt)",
47-
"vnc_wordlist": "Wordlist URL for VNC password wordlist, newline separated (default https://raw.githubusercontent.com/danielmiessler/SecLists/refs/heads/master/Passwords/Default-Credentials/vnc-betterdefaultpasslist.txt)",
48-
"mssql_wordlist": "Wordlist URL for MSSQL combined username:password wordlist, newline separated (default https://raw.githubusercontent.com/danielmiessler/SecLists/refs/heads/master/Passwords/Default-Credentials/mssql-betterdefaultpasslist.txt)",
49-
"mysql_wordlist": "Wordlist URL for MySQL combined username:password wordlist, newline separated (default https://raw.githubusercontent.com/danielmiessler/SecLists/refs/heads/master/Passwords/Default-Credentials/mysql-betterdefaultpasslist.txt)",
50-
"postgresql_wordlist": "Wordlist URL for PostgreSQL combined username:password wordlist, newline separated (default https://raw.githubusercontent.com/danielmiessler/SecLists/refs/heads/master/Passwords/Default-Credentials/postgres-betterdefaultpasslist.txt)",
51-
"concurrency": "Number of concurrent workers, gets overridden for SSH (default 3)",
52-
"rate_limit": "Limit the number of requests per second, gets overridden for SSH (default 3)",
44+
"ssh_wordlist": "Wordlist URL for SSH combined username:password wordlist, newline separated",
45+
"ftp_wordlist": "Wordlist URL for FTP combined username:password wordlist, newline separated",
46+
"telnet_wordlist": "Wordlist URL for TELNET combined username:password wordlist, newline separated",
47+
"vnc_wordlist": "Wordlist URL for VNC password wordlist, newline separated",
48+
"mssql_wordlist": "Wordlist URL for MSSQL combined username:password wordlist, newline separated",
49+
"mysql_wordlist": "Wordlist URL for MySQL combined username:password wordlist, newline separated",
50+
"postgresql_wordlist": "Wordlist URL for PostgreSQL combined username:password wordlist, newline separated",
51+
"concurrency": "Number of concurrent workers, gets overridden for SSH",
52+
"rate_limit": "Limit the number of requests per second, gets overridden for SSH",
5353
}
5454

5555
deps_common = ["rust"]
@@ -120,8 +120,7 @@ class legba(BaseModule):
120120
]
121121

122122
async def setup(self):
123-
self.output_dir = "/tmp/legba-output"
124-
self.helpers.mkdir(self.output_dir)
123+
self.output_dir = Path(self.scan.temp_dir / "legba-output")
125124

126125
return True
127126

0 commit comments

Comments
 (0)