list open / listening ports linux unix windows
- No Comments
- Dec, 26, 2010
- Angelo Schalley
- Linux, Networking, security, vmware, Windows-Microsoft
FreeBSD
On a FreeBSD Unix system, as with other BSD Unix systems, you have a number of utilities with a base system install that can be used for listing open files, running processes, and network connections. The netstat
utility is maintained as a part of the FreeBSD base system by the FreeBSD core developers, and offers exactly the sort of functionality you need to list open ports on your system.
Read more on list open / listening ports linux unix windows…
rewrite domain redirect using htaccess
- No Comments
- Dec, 22, 2010
- Angelo Schalley
- html / php, joomla, Plesk Linux
Fill your .htaccess file and place it in your root directory :
## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks#
# mod_rewrite in useRewriteEngine On
########## Redirect van www.domain.be
# redirect some other domains
RewriteCond %{HTTP_HOST} ^domain\.be$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www\.domain\.be$ [NC]
RewriteRule ^(.*)$ http://www.redirectdomain.be/iets.html [R=301,L]
Read more on rewrite domain redirect using htaccess…
Powershell commandline mailing , send mail
- No Comments
- Dec, 19, 2010
- Angelo Schalley
- Exchange, Powershell, Windows-Microsoft
statusmailer.ps1 :
$data can be any data you want to send.
$data = Get-ChildItem “\\10.10.102.249\backup\” | sort-object -property @{Expression={$_.LastWriteTime}; Descending=$true} | format-table LastWriteTime,Length,Name -auto | out-string
$emailFrom = “backup@domain.be”
$emailTo = “user@domain.be”
$subject = “backupverslag LINIX”
$body = $data
$smtpServer = “10.10.10.1”
$smtp = new-object Net.Mail.SmtpClient($smtpServer)
$smtp.Send($emailFrom, $emailTo, $subject, $body)
Read more on Powershell commandline mailing , send mail…