Introduction to Microsoft PowerShell – Working with PSDrives and Items
PowerShell provides many ways to work with files and with other sorts of structured data it treats as files. Typically as shown before we can use the same commands as in cmd.exe but they parameters...
View ArticleCreating Test Accounts on a Windows 2008 R2 DC with PowerShell
Recently I had to rebuild my lab do to that I had cloned a bunch of VM’s and forgot to run sysprep on them. This caused problems do to link SID’s when I installed Exchange 2010 in my home lab so I...
View ArticleIntroduction to Microsoft PowerShell – Variables
There are several types of variables this are: User Created – These variables are the ones we create in the shell and in scripts. This variables are present only in the current process we are on and...
View ArticleParsing Nessus CSV Reports with PowerShell
Recently in the Pauldotcom Podcast Paul was mentioning how he uses Awk, cut and other bash tools to process a Nessus CSV report file and format the host output so he could use it in another tool. I saw...
View ArticleMDNSRecon
Recently I was chatting with my good friend Elliot Cutright also known in twitter as @nullthreat about the recent changes I have been doing to DNSRecon and several of the improvements. He commented...
View ArticleDiscovery Thru Pivot with the Metasploit Pentest Plugin
Recently I have been working more and more on my pentest plugin for Metasploit doing bug fixes and trying to improve some of the current areas of it. I added the Auto Exploit plugin to it for exploit...
View ArticleChanging Ubuntu LTS 12.04 Back to GNOME Classic
I really try to use Unity on the new Ubuntu LTS as much as possible and make it part of my workflow, but many times I liked Unity after a while and others I hated it. So I decided to go back to Gnome...
View ArticleIntroduction to Microsoft PowerShell – What is it and Setup
What Is PowerShell I do believe that one of the biggest skills that both Administrator and Security Professional should have is to be able to automate tasks on a systems they are responsible for. Many...
View ArticleIntroduction to Microsoft PowerShell– Basics of Running Cmdlets
PowerShell Cmdlets You will notice that for the PowerShell commands I use the word Cmdlet, that is how Microsoft calls and spells the word. In a PowerShell shell you can execute regular windows...
View ArticleTrojan Horse by Mark Russinovich Review
Trojan Horse is Mark Russinovich second techno thriller. His first one being Zero Day. Mark is a Technical Fellow in the Platform and Services Division at Microsoft, he is very well known in the...
View ArticleCentralized Management of Java SE Environment Using GPO (Redux)
My Adventures helping a friend secure his Java environment where fun, in my original blog post I used GPO to reduce the risk in his environment by crudely pushing a configuration file to his...
View ArticlePowerShell Basics–Using the Help Subsystem
Before we start running commands one of the fist things we have to do is to understand the rich help subsystem in PowerShell or as we say to many users in our IT life, RTFM. One of the first things to...
View ArticlePowerShell Basics–Running Commands
Lets start running commands and tying in what was covered in the previous posts. As you may have guessed by now in PowerShell the cmdlets, functions, workflows and scripts are all named in a - format....
View ArticleNew Guide for Installing Metasploit Framework CentOS and RHEL 6
I know that many hostting companies offer CentOS 6 as their OS of choice for VPS do to its great track record. So I decided to write and maintain a guide for getting a Development environment for...
View ArticleVerifying Patching with PowerShell (Part 1 Finding the Java Versions)
One of the greatest dilemmas that both the system admin as well as the the security professional face is knowing if a patch tool and even more I would say it would be having visibility of what is...
View ArticleVerifying Patching with PowerShell (Part 2 Microsoft Hotfixes)
In this second part we will look at querying for Microsoft Hotfixes against a given array of hosts. This Workflow will differ a bit as you will see from the one I showed in my previous post do to...
View ArticlePowerShell Basics–Objects and the Pipeline
By now you would have noticed if you have been reading my other posts where I use PowerShell that it is not your typical Shell and that it behaves in a unique way when it comes to the output generated...
View ArticleIntroduction to WMI Basics with PowerShell Part 1 (What it is and exploring...
For a while I have been posting several ways I use WMI (Windows Management Instrumentation) in my day to day and in consulting but have never covered the basics. Talking with other people in the...
View ArticlePowerShell Basics–Filtering and Iterating over Objects
Now that we know that commands in PowerShell produce objects and that they have properties we can now start comparing, filtering and manipulating the objects. Operators For the manipulation of objects...
View ArticleIntroduction to WMI Basics with PowerShell Part 2 (Exploring WMI using WMI...
In the previous blog post I covered how to explorer WMI using a GUI tool, now lets look at how to explorer WMI first using the WMI Cmdlets that are found in PowerShell v2 and PowerShell v3, then we...
View Article