LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-21-2021, 03:54 AM   #1
cyno77
Member
 
Registered: Mar 2021
Location: Sydney, Australia
Distribution: Ubuntu Linux
Posts: 47

Rep: Reputation: Disabled
Question Networking/pentesting learning with persistent live usb OS or Virtual OS?


This is a light, theoretical question:

Virtual Operating Systems have been recommended to me a/ I had trouble with resizing on my hard disc partitions. I have been investigating the possibility of trying out Kali (tools) to learn Networking (have been with Ubuntu for a year+ Windowses for a decade).

I wanted to get the LQ opinion on why virtual OS is good, (does it get in touch with drivers properly?) and why not use a "live OS on USB- Persistent" if I wanted to try pentesting lightly, as this option may ALSO allow for a kind of sandboxed environment?

What is the opinion of using Live USB Linux/kali, and what is it about Virtual that is better for a sandboxed environment? Have done OpenSSH& Telnet,Nmap, port scan, etc
 
Old 05-21-2021, 08:31 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
The question "does it get in touch with drivers properly?" doesn't make sense to me. Perhaps you are asking if a VM can use the hardware of its host. The answer is "it depends".

VMs have the advantage that you can use your normal system in parallel. However, I don't know whether it is possible to use the same piece of hardware, e.g. a Wifi interface, on both the VM host and guest at the same time. Since you want to use it lightly, this may not be a concern, and if all you need for your learning is virtual hardware, you are fine.

On Windows, Kali is also available as a WSL2 application. I don't know whether it has reduced functionality, but it seems to be endorsed by the makers of Kali.

Yet another solution is containers. It allows you to run Kali in parallel to your normal operating system without the overhead of a virtual machine.

With live media, the advantage is guaranteed full control of the PC. Disadvantages: You can't use the PC for anything else while using Kali, and everything that requires access to files on the live media risks to be slow.

I would start with a VM, containers or WSL. You can move to live media later if you see that this is inadequate.

Last edited by berndbausch; 05-21-2021 at 08:47 PM. Reason: added containers
 
Old 05-21-2021, 09:09 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,317
Blog Entries: 28

Rep: Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140
Some time ago, the Linux Voice magazine (which is now defunct--what's left of it appears in Linux Pro Magazine) published a Kali tutorial. They recommended setting up Kali and the target OS (they recommended Metasploit) in VirtualBox using "host only" network connections. With "host only," the two VMs can see each other, but not see or be seen by the Big Wide World, and therefore not attract the type of attention you might want not to attract nor accidentally damage anything.

Unfortunately, the old Linux Voice website is no longer available, and so too the link to the tutorial itself. Which is a darn shame, because it was an excellent tutorial. And an excellent magazine.

Note that, if you want to try this approach, you must give Kali a large virtual HDD, as some attacks on Metasploit can eat up a lot Kali's disk space.

A web search for "metasploit tutorial" will turn up a number of resources.

Last edited by frankbell; 05-21-2021 at 09:11 PM. Reason: editing
 
1 members found this post helpful.
Old 05-25-2021, 02:17 AM   #4
cyno77
Member
 
Registered: Mar 2021
Location: Sydney, Australia
Distribution: Ubuntu Linux
Posts: 47

Original Poster
Rep: Reputation: Disabled
Thankyou. I'm sorry I took a while responding I have been researching madly so I had something relevant to say/ask. But it still seems a very grey area despite attempts to read mostly OWASP & Georgia Tech info which seemed good. Otherwise it is apparently a subject of much consternation as to how to initiate host's licences so they don't have to keep being renewed for say VirtualBox, apparently, but it was hard to read so don't quote me. I am still reading and will no doubt find out better about this. Hate to get tied up in redtape crud! Thankyou for information though, I looked into containers but feel it's best to go with what virtual machines as so many are so it will be def. easier to find community info.

I can really see disk space for Kali would be a necessity! I just got more ram ddr4 and a 1TB NVMe so...that will help a bit. Thank god I don't have one of those stupid MS Surface Laptops as they only allow one SSD only, and only one usb3. Whatta blowout. I'm still not wanting cloud storage, ms, so...

-Anyways thanks for the tips-
 
  


Reply

Tags
kali, networking, sandbox, virtualbox



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Announcing Linux-Live-Kit x86_64 Debian Stretch Live XFCE MultiDistro Remasterable/Persistent HDD/USB linus72 Debian 6 04-22-2019 09:05 PM
Persistent persistent Persistent Going Nuts Here Fcukinyahoo Linux - Newbie 6 11-17-2011 09:56 PM
Will Deleting 70-persistent-cd.rules and 70-persistent-net.rules Work As a "Live USB" Konphine Linux - General 1 10-09-2011 03:55 PM
what is your faviorite pentesting distro monkeypoo Linux - Security 10 08-01-2007 01:43 PM
Pentesting with an exploit RIB-EYE Linux - Security 1 10-27-2005 04:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration