Skip to content

Instantly share code, notes, and snippets.

@dmi3mis
dmi3mis / 16299.15.170928-1534.rs3_release_vl
Created December 4, 2017 02:26 — forked from CHEF-KOCH/16299.15.170928-1534.rs3_release_vl
SHA-1 hashes for Windows 10 1709 september 2017
x64 (requires decrypter v31+)
http://wsus.ds.b1.download.windowsupdate.com/c/upgr/2017/10/16299.15.170928-1534.rs3_release_clientbusiness_vol_x64fre_ar-sa_18a1d49b0742e23959ace743b2bbb80422fa19b4.esd
http://wsus.ds.b1.download.windowsupdate.com/c/upgr/2017/10/16299.15.170928-1534.rs3_release_clientbusiness_vol_x64fre_bg-bg_7087fb83ebb612c10b4742a15739a86b67a0faba.esd
http://wsus.ds.b1.download.windowsupdate.com/c/upgr/2017/10/16299.15.170928-1534.rs3_release_clientbusiness_vol_x64fre_cs-cz_d3ff7fc7da3c2fa24eb82440eedec39dcf1fe1e5.esd
http://wsus.ds.b1.download.windowsupdate.com/d/upgr/2017/10/16299.15.170928-1534.rs3_release_clientbusiness_vol_x64fre_da-dk_ce4eb04764350cda70e3c11bcd92c82dc549af81.esd
http://wsus.ds.b1.download.windowsupdate.com/c/upgr/2017/10/16299.15.170928-1534.rs3_release_clientbusiness_vol_x64fre_de-de_5acd02fd7609eb464bd68936bfd770fa3691bcd9.esd
http://wsus.ds.b1.download.windowsupdate.com/d/upgr/2017/10/16299.15.170928-1534.rs3_release_clientbusiness_vol_x64fre_el-gr_29a939a1446738c13a
#The is almost the same like '05 SQL Server and client, domain joined.ps1' but installs an Exchange 2013 server instead
#of a SQL Server.
#
# IMPORTANT NOTE: Make sure you have installed at least the CU KB3206632 before installing Exchange 2016, this is a requirement.
# Refer to the introduction script '11 ISO Offline Patching.ps1' for creating a new ISO that contains patches.
#
# You will need 5 files to download before start this script
# 1. AutomatedLab latest https://github.com/AutomatedLab/AutomatedLab/releases
# Download msi and just install wherever folder you like. ( C:\LabSources for example )
@dmi3mis
dmi3mis / Emulator Guide.md
Created March 2, 2018 00:54 — forked from patrickkettner/Emulator Guide.md
Quick guide on settings up emulators for various mobile platforms.
@dmi3mis
dmi3mis / bind_and_others.txt
Last active June 13, 2020 10:52
Some files to work with on LL-103
[root@server0 ~]# yum install bind bind-utils -y
[root@server0 ~]# vim /etc/named.conf
:set number
11 #listen-on port 53 { ; };
12 #listen-on-v6 port 53 { ::1; };
17 #allow-query { localhost; };
@dmi3mis
dmi3mis / CentOS 7 AD Login.md
Created April 22, 2018 17:16 — forked from ceagan/CentOS 7 AD Login.md
Setup CentOS 7 for Password/Kerberos-based SSH Logins with Active Directory

Introduction

The intent of this document to is record one method of enabling Kerberos logins on a CentOS 7 system using Windows Active Directory. There are many way to do this. For a very detailed document on all of these options, check out the Red Hat Enterprise Linux 7 Windows Integration Guide.

Note: At the time of this writing, a kickstart installation does not work correctly, possibly due to using an older version of adcli. The /etc/krb5.keytab file ends up containing entries that look like HOST/hostname.domain.com@DOMAIN.COM which is not what sshd is expecting. The sshd service is expecting entrieds that look like host/hostname.domain.com@DOMAIN.COM. This causes ssh Kerberos logins to fail, printing No key table entry found matching host/hostname.domain.com@ in the error log.

