Windows Answer File Generator
https://www.windowsafg.com/index.html
26. juni 2020
24. juni 2020
Hack ESXi root password
https://www.altaro.com/vmware/reset-esxi-root-password/
Boot på GParted Live, start terminal session
https://gparted.org/download.php
Normalt sda5 med mindre at der er installeret på f.eks. USB
sudo su
mkdir /boot /temp
mount /dev/sda5 /boot
cd /boot
cp state.tgz /temp
cd /temp
tar -xf state.tgz
tar -xf local.tgz
rm *.tgz
cd etc
Brug Nano til at editere shadow
gå til root og slet alt mellem de to første colon så det ser sådan ud [root::12345:0:12345:7:::]
cd ..
tar -cf local.tgz etc/
tar -cf state.tgz local.tgz
mv state.tgz /boot
umount /boot
reboot
Boot på GParted Live, start terminal session
https://gparted.org/download.php
Normalt sda5 med mindre at der er installeret på f.eks. USB
sudo su
mkdir /boot /temp
mount /dev/sda5 /boot
cd /boot
cp state.tgz /temp
cd /temp
tar -xf state.tgz
tar -xf local.tgz
rm *.tgz
cd etc
Brug Nano til at editere shadow
gå til root og slet alt mellem de to første colon så det ser sådan ud [root::12345:0:12345:7:::]
cd ..
tar -cf local.tgz etc/
tar -cf state.tgz local.tgz
mv state.tgz /boot
umount /boot
reboot
12. juni 2020
Kan ikke validere begge selectors på O365 DKIM
Selector der ikke valideres bliver først aktiv efter en "rotate" i Exchange Admin /DKIM
11. juni 2020
10. juni 2020
Skift password i AD fra webside
Kræver at der er en RDWeb server min. 2012 men ingen licens server eller RDS server
Skulle også løse problem med at NLA forhindrer skift af password i RDP session, når password er udløbet
C:\Windows\Web\RDWeb\Pages\en-US\Password.aspx
https://YourServerName/RDWeb/Pages/en-US/Password.aspx
Dansk oversættelse af Password.aspx uden redirect efter logon :
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../Site.xsl"?>
<?xml-stylesheet type="text/css" href="../RenderFail.css"?>
<% @Page Language="C#" Debug="false" ResponseEncoding="utf-8" ContentType="text/xml" %>
<% @Import Namespace="System " %>
<% @Import Namespace="System.Security" %>
<% @Import Namespace="Microsoft.TerminalServices.Publishing.Portal.FormAuthentication" %>
<% @Import Namespace="Microsoft.TerminalServices.Publishing.Portal" %>
<script language="C#" runat=server>
//
// Customizable Text
//
string L_CompanyName_Text = "Skift Kodeord";
//
// Localizable Text
//
const string L_DomainUserNameLabel_Text = "CONTOSO\\Brugernavn:";
const string L_OldPasswordLabel_Text = "Nuværende kodeord:";
const string L_NewPasswordLabel_Text = "Nyt kodeord:";
const string L_ConfirmNewPasswordLabel_Text = "Gentag nyt kodeord:";
const string L_PasswordChangedLabel_Text = "Dit kodeord er successfuldt skiftet.";
const string L_ComplexityFailureLabel_Text = "Din nye adgangskode opfylder ikke dit domænes længde, kompleksitet eller historikkrav. Prøv at vælge en anden ny adgangskode.";
const string L_NewPasswordsDontMatchLabel_Text = "De indtastede kodeord er ikke ens.";
const string L_BlankPasswordFailureLabel_Text = "Indtast et nyt kodeord.";
const string L_PasswordChangeGenericFailure_Text = "Din adgangskode kan ikke ændres. Kontakt din administrator for at få hjælp.";
const string L_LogonFailureLabel_Text = "Det angivne brugernavn eller adgangskode er ikke gyldigt. Prøv at skrive det igen.";
const string L_SubmitLabel_Text = "Indsend";
const string L_CancelLabel_Text = "Annuller";
const string L_RenderFailTitle_Text = "Fejl: Kan ikke vise RD Web Access";
const string L_RenderFailP1_Text = "Der opstod en uventet fejl, der forhindrer, at denne side vises korrekt.";
const string L_RenderFailP2_Text = "Visning af denne side i Internet Explorer med den udvidede sikkerhedskonfiguration aktiveret kan forårsage en sådan fejl.";
const string L_RenderFailP3_Text = "Prøv at indlæse denne side uden den udvidede sikkerhedskonfiguration aktiveret. Hvis denne fejl fortsat vises, skal du kontakte din administrator.";
//
// Page Variables
//
public string strErrorMessageRowStyle;
public string strButtonsRowStyle;
public bool bFailedLogon = false, bPasswordMismatchFailure = false, bPasswordBlankFailure = false, bComplexityFailure = false, bGenericFailure = false, bSuccess = false;
public string sHelpSourceServer, sLocalHelp;
public Uri baseUrl;
void Page_PreInit(object sender, EventArgs e)
{
// Deny requests with "additional path information"
if (Request.PathInfo.Length != 0)
{
Response.StatusCode = 404;
Response.End();
}
// gives us https://<hostname>[:port]/rdweb/pages/<lang>/
baseUrl = new Uri(new Uri(PageContentsHelper.GetBaseUri(Context), Request.FilePath), ".");
sLocalHelp = ConfigurationManager.AppSettings["LocalHelp"];
if ((sLocalHelp != null) && (sLocalHelp == "true"))
{
sHelpSourceServer = "./rap-help.htm";
}
else
{
sHelpSourceServer = "http://go.microsoft.com/fwlink/?LinkId=141038";
}
}
void Page_Load(object sender, EventArgs e)
{
string strPasswordChangeEnabled = ConfigurationManager.AppSettings["PasswordChangeEnabled"];
if (strPasswordChangeEnabled == null || !(strPasswordChangeEnabled.Equals("true", StringComparison.CurrentCultureIgnoreCase)))
{
SafeRedirect(null);
}
if ( Request.QueryString != null )
{
NameValueCollection objQueryString = Request.QueryString;
if ( objQueryString["Error"] != null )
{
if ( objQueryString["Error"].Equals("FailedLogon", StringComparison.CurrentCultureIgnoreCase) )
{
bFailedLogon = true;
}
else if ( objQueryString["Error"].Equals("ComplexityFailed", StringComparison.CurrentCultureIgnoreCase) )
{
bComplexityFailure = true;
}
else if (objQueryString["Error"].Equals("FailedBlankPassword", StringComparison.CurrentCultureIgnoreCase))
{
bPasswordBlankFailure = true;
}
else if (objQueryString["Error"].Equals("FailedPasswordMatch", StringComparison.CurrentCultureIgnoreCase))
{
bPasswordMismatchFailure = true;
}
else if (objQueryString["Error"].Equals("FailedGeneric", StringComparison.CurrentCultureIgnoreCase))
{
bGenericFailure = true;
}
else if (objQueryString["Error"].Equals("PasswordSuccess", StringComparison.CurrentCultureIgnoreCase))
{
bSuccess = true;
}
}
if ( objQueryString["UserName"] != null )
{
DomainUserName.Value = SecurityElement.Escape(objQueryString["UserName"]);
}
}
}
private void SafeRedirect(string strRedirectUrl)
{
string strRedirectSafeUrl = null;
if (!String.IsNullOrEmpty(strRedirectUrl))
{
Uri baseUrl = PageContentsHelper.GetBaseUri(Context);
Uri redirectUri = new Uri(new Uri(baseUrl, Request.FilePath), strRedirectUrl);
if (
redirectUri.Authority.Equals(baseUrl.Authority) &&
redirectUri.Scheme.Equals(baseUrl.Scheme)
)
{
strRedirectSafeUrl = redirectUri.AbsoluteUri;
}
}
if (strRedirectSafeUrl == null)
{
strRedirectSafeUrl = "default.aspx";
}
Response.Redirect(strRedirectSafeUrl);
}
</script>
<RDWAPage
helpurl="<%=sHelpSourceServer%>"
workspacename="<%=SecurityElement.Escape(L_CompanyName_Text)%>"
baseurl="<%=SecurityElement.Escape(baseUrl.AbsoluteUri)%>"
>
<RenderFailureMessage>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=unicode"/>
<title><%=L_RenderFailTitle_Text%></title>
</head>
<body>
<h1><%=L_RenderFailTitle_Text%></h1>
<p><%=L_RenderFailP1_Text%></p>
<p><%=L_RenderFailP2_Text%></p>
<p><%=L_RenderFailP3_Text%></p>
</body>
</html>
</RenderFailureMessage>
<HTMLMainContent>
<form id="FrmLogin" name="FrmLogin" action="password.aspx" method="post">
<table width="350" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="20"> </td>
</tr>
<tr>
<td>
<table width="350" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="180" align="right"><%=L_DomainUserNameLabel_Text%></td>
<td width="7"></td>
<td align="right">
<input id="DomainUserName" name="DomainUserName" type="text" class="textInputField" runat="server" size="25" autocomplete="off" />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="7"></td>
</tr>
<tr>
<td>
<table width="350" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="180" align="right"><%=L_OldPasswordLabel_Text%></td>
<td width="7"></td>
<td align="right">
<input id="UserPass" name="UserPass" type="password" class="textInputField" runat="server" size="25" autocomplete="off" />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="7"></td>
</tr>
<tr>
<td>
<table width="350" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="180" align="right"><%=L_NewPasswordLabel_Text%></td>
<td width="7"></td>
<td align="right">
<input id="NewUserPass" name="NewUserPass" type="password" class="textInputField" runat="server" size="25" autocomplete="off" />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="7"></td>
</tr>
<tr>
<td>
<table width="350" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="180" align="right"><%=L_ConfirmNewPasswordLabel_Text%></td>
<td width="7"></td>
<td align="right">
<input id="ConfirmNewUserPass" name="ConfirmNewUserPass" type="password" class="textInputField" runat="server" size="25" autocomplete="off" />
</td>
</tr>
</table>
</td>
</tr>
<%
strErrorMessageRowStyle = "style=\"display:none\"";
if ( bGenericFailure == true )
{
strErrorMessageRowStyle = "style=\"display:\"";
}
%>
<tr id="tr4" <%=strErrorMessageRowStyle%> >
<td>
<table>
<tr>
<td height="20"> </td>
</tr>
<tr>
<td><span class="wrng"><%=L_PasswordChangeGenericFailure_Text%></span></td>
</tr>
</table>
</td>
</tr>
<%
strErrorMessageRowStyle = "style=\"display:none\"";
if (bPasswordBlankFailure == true)
{
strErrorMessageRowStyle = "style=\"display:\"";
}
%>
<tr id="tr2" <%=strErrorMessageRowStyle%> >
<td>
<table>
<tr>
<td height="20"> </td>
</tr>
<tr>
<td><span class="wrng"><%=L_BlankPasswordFailureLabel_Text%></span></td>
</tr>
</table>
</td>
</tr>
<%
strErrorMessageRowStyle = "style=\"display:none\"";
if ( bComplexityFailure == true )
{
strErrorMessageRowStyle = "style=\"display:\"";
}
%>
<tr id="tr5" <%=strErrorMessageRowStyle%> >
<td>
<table>
<tr>
<td height="20"> </td>
</tr>
<tr>
<td><span class="wrng"><%=L_ComplexityFailureLabel_Text%></span></td>
</tr>
</table>
</td>
</tr>
<%
strErrorMessageRowStyle = "style=\"display:none\"";
if (bPasswordMismatchFailure == true)
{
strErrorMessageRowStyle = "style=\"display:\"";
}
%>
<tr id="tr3" <%=strErrorMessageRowStyle%> >
<td>
<table>
<tr>
<td height="20"> </td>
</tr>
<tr>
<td><span class="wrng"><%=L_NewPasswordsDontMatchLabel_Text%></span></td>
</tr>
</table>
</td>
</tr>
<%
strErrorMessageRowStyle = "style=\"display:none\"";
if ( bSuccess == true )
{
strErrorMessageRowStyle = "style=\"display:\"";
}
%>
<tr id="tr1" <%=strErrorMessageRowStyle%> >
<td>
<table align = "center">
<tr>
<td height="20"> </td>
</tr>
<tr>
<td><span class="wrng"><%=L_PasswordChangedLabel_Text%></span></td>
</tr>
<tr>
<td height="10"> </td>
</tr>
</table>
</td>
</tr>
<%
strErrorMessageRowStyle = "style=\"display:none\"";
if ( bFailedLogon == true )
{
strErrorMessageRowStyle = "style=\"display:\"";
}
%>
<tr id="trErrorIncorrectCredentials" <%=strErrorMessageRowStyle%> >
<td>
<table>
<tr>
<td height="20"> </td>
</tr>
<tr>
<td><span class="wrng"><%=L_LogonFailureLabel_Text%></span></td>
</tr>
</table>
</td>
</tr>
<%
strButtonsRowStyle = "style=\"display:none\"";
if ( bSuccess == false )
{
strButtonsRowStyle = "style=\"display:\"";
}
%>
<tr>
<td height="20"> </td>
</tr>
<tr id="trButtons" <%=strButtonsRowStyle%> >
<td align="right"><label><input type="submit" class="formButton" id="btnSignIn" value="<%=L_SubmitLabel_Text%>" /></label><label><input type="button" class="formButton" id="Cancel" value="<%=L_CancelLabel_Text%>" onClick="window.location='login.aspx'"/></label>
</td>
</tr>
<tr>
<td height="30"> </td>
</tr>
</table>
</form>
</HTMLMainContent>
</RDWAPage>
2. juni 2020
Abonner på:
Opslag (Atom)