Linux serverNETWORK ADMINISTRATIONSsmtp server liux

Get email notification when someone try to login your computer or server

In this video I will show you how you can get alert when someone try to HACK you computer or server by login. I tried to establish a mechanism that will allow you to get information for failed logon attempt

Here is script

$From =”Your gmail account”
$To = “You email address”
$SMTPServer = “smtp.gmail.com”
$SMTPPort = “587”
$Username = “your gmail account”
$Password = “gmail password”
$subject = “Bad Password Attempt”
$body = “Someone trying to login your computer. if its not that you please take action!”

$smtp = New-Object System.Net.Mail.SmtpClient($SMTPServer, $SMTPPort);

$smtp.EnableSSL = $true
$smtp.Credentials = New-Object System.Net.NetworkCredential($Username, $Password);
$smtp.Send($From, $To, $subject, $body);

Add arguments : -ExecutionPolicy ByPass -File X:PathToScriptOwaAttack.ps1

#SuperITFolks.com #HackingTricks #Protection

source

by Mushaaf

linux smtp server

6 thoughts on “Get email notification when someone try to login your computer or server

Comments are closed.