Setting up CentOS 7 for Active Directory Logi

@dmi3mis
dmi3mis / Exch2013Lab-HyperV.ps1
Last active July 12, 2023 19:14
Powershell script to automaticaly deploy lab with dc, exchange 2016 servers, and windows 10. Connected to internet.
#create an empty lab template and define path to files where VMs will be stored
New-LabDefinition -Name 'Ex2013lab' -DefaultVirtualizationEngine HyperV -VmPath "C:\Program Files\Microsoft Learning\Ex2013Lab\" # If you want to place vm files in custom dir add -VmPath "drive:\path\to\directory"
#defining default parameter values, as these ones are the same for all the machines
$PSDefaultParameterValues = @{
'Add-LabMachineDefinition:DomainName' = 'adatum4.ml'
'Add-LabMachineDefinition:OperatingSystem' = 'Windows Server 2012 R2 Datacenter (Server with a GUI)'
'Add-LabMachineDefinition:UserLocale' = 'en-US'
}
#Network Definition
@dmi3mis
dmi3mis / tunnel.sh
Last active October 18, 2018 13:03
How to create reverse tunnel on centos 7
#/bin/sh
# Before all you need to generate keys for ssh login
# ssh-keygen
# copy keys to remote host.tld
# ssh-copyid -i ~/.ssh/id_rsa
yum install epel-release -y
yum install autossh -y
cat <<EOF >/etc/systemd/system/tunnel.service
[Unit]
Description=Creates a public reverse tunnel from a server to a port of this computer.
@dmi3mis
dmi3mis / elk-centos-7.sh
Created August 30, 2018 02:56 — forked from gloria-sentinella/elk-centos-7.sh
elk-centos-7.sh
vi /etc/ssh/sshd_config #Permitrootlogin -> permitir acceso por ssh
su -
yum clean all && yum update -y && yum upgrade -y
sudo sed -i --follow-symlinks 's/^SELINUX=.*/SELINUX=disabled/g' /etc/sysconfig/selinux
sudo yum install epel-release -y
sudo yum install wget curl net-tools lsof zip unzip iperf cabextract -y
sudo yum install mlocate xorg-x11-font-utils fontconfig libSM libICE libXrender libXext xorg-x11-fonts-Type1 xorg-x11-fonts-75dpi freetype libpng zlib libjpeg-turbo gcc ImageMagick ImageMagick-devel ImageMagick-perl samba-client lua lua-devel pkgconfig asciidoc -y
sudo yum remove mysql-server mysql-libs mysql-devel mysql* mariadb-libs mariadb* percona percona-* mysql mysql-* mariadb mariadb-* -y
sudo rm -rf /var/lib/mysql & rm -rf /etc/my.cnf
@dmi3mis
dmi3mis / Import-2008R2-to-2012R2.ps1
Created September 15, 2018 10:41
2008R2 to 2012R2 Hyper-V VM convert and import
cls
$tmp = dir "Letter:\Path\to\all\vms\*\*.exp" -Recurse
$tmp | % {
# read file
[xml]$vm = gc $_.fullname
# parsing of the various of different internal XML structures using "properties" notation
# CLASSNAME Msvm_VirtualSystemGlobalSettingData
$disks = ($vm.DECLARATIONS.DECLGROUP.'VALUE.OBJECT'.instance | where classname -like "*resource*") |
@dmi3mis
dmi3mis / silent_install.bat
Created September 24, 2018 08:17
Vagrant Virtualbox vbox extpack silent install
VirtualBox-5.2.18-124319-Win.exe --silent
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" extpack install --replace Oracle_VM_VirtualBox_Extension_Pack-5.2.18.vbox-extpack --accept-license=56be48f923303c8cababb0bb4c478284b688ed23f16d775d729b89a2e8e5f9eb
msiexec /qb /i vagrant_2.1.5_x86_64.msi