Skip to content

Instantly share code, notes, and snippets.

View hermesthecat's full-sized avatar
💭
I may be slow to respond.

Kerem hermesthecat

💭
I may be slow to respond.
View GitHub Profile
@hermesthecat
hermesthecat / local.cf
Created January 10, 2022 12:06 — forked from maestropanel2/local.cf
MaestroPanel SpamAssassin Configuration File
#
# MaestroPanel SpamAssassin Configuration File
#
###########################################################################
version_tag maestropanel
rewrite_header Subject *****SPAM*****
report_safe 0
required_score 5.0
use_bayes 1
@hermesthecat
hermesthecat / ResoteRecoveryDB.ps1
Created January 10, 2022 12:06 — forked from maestropanel2/ResoteRecoveryDB.ps1
Exchange Server 2013 Restore Recovery Mailbox Database Script
<#
.SYNOPSIS
Bu script Recovery Mailbox Database'indeki mailbox'lara göre yeni kullanıcı oluşturur ve Restore isteği gönderir.
.DESCRIPTION
Başka bir sunucu üzerinden kurtarılmış ve yeni bir sunucuya Mount edilmiş Mailbox Database içindeki kullanıcı tipindeki Mailbox'ları listeler ve bunlara göre aktif Veritabanı üzerinde kullanıcılar oluşturur. Oluşturulan kullanıcılar için eski veritabanından Restore isteği gönderir.
.NOTES
File Name : ResoteRecoveryDB.ps1
Author : Oğuzhan YILMAZ ([email protected])
Prerequisite : Exchange Server 2013
.LINK
@hermesthecat
hermesthecat / import.ps1
Created January 10, 2022 12:06 — forked from maestropanel2/import.ps1
Optimal New-MailboxImportRequest for MaestroPanel Exchange
#Exchange Server 2013/2016 Import Script
#Desc: This script importes all mailbox backup files in directory to Exchange Server
#Url: https://wiki.maestropanel.com/exchange-servera-toplu-sekilde-pst-dosyasi-import-etmek/
#Author: MaestroPanel Support
#Email: [email protected]
. 'C:\Program Files\Microsoft\Exchange Server\V15\bin\RemoteExchange.ps1'
Connect-ExchangeServer -Auto
#Change this line for your directory path
@hermesthecat
hermesthecat / Exchange-SetConfigURL.ps1
Created January 10, 2022 12:04 — forked from maestropanel2/Exchange-SetConfigURL.ps1
Powershell scripti ile Exchange Server 2013/2016, CAS URL kayıtlarını basitçe yapılandırılabilir.
<#
.ÖZET
SetExchangeURLs.ps1
.AÇIKLAMA
Powershell scripti ile Exchange Server 2013/2016, CAS URL kayıtlarını basitçe yapılandırılabilir.
Servisler için farklı alan adları/uzantısı kullanıyorsanız uygulamaz ve hata verir.
.PARAMETRE Server
@hermesthecat
hermesthecat / haproxy.cfg
Created January 10, 2022 12:04 — forked from knopki/haproxy.cfg
How to do L7 load balancing and SSL-offloading of shitty Exchange 2016
global
crt-base /etc/letsencrypt/live
lua-load /usr/local/etc/haproxy/acme-http01-webroot.lua
# https://mozilla.github.io/server-side-tls/ssl-config-generator/
# set default parameters to the intermediate configuration
tune.ssl.default-dh-param 2048
ssl-default-bind-ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS
ssl-default-bind-options no-sslv3 no-tls-tickets
ssl-default-se
@hermesthecat
hermesthecat / disable_OWA-iframe.ps1
Created January 10, 2022 12:04 — forked from jhochwald/disable_OWA-iframe.ps1
Disable iFrames on Outlook Web Access to enhance the security a bit
<#
.SYNOPSIS
Disable iFrames on Outlook Web Access
.DESCRIPTION
Disable iFrames on Outlook Web Access to enhance the security a bit.
#>
Get-OwaMailboxPolicy | Set-OwaMailboxPolicy -WebPartsFrameOptionsType None
@hermesthecat
hermesthecat / exchange.conf
Created January 10, 2022 12:03 — forked from crypt0rr/exchange.conf
Configuration for Microsoft Exchange Server (2010 / 2013 / 2016) behind a (free) nginx reverse proxy. This config allows things like Microsoft ActiveSync.
server {
listen 80;
server_name mail.example.com;
return 301 https://mail.example.com;
}
server {
listen 443 ssl http2;
server_name mail.example.com autodiscover.example.com;
@hermesthecat
hermesthecat / Customize-OWA-Interface.md
Created January 10, 2022 12:02 — forked from KingKami/Customize-OWA-Interface.md
Modifier l'interface de connexion OWA d'Echange On Premise

Changer l'interface OWA d'Exchange

Retirer la sidebar

Ouvrir le fichier C:\Program Files\Microsoft\Exchange Server\V15\FrontEnd\HttpProxy\owa\auth\logon.aspx

commenter les lignes suivante:

Exchange sunucularınızın güvenliği için “Captcha Doğrulama” ile bruteforce ataklara karşı güvenliğinizi daha da sıkılaştırabilirsiniz.
İlk olarak google hizmeti olan captcha sayfasına giderek site (site) ve secret (gizli) keylerimizi alıyoruz.
https://www.google.com/recaptcha/about/
Captcha keylerimizi aldıktan sonra Exchange sunucusuna bağlanıyoruz ve aşağıdaki path’e gidiyoruz.
<VirtualHost *:80>
ServerName exchange.comprofix.com
ServerAlias autodiscover.comprofix.com
ServerAdmin support.comprofix.com
ErrorLog ${APACHE_LOG_DIR}/exchange.comprofix.com_error.log
CustomLog ${APACHE_LOG_DIR}/exchange.comprofix.com_access.log combined
Header set X-Frame-Options: "SAMEORIGIN"
Header set Server Apache