fix for black formating

This commit is contained in:
mpgn
2023-05-04 07:16:13 -04:00
parent 19536a40f5
commit f52c347c66
2 changed files with 26 additions and 72 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
name: black-action
name: Black-action
on: [push, pull_request]
jobs:
linter_name:
+25 -71
View File
@@ -167,9 +167,7 @@ class smb(connection):
@staticmethod
def proto_args(parser, std_parser, module_parser):
smb_parser = parser.add_parser(
"smb",
help="own stuff using SMB",
parents=[std_parser, module_parser]
"smb", help="own stuff using SMB", parents=[std_parser, module_parser]
)
smb_parser.add_argument(
"-H",
@@ -244,19 +242,14 @@ class smb(connection):
)
cgroup = smb_parser.add_argument_group(
"Credential Gathering",
"Options for gathering credentials"
"Credential Gathering", "Options for gathering credentials"
)
cegroup = cgroup.add_mutually_exclusive_group()
cegroup.add_argument(
"--sam",
action="store_true",
help="dump SAM hashes from target systems"
"--sam", action="store_true", help="dump SAM hashes from target systems"
)
cegroup.add_argument(
"--lsa",
action="store_true",
help="dump LSA secrets from target systems"
"--lsa", action="store_true", help="dump LSA secrets from target systems"
)
cegroup.add_argument(
"--ntds",
@@ -270,14 +263,13 @@ class smb(connection):
choices={"password", "cookies"},
nargs="?",
const="password",
help="dump DPAPI secrets from target systems, can dump cookies if you add \"cookies\"\n(default: password)",
help='dump DPAPI secrets from target systems, can dump cookies if you add "cookies"\n(default: password)',
)
# cgroup.add_argument("--ntds-history", action='store_true', help='Dump NTDS.dit password history')
# cgroup.add_argument("--ntds-pwdLastSet", action='store_true', help='Shows the pwdLastSet attribute for each NTDS.dit account')
ngroup = smb_parser.add_argument_group(
"Credential Gathering",
"Options for gathering credentials"
"Credential Gathering", "Options for gathering credentials"
)
ngroup.add_argument(
"--mkfile",
@@ -285,30 +277,20 @@ class smb(connection):
help="DPAPI option. File with masterkeys in form of {GUID}:SHA1",
)
ngroup.add_argument(
"--pvk",
action="store",
help="DPAPI option. File with domain backupkey"
"--pvk", action="store", help="DPAPI option. File with domain backupkey"
)
ngroup.add_argument(
"--enabled",
action="store_true",
help="Only dump enabled targets from DC"
"--enabled", action="store_true", help="Only dump enabled targets from DC"
)
ngroup.add_argument(
"--user",
dest="userntds",
type=str,
help="Dump selected user from DC"
"--user", dest="userntds", type=str, help="Dump selected user from DC"
)
egroup = smb_parser.add_argument_group(
"Mapping/Enumeration",
"Options for Mapping/Enumerating"
"Mapping/Enumeration", "Options for Mapping/Enumerating"
)
egroup.add_argument(
"--shares",
action="store_true",
help="enumerate shares and access"
"--shares", action="store_true", help="enumerate shares and access"
)
egroup.add_argument(
"--filter-shares",
@@ -316,24 +298,16 @@ class smb(connection):
help="Filter share by access, option 'read' 'write' or 'read,write'",
)
egroup.add_argument(
"--sessions",
action="store_true",
help="enumerate active sessions"
)
egroup.add_argument(
"--disks",
action="store_true",
help="enumerate disks"
"--sessions", action="store_true", help="enumerate active sessions"
)
egroup.add_argument("--disks", action="store_true", help="enumerate disks")
egroup.add_argument(
"--loggedon-users-filter",
action="store",
help="only search for specific user, works with regex",
)
egroup.add_argument(
"--loggedon-users",
action="store_true",
help="enumerate logged on users"
"--loggedon-users", action="store_true", help="enumerate logged on users"
)
egroup.add_argument(
"--users",
@@ -364,9 +338,7 @@ class smb(connection):
help="enumerate local groups, if a group is specified then its members are enumerated",
)
egroup.add_argument(
"--pass-pol",
action="store_true",
help="dump password policy"
"--pass-pol", action="store_true", help="dump password policy"
)
egroup.add_argument(
"--rid-brute",
@@ -377,10 +349,7 @@ class smb(connection):
help="enumerate users by bruteforcing RID's (default: 4000)",
)
egroup.add_argument(
"--wmi",
metavar="QUERY",
type=str,
help="issues the specified WMI query"
"--wmi", metavar="QUERY", type=str, help="issues the specified WMI query"
)
egroup.add_argument(
"--wmi-namespace",
@@ -390,14 +359,10 @@ class smb(connection):
)
sgroup = smb_parser.add_argument_group(
"Spidering",
"Options for spidering shares"
"Spidering", "Options for spidering shares"
)
sgroup.add_argument(
"--spider",
metavar="SHARE",
type=str,
help="share to spider"
"--spider", metavar="SHARE", type=str, help="share to spider"
)
sgroup.add_argument(
"--spider-folder",
@@ -407,9 +372,7 @@ class smb(connection):
help="folder to spider (default: root share directory)",
)
sgroup.add_argument(
"--content",
action="store_true",
help="enable file content searching"
"--content", action="store_true", help="enable file content searching"
)
sgroup.add_argument(
"--exclude-dirs",
@@ -436,14 +399,11 @@ class smb(connection):
help="max spider recursion depth (default: infinity & beyond)",
)
sgroup.add_argument(
"--only-files",
action="store_true",
help="only spider files"
"--only-files", action="store_true", help="only spider files"
)
tgroup = smb_parser.add_argument_group(
"Files",
"Options for put and get remote files"
"Files", "Options for put and get remote files"
)
tgroup.add_argument(
"--put-file",
@@ -464,8 +424,7 @@ class smb(connection):
)
cgroup = smb_parser.add_argument_group(
"Command Execution",
"Options for executing commands"
"Command Execution", "Options for executing commands"
)
cgroup.add_argument(
"--exec-method",
@@ -488,9 +447,7 @@ class smb(connection):
help="force the PowerShell command to run in a 32-bit process",
)
cgroup.add_argument(
"--no-output",
action="store_true",
help="do not retrieve command output"
"--no-output", action="store_true", help="do not retrieve command output"
)
cegroup = cgroup.add_mutually_exclusive_group()
cegroup.add_argument(
@@ -506,13 +463,10 @@ class smb(connection):
help="execute the specified PowerShell command",
)
psgroup = smb_parser.add_argument_group(
"Powershell Obfuscation",
"Options for PowerShell script obfuscation"
"Powershell Obfuscation", "Options for PowerShell script obfuscation"
)
psgroup.add_argument(
"--obfs",
action="store_true",
help="Obfuscate PowerShell scripts"
"--obfs", action="store_true", help="Obfuscate PowerShell scripts"
)
psgroup.add_argument(
"--amsi-bypass",