Preparing own windows machine in AWS for penetration testing in free

Preparing own pentesting lab machine 1.0

Instruction for setting your own lab machine for trying nc & ncat labs

The basic things needed

The amazon aws is giving the windows machines for free as of the date
of blog written for 12 months as free tire.

>> First sign up for an account

>> After signing up enter you credit /debit card details and then choose for the free tire
>> Then go to ec2 and choose a windows machine eligible for free tire
>> Edit the security group for the for any ip and any range we need tcp and ssh port open
>> While saving the .pemkey file save it in a accessible safe location in your pc
>> It will take sometime and see the status of up and running

Setting up the host machine and getting the windows password


>> on the dash board select he windows machine and go to actions on the above left
>> click on the get windows password option .
>> select the key file from your computer and remember the ip address and password
>> now from the kali machine open the terminal and follow the steps

Acessing the windows remote desktop and installing chrome browser


>> On the terminal type in the following command rdeskop -u username -p password ip
>> The user name is the Administrator
>> Now after connecting to the windows machine you need to install a good browser like chrome.
>> Open the power shell in the windows machine and paste the following code to install chrome in the machine
$LocalTempDir = $env:TEMP; $ChromeInstaller = "ChromeInstaller.exe"; (new-object System.Net.WebClient).DownloadFile('http://dl.google.com/chrome/install/375.126/chrome_installer.exe', "$LocalTempDir\$ChromeInstaller"); & "$LocalTempDir\$ChromeInstaller" /silent /install; $Process2Monitor = "ChromeInstaller"; Do { $ProcessesFound = Get-Process | ?{$Process2Monitor -contains $_.Name} | Select-Object -ExpandProperty Name; If ($ProcessesFound) { "Still running: $($ProcessesFound -join ', ')" | Write-Host; Start-Sleep -Seconds 2 } else { rm "$LocalTempDir\$ChromeInstaller" -ErrorAction SilentlyContinue -Verbose } } Until (!$ProcessesFound)
The last thing is to turn off the firewall which can be done by navigating to the control panel and selecting the privacy and security option

From there just turn the fire wall off and enjoy

This article is written by

Rinakan Rohit Jena
rinkanrohitjena@live.com

Comments

Popular posts from this blog

How to install and config pmta full detailed

powermta and vesta cp with mail wizz

How to install wine in kalilinux for using .exe files in linux