Showing posts with label email. Show all posts
Showing posts with label email. Show all posts

9/26/16

Phishing Technique and Its Success

Phishing is a social engineering technique that manipulating people to perform some actions as the attacker wants. The attacker prepares an e-mail as if it was sent from a known individual or organization, and leads the victim to click on a link that will take the user to a malicious website or download some malicious file, or to a fraudulent website that appears legitimate so the victim enters his username and password or some more individual information about himself.

Phishing is a very successful technique because people do not visit websites carefully or they do not have much time to be more careful, to investigate about the website or e-mail. One of the reasons may be that they did not become a victim before, or maybe they do not know even if they were. People easily trust brands and/or logos and influential texts. There is a lack of information assurance knowledge.




How Does Phishing Works?















Countermeasures

The most effective defense against phishing is creating user awareness. One employee that you do not improve his awareness can cause to be hacked.

            “You are as strong as the weakest link in your defense system” Sun Tzu

Do not let your clients use company e-mail addresses in Internet for personal usage. Spammers search internet for the e-mail addresses used by company to send the spam mail to more users.

Never respond to spam, or click on “unsubscribe” links from questionable sources.

Make sure your antispam solution works J

Use Proxy servers in company, for clients’ internet usage. A Proxy server that has a dynamic scanning feature can decrease the possibility to be hacked by phishing. Even if the user opens the link in the e-mail, the Proxy would not let him to enter the website.

Even if it is not enough for your security, ensure that all employee’s PCs, and antivirus agents are up to date.





9/21/16

How To Send E-mail Using Telnet

To send an e-mail, basicly your computer connects to the remote mail server  and talks to it using SMTP (Simple Mail Transfer Protocol).

Previous blog was about sending e-mail with PowerShell. If you do not like PowerShell :S and want to use cmd, this can work for you.

You can use Telnet. To send an e-mail using Telnet;


Telnet  <smtp_server_ip>  25
HELO
501 Syntax: HELO hostname
MAIL FROM: test@test.com
250 2.1.0 Ok
RCPT TO: reccipient@test.com
250 2.1.5 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
SUBJECT: <Subject>

<body> .

(You must finish your e-mail with a dot (.) ) 

9/20/16

Sending e-mail with Powershell

To send an e-mail, basicly your computer connects to the remote mail server and talks to it using SMTP (Simple Mail Transfer Protocol).

When you use an e-mail client like MS Outlook, the mail client makes all of them for you, however when you make a script and want it send e-mail for alerting, it is not possible to do it with an e-mail client. So, a script like below will solve your issue; here, I do not write explanation of some of the lines since most of the variable names are explaining what it is used for.




########### SMTP SERVER AND MAIL SETTINGS #############

$smtpServer = "smtp.secureeoposts.blogspot.com"
$smtpPort = 587  #It depends according to your smtp server
$sslEnabled= $true  #If your smtp server does not support secure connections,
                                 #you have to delete this line
$username = sender@secureeo.blogspot.com
$password = "************"  #Type your password here
$from = sender@secureeo.blogspot.com
$to = receipent@secureeo.blogspot.com
$subject = "Test e-mail with Powershell"
$body = "This is a test e-mail sending with using Powershell"



###############  E-MAIL SETTINGS ###############

$smtp = new-object Net.Mail.SmtpClient($smtpServer, $smtpPort)
$smtp.sslEnabled = $sslEnabled #If your smtp server does not support secure
                                                     #connections, you have to delete this line
$smtp.Credentials = new-object Net.NetworkCredential($username, $password)
               $msg = new-object Net.Mail.MailMessage
               $msg.From = $from
               $msg.To.Add($to)
               $msg.Subject = $subject
               $msg.Body = $body
               $attachFile = "C:\Users\securityposts_PC\Desktop\email_test\email_test.PNG"
               $att = new-object Net.Mail.Attachment($attachFile)
               $msg.Attachments.Add($att)
               $smtp.Send($msg)