This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession | |
$session.Cookies.Add((New-Object System.Net.Cookie("Lastalerts", "", "/", "www.oref.org.il"))) | |
$session.Cookies.Add((New-Object System.Net.Cookie("AlertSoundNewFeature", "1", "/", "www.oref.org.il"))) | |
$session.Cookies.Add((New-Object System.Net.Cookie("UsId", "***************", "/", "www.oref.org.il"))) | |
$session.Cookies.Add((New-Object System.Net.Cookie("_ga_V2BQHCDHZP", "GS1.1.1697037833.1.0.1697037833.60.0.0", "/", "www.oref.org.il"))) | |
$session.Cookies.Add((New-Object System.Net.Cookie("_ga", "***************", "/", "www.oref.org.il"))) | |
$session.Cookies.Add((New-Object System.Net.Cookie("_gid", "***************", "/", "www.oref.org.il"))) | |
$session.Cookies.Add((New-Object System.Net.Cookie("_fbp", "***************", "/", "www.oref.org.il"))) | |
$previous = 0 | |
$ProgressPreference = 'SilentlyContinue' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://youtube.com/c/dimustech | |
# https://youtube.com/c/dimustechil | |
param( | |
[switch] $mail, | |
[switch] $baloon, | |
[switch] $telegram, | |
[Parameter(Mandatory)] | |
[string]$subject, | |
[string]$body = $subject |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################################## | |
# # | |
# Author: Dima K. # | |
# YouTube: https://youtube.com/c/dimustech # | |
# # | |
######################################################## | |
$SendMail = $true | |
$from = "[email protected]" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$NewFailedLogin = $null | |
$StartDate = get-date | |
$CamPath = "C:\CommandCam" | |
$SmtpServer = "smtp.mail.ru" | |
$From = "" | |
$to = "" | |
$Cred = Import-CliXml $CamPath\cred.clixml | |
$CurrentAudit = (auditpol /get /subcategory:"Logon")[4] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Edit only this part! ################ | |
$MyToken = "" | |
$ChatID = "" | |
######################################### | |
$InitialMessageDate = 0 | |
$counter = 0 | |
while ($true) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Happy-NewYear { | |
$frame1 = @" | |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&(*..,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,&@ | |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%,.,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,/@ | |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,/@ | |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%.,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,/@ | |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@(.,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,/@ | |
@@@@@@@@@@@@@@@@@@@@@@@@@@ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Check if SSL certificate of a specific site will expire within a given threshold. | |
.DESCRIPTION | |
Check if SSL certificate of a specific site will expire within a given threshold. | |
.PARAMETER Threshold | |
Set the threshold in days to check if the SSL expires within that threshold. | |
.PARAMETER WebsiteURL | |
List the websites to check (comma separated) |