<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>kalilinux Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/kalilinux/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Fri, 20 Nov 2020 19:55:18 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.13</generator>
	<item>
		<title>Use Windows 10 as a hacking system by installing Kali Linux</title>
		<link>https://www.osradar.com/use-windows-10-as-a-hacking-system-by-installing-kali-linux/</link>
					<comments>https://www.osradar.com/use-windows-10-as-a-hacking-system-by-installing-kali-linux/#respond</comments>
		
		<dc:creator><![CDATA[roger]]></dc:creator>
		<pubDate>Sun, 22 Nov 2020 22:44:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[ethical hacking]]></category>
		<category><![CDATA[kalilinux]]></category>
		<category><![CDATA[windows subsystem for linux]]></category>
		<category><![CDATA[Windows Subsystem Linux]]></category>
		<category><![CDATA[WSL]]></category>
		<category><![CDATA[WSL2]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=25615</guid>

					<description><![CDATA[<p>Hello! Windows and GNU/Linux is a relationship that was previously similar to water and oil. In fact, the differences were so vast that it was impossible to think of any kind of compatibility. However, this has changed over the years. In fact, Microsoft&#8217;s approach to GNU/Linux has been such that they have even included the [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/use-windows-10-as-a-hacking-system-by-installing-kali-linux/">Use Windows 10 as a hacking system by installing Kali Linux</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello! Windows and GNU/Linux is a relationship that was previously similar to water and oil. In fact, the differences were so vast that it was impossible to think of any kind of compatibility. However, this has changed over the years. In fact, Microsoft&#8217;s approach to GNU/Linux has been such that they have even included the possibility of using Linux functions within the same Windows system. This is possible by means of Windows Subsystem for Linux (WSL), which we have previewed <a href="https://www.osradar.com/how-to-install-and-use-bash-in-windows-10/" target="_blank" rel="noreferrer noopener">here.</a> In this way, it is possible to use Linux proprietary distros such as Ubuntu. However, today we will learn how to install <a href="https://www.kali.org/" target="_blank" rel="noreferrer noopener">Kali Linux</a>. Which is a distribution focused on ethical hacking. Consequently, we can use it to test and increase the security of certain systems. Please stay with us to learn how to use Windows 10 as a hacking system by installing Kali Linux.</p>



<h2>Prerequisites</h2>



<p>Windows 10 2004 or higher</p>



<p>As we have mentioned, to use this functionality it is necessary to enable WSL. We have explained those steps in this <a href="https://www.osradar.com/how-to-install-and-use-bash-in-windows-10/" target="_blank" rel="noreferrer noopener">post.</a> However, this time we will use the most recent version that corresponds to WSL2. For this we will use the PowerShell with administrator privileges. With this intention, press the Win+X combination and select the following option: </p>



<figure class="wp-block-image size-large"><img loading="lazy" width="271" height="623" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/11/kali.png" alt="Please run PowerShell as administrator. " class="wp-image-25616" srcset="https://www.osradar.com/wp-content/uploads/2020/11/kali.png 271w, https://www.osradar.com/wp-content/uploads/2020/11/kali-130x300.png 130w" sizes="(max-width: 271px) 100vw, 271px" /><figcaption>Please run PowerShell as administrator.</figcaption></figure>



<p>Please copy and execute the commands strictly:</p>



<pre class="wp-block-preformatted">Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux</pre>



<p>Now, reboot the computer and once again from a PowerShell with administrator privileges the following commands:</p>



<pre class="wp-block-preformatted">dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart</pre>



<pre class="wp-block-preformatted">dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart</pre>



<p>Once the computer is restarted. Back to the system, it is necessary to manually update the Linux Kernel in order to use WSL2. Don&#8217;t worry, just download and install this <a href="https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi" target="_blank" rel="noreferrer noopener">file.</a> Now we only have to activate WSL2 by default for the Linux instances in the system. With this intention, once again from the console with administrator privileges, run the following command:</p>



<pre class="wp-block-preformatted">wsl --set-default-version 2</pre>



<p>And that&#8217;s it. WSL2 is now enabled to install Kali Linux.</p>



<h2>What is the most attractive thing about Kali Linux, the GNU/Linux distribution specialized in ethical hacking.</h2>



<p>Kali Linux is one of the most complete ethical hacking distributions we can find. Additionally, it is a Debian-based distro and comes with a large collection of ethical hacking and security programs. Consequently, it is possible to carry out all kinds of security tests and audits. The usual thing is to have Kali Linux installed on a computer. Likewise, having it in a USB memory stick to load it when we need to use it. It can even be loaded from a <a href="https://www.osradar.com/how-to-enable-and-use-hyper-v-on-windows-10/" target="_blank" rel="noreferrer noopener">virtual machine</a>. However, through WSL2 we will use it differently. Since it allows 3 different modes of use.</p>



<ul><li>Accessing the tools from Bash with CMD</li><li>Window Mode. Which allows you to run a Kali Linux graphical interface in a new window, like a virtual machine.</li><li>Seamless Mode. A mode that places the Kali taskbar on top of the desktop. Which allows you to open programs in windows that run next to those of Windows.</li></ul>



<p>Additionally, Kali Linux on Windows 10 supports sound, root session and multiple user sessions. It even allows clipboard sharing by copy and paste between Windows and Kali applications. Sounds great, doesn&#8217;t it? But the most interesting thing is being able to convert Windows 10 as a hacking system by installing Kali Linux.</p>



<h2>Installing Kali Linux on Windows 10</h2>



<p>After configuring the computer, just download and install Kali Linux from this <a href="https://www.microsoft.com/en-us/p/app/9pkr34tncv07?activetab=pivot:overviewtab" target="_blank" rel="noreferrer noopener">link.</a> You will be immediately redirected to the Microsoft Store. Please click on Get to start the download and installation. Then you must complete the initial setup of the distro. Additionally, it is required to add the username and password. The final result will be as in this picture:</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="979" height="512" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/11/kali2.png" alt="Initial configuration of Kali Linux" class="wp-image-25623" srcset="https://www.osradar.com/wp-content/uploads/2020/11/kali2.png 979w, https://www.osradar.com/wp-content/uploads/2020/11/kali2-300x157.png 300w, https://www.osradar.com/wp-content/uploads/2020/11/kali2-768x402.png 768w, https://www.osradar.com/wp-content/uploads/2020/11/kali2-696x364.png 696w" sizes="(max-width: 979px) 100vw, 979px" /><figcaption>Initial configuration of Kali Linux</figcaption></figure>



<h2>Preparing the system to use the graphical mode of Kali Linux in Windows 10.</h2>



<p>The first thing you have to do is update the software lists and updates. With this in mind, from bash execute the following command:</p>



<pre class="wp-block-preformatted">sudo apt update &amp;&amp; sudo apt upgrade</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="572" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/11/kali3-1024x572.png" alt="" class="wp-image-25626" srcset="https://www.osradar.com/wp-content/uploads/2020/11/kali3-1024x572.png 1024w, https://www.osradar.com/wp-content/uploads/2020/11/kali3-300x167.png 300w, https://www.osradar.com/wp-content/uploads/2020/11/kali3-768x429.png 768w, https://www.osradar.com/wp-content/uploads/2020/11/kali3-696x388.png 696w, https://www.osradar.com/wp-content/uploads/2020/11/kali3-1068x596.png 1068w, https://www.osradar.com/wp-content/uploads/2020/11/kali3.png 1290w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Now, the next step will be to install Win-KeX. This is the tool that allows you to run a graphical environment over WSL. Consequently, Kali Linux runs in the same way as a physical device. To do so, please run the following command.</p>



<pre class="wp-block-preformatted">sudo apt update &amp;&amp; sudo apt install kali-win-kex</pre>



<p>The wizard will download, install and configure all the necessary packages. In addition, this process can take a while and take up almost 2&nbsp;GB of hard disk space. After finishing the process, we are ready to use Kali Linux in graphic mode.</p>



<h2>How to open Kali Linux in Window Mode.</h2>



<p>In this mode, Kali will run the desktop within a single window. Consequently, Linux will be isolated from Windows elements. This is the closest to mounting it in a virtual machine. To open this mode, the command to be executed is:</p>



<pre class="wp-block-preformatted">kex --win -s</pre>



<p>Please note, that you can enter the options by pressing the F8 key.</p>



<h2>Open Kali Linux in Seamless mode</h2>



<p>This mode allows you to view Kali&#8217;s windows as if they were elements of Windows on the current desktop. Even with the bar on top of everything. Consequently, run the following command:</p>



<pre class="wp-block-preformatted">kex --sl -s</pre>



<p>In this way we have seen how to use Windows 10 as a hacking system by installing Kali Linux. You know, now you have the best of every ecosystem in one operating system.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/use-windows-10-as-a-hacking-system-by-installing-kali-linux/">Use Windows 10 as a hacking system by installing Kali Linux</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/use-windows-10-as-a-hacking-system-by-installing-kali-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>how to kill process in Linux</title>
		<link>https://www.osradar.com/how-to-kill-process-in-linux/</link>
					<comments>https://www.osradar.com/how-to-kill-process-in-linux/#respond</comments>
		
		<dc:creator><![CDATA[Muhammad Nabeel]]></dc:creator>
		<pubDate>Wed, 18 Sep 2019 19:50:20 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bignner]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[kalilinux]]></category>
		<category><![CDATA[process]]></category>
		<category><![CDATA[thel]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=13596</guid>

					<description><![CDATA[<p>A process is the instance of a computer program that is being executed by one or many threads. It contains the program code and its activity. Several processes may be associated with the same program; for example, opening up several instances of the same program often results in more than one process being executed. kill [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-kill-process-in-linux/">how to kill process in Linux</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>A process is the instance of a computer program that is being executed by one or many threads. It contains the program code and its activity. Several processes may be associated with the same program; for example, opening up several instances of the same program often results in more than one process being executed.</p>
<p>kill is a command which is used in several popular operating systems to send signals to running processes. In Linux kill command is normally used to terminate running process. In this article we will cover basics of kill command so you will understand it and apply it in your environment.</p>
<p>Before killing or terminating any process we have to get its process ID (PID) or process name. We can use wo commands to find process ID&#8217;s, first is &#8220;ps&#8221; command and the second it &#8220;top&#8221; command. In this article we will use ps command to find a process ID and its name.</p>
<h3><strong>Locate process using ps command</strong></h3>
<p>ps command is used to see processes, following command to list all running processes.</p>
<pre>ps aux</pre>
<p>a: Show processes for all users<br />
u: Display the user who is using the process<br />
x: Show all processes. (it also show the processes running in a GUI environment)</p>
<p><img loading="lazy" class="alignnone wp-image-13598" src="https://www.osradar.com/wp-content/uploads/2019/09/1-8-300x160.png" alt="kill process in Linux" width="662" height="353" srcset="https://www.osradar.com/wp-content/uploads/2019/09/1-8-300x160.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/1-8-768x409.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/1-8-1024x546.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/1-8-696x371.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/1-8-1068x569.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/1-8-788x420.png 788w, https://www.osradar.com/wp-content/uploads/2019/09/1-8.png 1920w" sizes="(max-width: 662px) 100vw, 662px" /></p>
<h3><strong>List specific process ID</strong></h3>
<p>If you want to search any specific process so you can use any of following three methods.</p>
<p><strong>Method 1:</strong></p>
<pre>ps -aux | grep process-name</pre>
<p>e.g check for Apache process</p>
<pre>ps -aux | grep httpd</pre>
<p><img loading="lazy" class="alignnone wp-image-13599" src="https://www.osradar.com/wp-content/uploads/2019/09/2-7-300x48.png" alt="kill process in Linux" width="675" height="108" srcset="https://www.osradar.com/wp-content/uploads/2019/09/2-7-300x48.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/2-7-768x124.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/2-7-1024x165.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/2-7-696x112.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/2-7-1068x172.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/2-7.png 1920w" sizes="(max-width: 675px) 100vw, 675px" /></p>
<p>You can see process id&#8217;s of Apache in above image.</p>
<h3><strong>Method 2:</strong> <strong>Use pidof command</strong></h3>
<pre>pidof httpd</pre>
<p>Sample outputs:</p>
<pre>4372 4371 4370 4369 4368 4361</pre>
<p><img loading="lazy" class="alignnone wp-image-13600" src="https://www.osradar.com/wp-content/uploads/2019/09/3-8-300x49.png" alt="kill process in Linux" width="673" height="110" srcset="https://www.osradar.com/wp-content/uploads/2019/09/3-8-300x49.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/3-8-768x127.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/3-8-1024x169.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/3-8-696x115.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/3-8.png 1037w" sizes="(max-width: 673px) 100vw, 673px" /></p>
<h3><strong>Method 3: Use pgrep command</strong></h3>
<pre>pgrep httpd</pre>
<p><img loading="lazy" class="alignnone wp-image-13601" src="https://www.osradar.com/wp-content/uploads/2019/09/4-8-300x67.png" alt="kill process in Linux" width="663" height="148" srcset="https://www.osradar.com/wp-content/uploads/2019/09/4-8-300x67.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/4-8-768x171.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/4-8-1024x228.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/4-8-696x155.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/4-8-1068x237.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/4-8.png 1210w" sizes="(max-width: 663px) 100vw, 663px" /></p>
<p>All above methods will show process ID&#8217;s of httpd (Apache) process.</p>
<h3><strong>Kill Process</strong></h3>
<p>kill command is use to terminate or kill running processes.</p>
<h3><strong>Method 1: Kill process by its process ID</strong></h3>
<p>Now, I will kill one Apache process using its process ID.</p>
<pre>kill -9 4372</pre>
<p>Then, verify that PID is killed</p>
<pre>pidof httpd</pre>
<p><img loading="lazy" class="alignnone wp-image-13602" src="https://www.osradar.com/wp-content/uploads/2019/09/5-7-300x44.png" alt="kill process in Linux" width="668" height="98" srcset="https://www.osradar.com/wp-content/uploads/2019/09/5-7-300x44.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/5-7-768x113.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/5-7-1024x151.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/5-7-696x102.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/5-7-1068x157.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/5-7.png 1114w" sizes="(max-width: 668px) 100vw, 668px" /></p>
<p>So you can see in above image that process 4372 is no more exist.</p>
<h3><strong>Method 2: Kill process by its name</strong></h3>
<p>If you want to kill all the processes of a service you can use this method.</p>
<pre>kill -9 httpd</pre>
<p>OR</p>
<pre>pkill httpd</pre>
<p>Now, verify process is killed.</p>
<pre>pidof httpd</pre>
<p>Then, you will see that all processes of httpd will no more exist.</p>
<h3><strong>Kill all processes of a User</strong></h3>
<p>You can use below command to show processes of a user.</p>
<pre>ps -fu user-name</pre>
<p>Now you will get process ID&#8217;s of that user. E.g I show process ID&#8217;s of user &#8220;<strong>osradar</strong>&#8221; in below image</p>
<p><img loading="lazy" class="alignnone wp-image-13647" src="https://www.osradar.com/wp-content/uploads/2019/09/6-13-300x51.png" alt="kill process in Linux" width="682" height="116" srcset="https://www.osradar.com/wp-content/uploads/2019/09/6-13-300x51.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/6-13-768x131.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/6-13-1024x175.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/6-13-696x119.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/6-13-1068x182.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/6-13.png 1343w" sizes="(max-width: 682px) 100vw, 682px" /></p>
<p>Then, run below command to kill all processes of the user</p>
<pre>kill -HUP process-ids</pre>
<p><img loading="lazy" class="alignnone wp-image-13648" src="https://www.osradar.com/wp-content/uploads/2019/09/7-12-300x57.png" alt="kill user in Linux" width="684" height="130" srcset="https://www.osradar.com/wp-content/uploads/2019/09/7-12-300x57.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/7-12-768x146.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/7-12-696x132.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/7-12.png 809w" sizes="(max-width: 684px) 100vw, 684px" /></p>
<p>So, when you run again below command you will see no result.</p>
<pre>ps -fu user-name</pre>
<p>That&#8217;s it, You now know that how to kill running processes in Linux.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-kill-process-in-linux/">how to kill process in Linux</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-kill-process-in-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
