April 15, 2017

Installing OpenVAS on Ubuntu 16.04

sudo apt update && sudo apt upgrade
sudo apt install software-properties-common
sudo add-apt-repository ppa:mrazavi/openvas
sudo apt update
sudo apt install openvas
sudo apt install sqlite3
sudo openvas-nvt-sync
sudo openvas-scapdata-sync
sudo openvas-certdata-sync
sudo service openvas-scanner restart
sudo service openvas-manager restart
sudo openvasmd --rebuild --progress
sudo openvasmd --user=admin --new-password=PASSWORD

April 11, 2017

PowerShell - Send email on behalf

$EmailFrom = "User One <user.one@example.com>"
$EmailTo = "Vyacheslav Fedenko <vyacheslav.fedenko@example.com>"
$Subject = "Email Subject"
$body = "Email Body"
$SmtpServer = "YOUR SMTP SERVER IP ADDRESS"
$Smtp = new-object Net.Mail.SmtpClient($SmtpServer)
$MailMessage = new-object Net.Mail.MailMessage($EmailFrom, $EmailTo, $Subject, $body)
$MailMessage.Sender = "User.Two@example.com"
$Smtp.Send($MailMessage)



April 9, 2017

Get Calendar Permissions report - Exchange 2010/2013/2016 and Exchange Online

This PowerShell script gets Calendar Permissions report within your Exchange organization. It also can get a report from Office 365.
Usage examples:
.\Get-CalendarPermissionsReport.ps1 -Version 2010
Exchange 2010 Calendar Permissions report.


.\Get-CalendarPermissionsReport.ps1 -Version 2010 -File FileName.csv
The same as above but the results will be exported to FileName.csv file. 


.\Get-CalendarPermissionsReport.ps1 -Version 2013-2016 -File FileName.csv
Gets calendar permissions report for Exchange 2013 or 2016 and exports the results to FileName.csv file. 


.\Get-CalendarPermissionsReport.ps1 -Version O365 -File FileName.csv
Gets calendar permissions report for Exchange Online and exports the results to FileName.csv file. It will ask an Office 365 admin credentials.


.\Get-CalendarPermissionsReport.ps1 -Version O365
Connects to Exchange Online and prints calendar permissions to console. 


The script can be downloaded from TechNet Gallery.