mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-10-08 08:21:12 +02:00
Merge branch 'feat-set-helo-ehlo' into develop
This commit is contained in:
8 files changed
+68
-2
No files matched your search
@@ -2016,6 +2016,7 @@ export class API {
|
||||
* @param {string} configuration.username
|
||||
* @param {string} configuration.password
|
||||
* @param {boolean} configuration.ignoreCertErrors
|
||||
* @param {string} configuration.helo
|
||||
* @param {string} configuration.companyID
|
||||
* @returns
|
||||
*/
|
||||
@@ -2034,6 +2035,7 @@ export class API {
|
||||
* @param {string} configuration.username
|
||||
* @param {string} configuration.password
|
||||
* @param {boolean} configuration.ignoreCertErrors
|
||||
* @param {string} configuration.helo
|
||||
* @param {string} configuration.companyID
|
||||
* @returns {Promise<ApiResponse>}
|
||||
*/
|
||||
|
||||
@@ -54,7 +54,8 @@
|
||||
port: null,
|
||||
username: null,
|
||||
password: null,
|
||||
ignoreCertErrors: null
|
||||
ignoreCertErrors: null,
|
||||
helo: null
|
||||
};
|
||||
let headerFormValues = {
|
||||
id: null,
|
||||
@@ -206,6 +207,7 @@
|
||||
username: formValues.username,
|
||||
password: formValues.password,
|
||||
ignoreCertErrors: formValues.ignoreCertErrors,
|
||||
helo: formValues.helo,
|
||||
companyID: contextCompanyID
|
||||
});
|
||||
if (!res.success) {
|
||||
@@ -233,6 +235,7 @@
|
||||
username: formValues.username,
|
||||
password: formValues.password,
|
||||
ignoreCertErrors: formValues.ignoreCertErrors,
|
||||
helo: formValues.helo,
|
||||
companyID: formValues.companyID
|
||||
});
|
||||
if (res.success) {
|
||||
@@ -381,7 +384,8 @@
|
||||
port: configuration.port,
|
||||
username: configuration.username,
|
||||
password: configuration.password,
|
||||
ignoreCertErrors: configuration.ignoreCertErrors
|
||||
ignoreCertErrors: configuration.ignoreCertErrors,
|
||||
helo: configuration.helo
|
||||
};
|
||||
};
|
||||
|
||||
@@ -560,6 +564,15 @@
|
||||
bind:value={formValues.port}
|
||||
placeholder="587">Port</TextField
|
||||
>
|
||||
<TextField
|
||||
minLength={0}
|
||||
maxLength={255}
|
||||
bind:value={formValues.helo}
|
||||
placeholder="mail.example.test"
|
||||
optional={true}
|
||||
toolTipText="Hostname sent in the SMTP HELO/EHLO greeting. Leave empty to use the server's own hostname."
|
||||
>HELO/EHLO Hostname</TextField
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in new issue
Block a user