- Metasploit Penetration Testing Cookbook
- Abhinav Singh
- 340字
- 2021-08-13 18:21:10
Setting up Metasploit on a virtual machine with SSH connectivity
In the previous recipe, we focused on setting up a penetration testing lab on a single machine with the help of virtualization. But there can be serious memory usage concerns while using multiple virtual machines. So, here we will discuss a conservation technique which can be really handy in bad times.
Getting ready
All we need is an SSH client. We will use PuTTY as it is the most popular and free SSH client available for Windows. We will set up an SSH connectivity with the Backtrack machine as it has more memory consumption than the Windows XP machine.
How to do it...
- We will start by booting our BackTrack virtual machine. On reaching the login prompt, enter the credentials to start the command line. Now don't start the GUI. Execute any one of the following commands:
root@bt:~# /etc/init.d/start ssh root@bt:~# start ssh
This will start the SSH process on the BackTrack machine.
- Now find the IP address of the machine by entering the following command:
root@bt:~# ifconfig
Note down this IP address
- Now start PuTTY on the host operating system. Enter the IP address of the BackTrack virtual machine and enter port
22:
- Now click on Open to launch the command line. If the connection is successful, you will see the PuTTY command line functioning on behalf of the BackTrack machine. It will ask you to log in. Enter the credentials and enter
ifconfig
to check if the IP is the same as that of the virtual BackTrack:
How it works...
In this SSH session we can now interact with the BackTrack virtual machine using PuTTY. As the GUI is not loaded, it reduces the memory consumption by almost half. Also minimizing the BackTrack virtual machine will further reduce memory consumption as the Windows operating system provides less memory share to the processes that are minimized and provides faster execution of those tasks that are running in maximized mode. This will further reduce the memory consumption to some extent.
- 通信網(wǎng)絡(luò)基礎(chǔ)與設(shè)備
- 智能網(wǎng)聯(lián)汽車V2X與智能網(wǎng)聯(lián)設(shè)施I2X
- Hands-On Full Stack Development with Spring Boot 2 and React(Second Edition)
- 計(jì)算機(jī)網(wǎng)絡(luò)與數(shù)據(jù)通信
- 互聯(lián)網(wǎng)安全的40個(gè)智慧洞見:2015年中國(guó)互聯(lián)網(wǎng)安全大會(huì)文集
- SSL VPN : Understanding, evaluating and planning secure, web/based remote access
- Metasploit Penetration Testing Cookbook
- 網(wǎng)絡(luò)基礎(chǔ)與網(wǎng)絡(luò)管理項(xiàng)目化教程
- Kong網(wǎng)關(guān):入門、實(shí)戰(zhàn)與進(jìn)階
- React Cookbook
- 5G時(shí)代的大數(shù)據(jù)技術(shù)架構(gòu)和關(guān)鍵技術(shù)詳解
- 現(xiàn)代通信系統(tǒng)(第5版)
- Qt5 Python GUI Programming Cookbook
- Guide to NoSQL with Azure Cosmos DB
- 工業(yè)以太網(wǎng)技術(shù):AFDX/TTE網(wǎng)絡(luò)原理、接口、互連與安全