Wednesday, August 31, 2016

DNS Poisoning : how it works, precautions and a quick demo

Hi mates,
few months ago some friends asked me some additional info regarding specific attacks that were done to redirect user traffic to a desired/different web site.
The attack is called DNS Poisoning and it's done, simply speaking, polluting the DNS cache of specific servers. More popular is the web site attacked, more amplified will be the impact.
In that way when a user will try to resolve the name of the website that he/she is asking for, the DNS will give him/she a different IP instead of the right one.(consider that the same approach could be used for mail system for example)

Friday, May 13, 2016

Powershell --> Powerquick : change Exchange 2003 user attributes

Hi mates,
a friend asked me if it is possible to manage specific parameters on his OLD Exchange environment.
Manage Exchange 2003 with Powershell is not possible...for sure is not possible as it is, conversely, with Exchange 2007 or newer versions.
So to modify, adjust, handle bunches of stuff you can leverage on Active Directory attributes.
Here below a quick example that shows how to change user quota for a specific group of user...logically if you want to do it with Powershell :

Monday, May 9, 2016

Powershell : HTML report about event viewer errors

Hi mates,
few weeks ago a customer asked me if it was possible to receive, every morning, a sort of report that recaps all errors found in the System and Application log for each single server in the domain.
It's a long task : the script must connect remotely to each single server, analyze and retrieve all these kind of info.
Fortunately he added an important condition : only the Errors of the current day (or the previous if you prefer).
Anyway it remains a sort of "complication" : there are thousands of logs and the script may need hours to examine all.

Tuesday, April 19, 2016

Powershell : retrieve all groups and members in Active Directory

Hi mates,
I needed to extract, few weeks ago, some information from one of my customer's Active Directory.
I was worried about the format.....the final output for this huge information.
Searching and trying I found the way to extrapolate everything I need and write it to Excel in order to provide something that could be filtered, ordered, and so on.
Nothing special.....but useful

Thursday, March 24, 2016

Cisco switches/routers : automate configuration backup

Hi mates,
a customer asked me how to automate the configuration backup for the internal switches. There are some 2950, 3750 , 3560 and so on.
Unfortunately there are a lot of non-free solutions but searching a little bit deeper I discovered that Cisco provides at least two different ways to do this.
So first of all you have to identify the server that will host the backup files.
Second identify which protocol you want to use to send, over the network, the backup to the selected server.
In my situation I've choose TFTP. There's a free TFTP server solution from Solarwind that is simple and works.
I've explained, briefly, two different solution : Kron and Archive.

With Kron you schedule an action to be done periodically. Kron does accept only EXEC CLI commands and, practically speaking, you will configure two different processes : a policy (that includes commands) and the scheduling (specifying the interval).

Friday, March 18, 2016

Powershell --> Powerquick : get (some) important remote pc info

Hi mates,
here again with a quick Powershell script that could help you during the day by day routine.
Some info to retrieve from a remote pc that could be useful for a massive software installation, to group specific computer with specific software installed, to......it's up to your fantasy.
Obviously you can find thousand of this kind of script on the internet but I feel the need to share, share and share......
Improve it without any limit.....