<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Atharva Deore on Medium]]></title>
        <description><![CDATA[Stories by Atharva Deore on Medium]]></description>
        <link>https://medium.com/@atharva.deore20?source=rss-1d1d12118548------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*uRai8GRUgUB2_KIK</url>
            <title>Stories by Atharva Deore on Medium</title>
            <link>https://medium.com/@atharva.deore20?source=rss-1d1d12118548------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 10:44:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@atharva.deore20/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How Signal Processing Drives Satellites]]></title>
            <link>https://medium.com/@atharva.deore20/how-signal-processing-drives-satellites-bce0588d6185?source=rss-1d1d12118548------2</link>
            <guid isPermaLink="false">https://medium.com/p/bce0588d6185</guid>
            <dc:creator><![CDATA[Atharva Deore]]></dc:creator>
            <pubDate>Sat, 18 Jun 2022 04:18:13 GMT</pubDate>
            <atom:updated>2022-06-18T04:18:13.583Z</atom:updated>
            <content:encoded><![CDATA[<p>For vehicles sent into space, signaling and signal processing have become commonplace. Signal-processing circuitry pervades both the payload, which is built for a specific task, and the supporting subsystems-the bus-that keep it running.</p><p>Satellite payloads typically address communication, remote sensing, meteorological functions, and Global Positioning Systems, while primary bus systems include structural, thermal, propulsion, power, tracking, telemetry and command (TTC), and the attitude and orbit control system (AOCS).</p><p>RF and microwave circuits are commonly seen in communication payloads. In recent years, however, there has been a tendency toward adopting on-board processing. TTC uses mixed-signal components such as telemetry encoders and digital demodulators, whereas AOCS uses primarily analogue signal chains with inertial sensors, pressure sensors, and other sorts. The signal chains for meteorological payloads are similar to remote sensing signal chains, except they have lesser resolution and operate at slower rates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*ispmA3DIDy04EgXRcEDjdg.png" /></figure><p>The ground control station and the satellite are linked by the TTC subsystem. It accepts commands for spacecraft operation control and transmits satellite health data to the control station. This system includes the signal chain for the telemetry encoder.</p><p>Many parameters of the spacecraft hardware are sent to the ground as part of the health monitoring. They include voltages and currents from the power source, temperature at various locations, fuel tank pressure, circuit block on/off state, and payload operating characteristics. This data is sent through the spacecraft communication system as a PCM telemetry stream. The telemetry encoder’s job is to collect all of this data and turn it into a PCM stream.</p><p>The majority of contemporary TTC RF transponders employ analogue technology. The on-board frequency and phase error between the uplink and downlink carriers should be kept to a minimum to guarantee accurate two-way Doppler measurements based on frequency shifts between broadcast and received signals. This necessitates a “long loop” architecture, in which the Doppler frequency error is adjusted at each frequency converter stage. This design necessitates an expensive and time-consuming tuning process, and it is prone to drift during operation.</p><p>Many components of demodulation, modulation, and frequency creation are implemented in the digital domain to overcome these issues and obtain higher-range accuracy. Designing a digital demodulator using standard digital radio technology is one option.</p><p>The uplink signal bandwidth rarely surpasses 50 kHz. As a result, the typical under sampling technique used in digital radio can be used for demodulation. The entering RF signal is transformed to an Intermediate Frequency that is acceptable for the application. The IF output is then digitized with a high-resolution analog/digital converter. The output of the A/D converter is fed into a DSP, which recovers the baseband signal via a D/A converter. It can also generate the digital command word directly via FSK demodulation. Through a suitable D/A converter, another DSP output feeds back automatic gain adjustment and automatic frequency control.</p><p>Under sampling is used by the A/D converter. As a result, the analogue portion must have a frequency response that is greater than the Nyquist frequency. A minimum signal-to-noise ratio of 65 to 70 dB is also required. A/D converters with a resolution of less than 12 bits are ruled out.</p><p>A normal telemetry channel works at a bit rate of 1 to 10 kbits/s, with rare situations reaching 1 Mbits/s, requiring an A/D conversion speed of one conversion per 800 microseconds for an 8-bit resolution. The output of the A/D converter is multiplexed with other digital telemetry data and sent to the on-board data-handling system for storage, processing, or transmission.</p><p>A low crosstalk specification is the most essential selection requirement for the multiplexer. The dynamic range of an A/D converter is typically -5 V to +5 V to allow for the monitoring of negative signal levels. Because the conversion speed does not need to be exceedingly fast, successive-approximation A/D converters offer a favorable price-performance ratio.</p><h3><strong>How satellites work</strong></h3><p>A satellite is actually a self-contained communications device which will receive messages from Earth and retransmit them employing a transponder — a radio emission receiver and transmitter that’s incorporated into the satellite. For its expected operational lifetime of up to twenty years, a satellite must resist the shock of being driven up to an orbital velocity of 28,100 kilometers (17,500 miles) per hour during launch, similarly as a hostile space environment where it is exposed to radiation and high temperatures. Furthermore, satellites must be light because the price of launching a satellite is looking on its weight. Satellites must be tiny, lightweight, and resilient so as to satisfy these challenges. They must operate with greater than 99.9% reliability in the vacuum of space, with no possibility of maintenance or repair.</p><p>The communications system, which incorporates the antennas and transponders that receive and retransmit signals, the ability system, which incorporates the solar panels that provide power, and therefore the system, which has the rockets that propel the satellite, are the three main components of a satellite. To arrive to the proper orbital location and make periodic modifications thereto position, a satellite has its own propulsion engine. due to the gravitational influence of the Moon and Sun, a satellite in geosynchronous orbit might wander up to a degree from its original location once a year, from north to south or east to west. The thrusters on a satellite are accustomed make minor modifications to its position. “Station keeping” refers to the maintenance of a satellite’s orbital location, whereas “attitude control” refers to the corrections made with the satellite’s thrusters. The amount of fuel used to power these thrusters determines a satellite’s lifespan. When the satellite’s fuel runs out, it wanders into space and ceases to function, becoming space junk.</p><p>A satellite in orbit should operate constantly for the period of its life. To run its electronic systems and communications payload, it needs internal power. daylight is that the primary supply of energy, that is captured by the satellite’s star panels. once the Sun is obscured by Earth, a satellite has batteries on board to provide power. once there’s daylight, the additional electricity created by the star panels is employed to recharge the batteries.</p><p>Satellites operate in extreme temperatures ranging from -150°C (238°F) to 150°C (300°F), and they may be subjected to radiation in space. Satellite components that may be exposed to radiation are shielded with aluminum and other radiation-resistant materials. A satellite’s thermal system safeguards its delicate electrical and mechanical components by ensuring that they are kept at their ideal operating temperature to ensure continuous operation. A satellite’s thermal system also protects sensitive satellite components from extreme temperature changes by triggering cooling mechanisms when the temperature climbs too high or heating systems when the temperature goes too low.</p><p>A satellite’s tracking telemetry and control (TT&amp;C) system is a two-way communication link between the satellite and ground-based TT&amp;C. This enables a ground station to track the position of a satellite and operate its propulsion, thermal, and other systems. It can also keep track of a satellite’s temperature, electrical voltages, and other vital factors.</p><p>Communication satellites range in size from microsatellites weighing less than 1 kg (2.2 pounds) to enormous spacecraft weighing more than 6,500 tons (14,000 pounds). Because of advancements in shrinking and digitalization, satellite capacity has increased considerably over time. Due to the fact that Early Bird only had one transponder, it could only broadcast one television channel. The Boeing 702 series of satellites, on the other hand, can contain more than 100 transponders, each of which can have up to 16 channels, allowing for more than 1,600 TV channels from a single satellite thanks to digital compression technology.</p><p>Low Earth orbit (LEO), medium Earth orbit (MEO), and geostationary or geosynchronous orbit (GEO) are the three orbits in which satellites operate (GEO). LEO satellites orbit the Earth at a height of 160 to 1,600 kilometers (100 to 1,000 miles). MEO satellites orbit Earth at a distance of 10,000 to 20,000 kilometers (6,300 to 12,500 miles). (The unfriendly environment for electronic components in that area, created by the Van Allen radiation belt, prevents satellites from operating between LEO and MEO.) GEO satellites orbit Earth at a height of 35,786 kilometers (22,236 miles), completing one orbit every 24 hours and so remaining fixed over the same location. As previously stated, it only needs three GEO satellites to offer worldwide coverage, whereas it takes 20 or more LEO satellites and ten or more MEO satellites to cover the entire Earth. Furthermore, interacting with satellites in LEO and MEO necessitates the use of ground-based tracking antennas to provide a smooth link between satellites.</p><p>A signal bounced off a GEO satellite travels at the speed of light from Earth to the satellite and back in around 0.22 seconds. Applications such as voice services and mobile phones are hampered by this latency. As a result, most mobile and voice services rely on LEO or MEO satellites to minimize signal delays caused by GEO satellites’ intrinsic latency. Because of the broader region on the ground that GEO satellites can cover, they are typically employed for broadcasting and data applications.</p><p>A powerful multistage rocket is needed to launch a satellite into space and propel it into the proper orbit. Satellites are launched from places such as the Kennedy Space Centre in Florida, the Baikonur Cosmodrome in Kazakhstan, Kourou in French Guiana, Vandenberg Air Force Base in California, Xichang in China, and Tanegashima Island in Japan using proprietary rockets.</p><p>To broadcast and receive signals, satellite communications use the very high-frequency range of 1–50 gigahertz (GHz; 1 gigahertz = 1,000,000,000 hertz). L-, S-, C-, X-, Ku-, Ka-, and V-bands are the frequency ranges or bands that are identified by letters (in order from low to high frequency). Signals in the lower range of the satellite frequency spectrum (L-, S-, and C-bands) are sent with low power, necessitating the use of larger antennas to receive them. Signals in the higher end of the spectrum (X-, Ku-, Ka-, and V-bands) have more power, thus they can be received by dishes as small as 45 cm (18 inches) in diameter. The Ku-band and Ka-band spectrum are therefore perfect for DTH broadcasting, broadband data communications, and mobile phone and data applications.</p><p>Satellite communications are governed by the International Telecommunication Union (ITU), a United Nations specialized agency. The International Telecommunications Union (ITU), situated in Geneva, Switzerland, receives and approves applications for satellite orbital slots. The World Radiocommunication Conference, held every two to four years by the ITU, is in charge of assigning frequencies to various applications in various parts of the world. These laws are enforced by each country’s telecommunications regulatory agency, which also grants licenses to users of various frequencies. The Federal Communications Commission is the regulatory agency in charge of frequency allocation and licensing in the United States.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bce0588d6185" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kali Linux Installation Guide]]></title>
            <link>https://medium.com/@atharva.deore20/kali-linux-installation-guide-64424d853cea?source=rss-1d1d12118548------2</link>
            <guid isPermaLink="false">https://medium.com/p/64424d853cea</guid>
            <category><![CDATA[kali-linux]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[web-hacking]]></category>
            <dc:creator><![CDATA[Atharva Deore]]></dc:creator>
            <pubDate>Tue, 24 May 2022 13:15:48 GMT</pubDate>
            <atom:updated>2022-05-24T13:15:48.591Z</atom:updated>
            <content:encoded><![CDATA[<p>Kali Linux (previously Back Track Linux) is a Debian-based open-source Linux distribution designed for advanced penetration testing and security auditing. Kali Linux has a large number of tools for various data security activities, including penetration testing, security research, computer forensics, and reverse engineering.<br> Kali Linux is a multi-platform solution that information security experts and hobbyists can use for free.<br> On March 13th, 2013, Kali Linux was published as a complete, top-to-bottom rebuild of Back Track Linux, according to Debian development guidelines.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/298/1*07kgsory97Px9GeaIi_Rjw.jpeg" /></figure><p>Kali Linux</p><p>Hackers use Kali Linux because it is a free operating system with over 600 tools for penetration testing and security analytics. Kali is based on an open-source structure, with all code available on Git. Kali offers multi-language support, allowing users to work in their preferred language. Kali Linux is completely customizable, all the way down to the kernel, to fill client needs.</p><p>Now talking about installation of Kali Linux your machine must meet some basic requirements as followed</p><p>2 GB of RAM</p><p>20 GB of disk space</p><p>32 or 64 bit CPU (single core) with 2 GHz speed or better</p><p>High definition graphics card and monitor</p><p>Broadband internet connection</p><p>If your system satisfies the required criteria, we are ready to begin the installation procedure.</p><h3>Types of installation</h3><p>1. Kali Linux installation inside Virtual Box</p><p>2. Kali Linux installation inside VMware</p><p>3. ZSecurity Kali Linux installation inside VMware</p><p>In this blog, we will be looking at the first installation method only. We’ll go over the second and third methods in separate blogs.</p><p>VMware is virtualization software that helps you to run multiple operating systems in a single host and VirtualBox is <strong>an Oracle tool to provide host-based </strong>virtualization.</p><h3>1. Kali Linux installation inside Virtual Box</h3><p>First we will go through the procedure of installing Virtual Box</p><h4>Installing Virtual Box</h4><h4>Step 1</h4><p>First download the setup file for Virtual box from the official website of Virtual box . The link is mentioned below</p><p><a href="https://www.virtualbox.org/wiki/Downloads"><strong>Downloads — Oracle VM VirtualBox</strong><br> <em>Here you will find links to VirtualBox binaries and its source code. By downloading, you agree to the terms and…</em>www.virtualbox.org</a></p><p>Download the following file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*NNZJms1sylEbJrQ5DyQnTA.png" /></figure><h4>Step 2</h4><p>After the exe file is downloaded open the same.</p><p>The following screen will be displayed. Click on next</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/617/1*9y59padAMD9RZbdwH4uXyQ.png" /></figure><h4>Step 3</h4><p>After that it will show the location where Virtual Box will be installed</p><p>So if you don’t have a good reason to change the path let it be Default and click on Next</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*tHH5eabLH0ty0gbsWFOPRQ.png" /></figure><h4>Step 4</h4><p>Check all the check box and then click on Next</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*qGXdj5kqUQp-Fp8pP2ummg.png" /></figure><h4>Step 5</h4><p>As we will be installing a virtual machine it will also require network.</p><p>So for the Network configurations it will show us some warnings. Click on Yes</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*s_em8mViVFOnuuUP17O50Q.png" /></figure><h4>Step 6</h4><p>So now we are good to go for the installation. Click on Install</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*VcqIfnNNoGuUA8uEyQiXmw.png" /></figure><h4>Step 7</h4><p>It will show us a warning but just click on Install and proceed</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/653/1*sZ_2oDbP8htNQ58X2S5PJg.png" /></figure><h4>Step 8</h4><p>And we are done with the installation. Just click on Finish and Virtual Box will be launched.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/617/1*NXYR13SZ-X8Re6p4vNxjrw.png" /></figure><p>For the time being, we’ve completed the Virtual Box installation. It was a fairly simple method, and now we will go to the Kali Linux installation procedure within the same. It will be a little lengthy procedure, but we will see all of the processes clearly.</p><h4>Installing Kali Linux</h4><h4>Step 1</h4><p>Firstly download Kali Linux iso file from the downloads section of Kali Linux website as follows. Download the Virtual Box file present at the right</p><p><a href="https://www.kali.org/get-kali/#kali-virtual-machines"><strong>Get Kali | Kali Linux</strong><br> <em>A Kali Linux Live image on a CD/DVD/USB/PXE can allow you to have access to a full bare metal Kali install without…</em>www.kali.org</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/987/1*I-ReEsq0eWvvg9RCZdt4PQ.png" /></figure><h4>Step 2</h4><p>Open the Virtual Box and click on the New option on the Upper Right corner</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h_8zAH7erJfmL5B3Vc-mFA.png" /></figure><h4>Step 3</h4><p>Select the following options and Click on Next.</p><p>Under the Name section you can give any Name to the machine you want.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*zhNsJH2xqZOTq7c_Iu7ygg.png" /></figure><h4>Step 4</h4><p>Select the amount of RAM you want to allocate to your Kali machine. Make sure that you allocate a minimum 2 GB of RAM for smooth functioning of you machine</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*Yz-1QqY4vIYeEinaO0JOtg.png" /></figure><h4>Step 5</h4><p>Continue by selecting the mentioned options</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*IX0qBBP05AXL0t_jNAdTGw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*WdNKQbO_1i6d8_6KtWow6w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*aw7jmK70-i2sdbzpBQ2HNQ.png" /></figure><p>These steps were only for allocating storage to our machine.</p><h4>Step 6</h4><p>Now we are done creating a virtual machine. The following window must appear in front of you when you open Virtual Box now</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yiDnXY733EKzZCL0uRaU3A.png" /></figure><p>Now we will install Kali Linux Inside this virtual machine that we had created just now.</p><p>Click on the settings section inside the Virtual Machine which we had created just now.</p><h4>Step 7</h4><p>Now under the General section change the Share Clipboard and Drag’n’Drop options to Bidirectional. This will allow us to exchange files easily between our Host machine and virtual Kali Linux Machine</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*9BGk7gVARC_H918DlE3HSA.png" /></figure><h4>Step 8</h4><p>Now in the Storage section under Controller IDE select empty and then click on the blue DVD at the left most corner as shown</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*Bue8PTHWRp615zJ5DYrAlw.png" /></figure><h4>Step 9</h4><p>This will redirect you to your Host machine. Here you will have to select the iso file which you had downloaded from the Kali Linux website earlier</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*aT74WCHXEPz85cTH8QOA0w.png" /></figure><p>Selecting the downloaded iso file</p><h4>Step 10</h4><p>And done we have successfully installed Kali Linux inside Virtual Box. Now click on start and our Kali Machine will boot</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yiDnXY733EKzZCL0uRaU3A.png" /></figure><p>Powering on our Kali Machine</p><p>Now that we’ve finished installing Kali Linux, we’ll set it up like any other operating system.</p><h4>Setting Up Kali Linux</h4><h4>Step 1</h4><p>Select the graphical installation option after you power on the machine</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*N4_cWBezjx2JHygm4eApbQ.png" /></figure><h4>Step 2</h4><p>As indicated, choose your installation language, location, and keyboard type.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*p8B7sTQL1Q_Z_GlAigXFoA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*mrldJxTpidz-F4WOoivKeQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*DYABHqcYJn_gLuML08RAHw.png" /><figcaption>Selecting Language, location and Keyboard for the Kali machine</figcaption></figure><h4>Step 3</h4><p>Enter the name of the machine’s host.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/761/1*6hlAsqp6dfJ00xsawzjx_A.png" /></figure><h4>Step 5</h4><p>Create User Name and password of your own.</p><p>Make a note of this password, since it will enable you in logging into the system each time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*LHsd75UgVaFQFc-PU01A5w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/1*qJCDzgAqMPLTO2NtZOtXdw.png" /></figure><h4>Step 6</h4><p>There are a few additional steps to disc partitioning and storage management after that. Continue with the option you’ve been given.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*awdJdky4iLEPZHgO6nALiw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/1*QArsBq92UX7fW_Ym8xa3Dw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/1*DUAHwajYHDNzkhzYxzhSjA.png" /></figure><h4>Step 7</h4><p>Installing basic required software for Kali Linux. Click on continue</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*EgL7hikMgyaimmur-x5paQ.png" /></figure><h4>Step 8</h4><p>Configuring some more settings. Select the options as in image and click on continue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*dktF-YJEA_SCwd_rHTd_kA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*6AFrfhYvvP93yvcYRrAO5A.png" /></figure><h4>Step 10</h4><p>So now we are done with the installation. Click on continue and just restart your Virtual Box and start the Kali Machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*nh5xHZ40TodBqDgYdSz27w.png" /></figure><h4>Step 11</h4><p>Login with your Username and password that you had created during the installation process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gXJKaaywVkfRRMVSoGR5Ww.png" /></figure><p>We had successfully completed installing Kali Linux in Virtual Box</p><p>This completed the installation of Kali Linux in Virtual Box. It was a long process, but I hope you understand everything and are now able to use Kali Linux.</p><h4>To install Kali Linux in VMware, follow the steps on the blog.</h4><p><a href="https://medium.com/@chaitanya.landge20/kali-linux-in-vmware-8098d4792386"><strong>Medium</strong><br> Kali Linux in VMware Workstation</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64424d853cea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Gaining Access -Client Side Attacks]]></title>
            <link>https://medium.com/@atharva.deore20/gaining-access-client-side-attacks-75f77a611250?source=rss-1d1d12118548------2</link>
            <guid isPermaLink="false">https://medium.com/p/75f77a611250</guid>
            <category><![CDATA[web-hacking]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[kali-linux]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[Atharva Deore]]></dc:creator>
            <pubDate>Tue, 24 May 2022 13:12:14 GMT</pubDate>
            <atom:updated>2022-05-24T15:27:45.940Z</atom:updated>
            <content:encoded><![CDATA[<h3>1. Introduction to Client Side Attacks</h3><p>When a user downloads malicious material, a client-side attack occurs. Client-side attacks differ from server-side attacks in that they start with the victim downloading material from the attacker.</p><p>Organizations that provide Internet access face a difficult time mitigating client-side at- tacks. Word processing software, spreadsheets, video players, and Web browsers are examples of clients. Inbound firewalls are significantly more restrictive than outbound firewalls; they were meant to ”keep the bad guys out” and reduce server-side assaults from untrusted networks. Client-side attacks are frequently overlooked.</p><h3>2. Installing VEIL Framework</h3><h3>2.1 VEIL Introduction</h3><p>Veil is a tool designed to generate Metasploit payloads that bypass common anti-virus solutions. It replaces the package veil-evasion.</p><h3>2.2 VEIL-EVASION</h3><p>Veil-Evasion is a tool to generate payload executable that bypass common antivirus solutions. Veil-Evasion’s code is located at h<a href="http://www.github.com/Veil-Framework/Veil-">ttps://www.github.com/V</a>eil-F<a href="http://www.github.com/Veil-Framework/Veil-">ramework/Veil-</a> Evasion/ and it’s a part of the Veil super project at <a href="https://github.com/Veil-Framework/Veil">https://github.com/Veil-Framework/Veil</a> which is used by most of the users who clone and install it.</p><h3>2.3 Installing VEIL</h3><ol><li>Download the VEIL installation script.</li></ol><p>2. Then get to directory where you have downloaded using terminal.</p><p>3.Then give executable permissions to VEIL using ”chmod +x” command.</p><p>4.You will see the file name in green which means it is an executable file.</p><p>5.Then you can install the file by ”./install-veil”.</p><p>6. Now wait for the program to install.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*SMKthTnVeBNoNKxVokrQaw.png" /><figcaption>Figure 1: Download the VEIL installation script.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*NFseJigVAIcMf22YksR0PQ.png" /><figcaption>Figure 2: Open the directory where you have downloaded the file.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*xiiUFj8RgrdarktwAeTdzg.png" /><figcaption>Figure 3: Giving executable permissions to VEIL.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*-yYgCwtTwRP2asj3TEND8g.png" /><figcaption>Figure 4: Installing the executable file.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*1yLLhqy3ureQnglHo05FzQ.png" /><figcaption>Figure 5: VEIL Framework.</figcaption></figure><h3>3. VEIL overview and Payload Basics</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*yTR_fmZzgMoKeN84dzxZyQ.png" /><figcaption>Figure 6: Now we have VEIL loaded it shows us the main commands.</figcaption></figure><ol><li>exit</li><li>info</li><li>list</li><li>update</li><li>use</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*Mh-zbqLjhfqCEa-m4wy5_A.png" /><figcaption>Figure 7: VEIL has 2 main tools if we use list we are able to see them.</figcaption></figure><p>Evasion- It generates undetectable back doors for us.<br>Ordnance- This tool generates the pay loads that are used by Evasion.<br>Payload -A payload is malware that the malicious actors aims to send to the victim. If a cybercriminal sends an email with a malicious Macro attachment and the recipient gets infected with ransomware, the ransomware is the payload (and not the email or document).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*dy251h0dk6abDKhTCtPUig.png" /><figcaption>Figure 8: For using Veil Evasion we use command ”use 1”.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*JeEcIzDv_JjEhoCUDkNCOA.png" /><figcaption>Figure 9: We use list command to see all the available payloads.</figcaption></figure><p>The programming language in which the payload will be wrapped is the first part of the payload’s name. The languages used in the previous screenshot include CS, Python, GO, C, PowerShell, and Ruby.</p><p>The second part of the payload is the type of payload. In other words, the type of code that is going to be executed on the target network.<br>Example — Meterpreter<br>Metasploit developed a payload called Meterpreter. Metasploit is a large framework that is sometimes used for hacking. Meterpreter is difficult to detect since it operates in memory and has a small footprint. We can acquire complete control over a target computer using Meterpreter. We may use it to traverse the file system, install and download things, and much more.</p><p>The method that will be used to establish the payload’s connection is the third com- ponent of its name.<br>Example — rev https<br>The protocol that will be used to create the connection is rev https, where rev refers for reverse and https stands for https.<br>The target machine connects to the attacker’s system through a backdoor via a reverse connection. Because the connection is not directed at the victim machine, but rather at the attacker, antivirus applications are bypassed.</p><h3>4. Generating an Undetectable Backdoor using VEIL</h3><p>We will generate backdoor with the help of VEIL. We’ll execute the list command first, then type the use 1 command since we want to use Evasion. Now hit Enter. Because we want to use the 15Th payload, we’ll use the use 15 command-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*HWXAENYJ0p0X1GXgzz9BfQ.png" /></figure><p>Now we’ll use the following parameters to alter the payload’s IP LHOST to the Kali machine’s IP address.<br>To obtain the IP address of the Kali system, we must use the ifconfig command. We’ll now split the screen horizontally by right-clicking and choosing Split Horizontally, then running the command. The IP address of the Kali system is 10.0.2.15, which is the ad- dress to which we want the target computer’s connection to return after the backdoor has been executed -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*bkCTs1TYODjegdjdUcHwHg.png" /></figure><p>To change LHOST to 10.0.2.15, use the set command followed by the parameters we wish to alter, as shown below -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*uNjtvmuQiJnFqsSWtVD9-g.png" /></figure><p>LPORT must now be changed to 8080. Because web servers utilise this port, we won’t seem suspicious and should be able to get beyond the firewall. Now we’ll use the set LPORT 8080 command to set the right port, as illustrated in the following screenshot -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*N7auzfeW5WNkkp54hPR68A.png" /></figure><p>This procedure will bypass any antivirus software except AVG. Antivirus software re- lies on a vast database of signatures to function. These signatures correspond to files that contain hazardous code, thus our file will be labelled as a virus or malware if it matches any value in a database. That is why we must ensure that our backdoor is as distinctive as possible in order to avoid detection by antivirus software. Veil tries hard to hide the backdoor by encrypting it, obfuscating it, and injecting it into memory, but this doesn’t work with AVG.<br>We need to change the minimum number of processors used by AVG to ensure our back- door can bypass it. It is set to 1 in this scenario. To do so, type the following command-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*9xJu1fxS1EH9gN_a5FZZ0Q.png" /></figure><p>We’re going to change the SLEEP option, which controls how long a backdoor waits before executing the payload. We must wait 6 seconds in the following scenario -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*KwsCqzr23HFQHkk2ZsZHwQ.png" /></figure><p>The following screenshot shows the modifications -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*2gT5wZPXohg0ZN10nSx3Yw.png" /></figure><p>Now we’ll use the generate command to create the backdoor, as shown -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*pHWbkG9igQV-Y6sVntJNiQ.png" /></figure><p>rev https 8080 will now be the name of our backdoor. The following image is what we see when a backdoor is created. This covers the back door’s modules and where they are stored -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*knujbFtq9b6shmXbZtEr7Q.png" /></figure><p>To test our backdoor, we’ll use the website NoDistribute instead of Veil’s checkvt com- mand, which isn’t always correct, and VirusTotal, which shares its results with antivirus software, as seen in the screenshot -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/833/1*2AFB1_nN8bnKAQrkkFuhZg.png" /></figure><p>Now, we’ll choose Browse, and go to our file in /usr/share/veil-output/compiled, as seen below -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*0ZLDQklSmfmFUsFhtXX1Bw.png" /></figure><p>As demonstrated in the accompanying screenshot, the file we uploaded has success- fully evaded all antivirus applications when we clicked Scan File.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*dGHsF7H54VPOuzYTHRw_-w.png" /></figure><h3>5. Listening For Incoming Connections</h3><p>A reverse payload is used in the backdoor we constructed. To use the reverse payload, we must first open a port on our Kali machine for the target machine to connect to. We set the port to 8080 when we constructed the backdoor, so we’ll need to open it on our Kali system. The name of our selected payload in this case is meterpreter/rev https.<br>Now, we’ll use the Metasploit framework to divide our screen and wait for incoming connections. To execute Metasploit, we’ll use the msfconsole command, which should provide something similar to the following screenshot -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*fiilhumI3SNT5oZp_xueWg.png" /></figure><p>We’ll need to use Metasploit’s exploit/multi/handler module to wait for an incoming connection. To start that module, type the following command -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*jr_cMJAKIuy-wpv-gGimqA.png" /></figure><p>Navigate to the exploit/multi/handler module after running this command. The pay- load is the most crucial item to specify in this module, which we do with the set command. Set the payload to windows/meterpreter/reverse https with the following command -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*HEnFyvB0DMIGp8e2DwrgUg.png" /></figure><p>We’ll now use the show options command to determine if the payload has changed to windows/meterpreter/reverse https, as shown in the picture below -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/833/1*aAGoW4MNqaQqq1z-Y1D_mg.png" /></figure><p>We are going to set the LHOST to the IP address of our Kali machine using the following command -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*DrDE5Zc5B36eT7Kss081IA.png" /></figure><p>Before we go further, we’ll double-check that our payload, host, and port are all set to the identical values as the ones created by the backdoor, as seen below -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*LveXIHTOavQVrO5eOTUugg.png" /></figure><p>All we have to do now is run the exploit command. As indicated in the picture, Metasploit is now waiting for a connection on port 8080 and our IP address, which is 10.0.2.15. We’ll be able to control the target machine once we’ve established a connection -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*1gFKi2lwtnO3db9ZHj-tsw.png" /></figure><h3>6. Using A Basic Delivery Method To Test The Backdoor</h3><p>We’ll now test that our backdoor is functioning properly. To do this, we will host our backdoor on our web server and download it from the target Windows computer. We’re simply going to use this method to test our backdoor.<br>We’ll put our backdoor online and download it from the target computer because we know the Kali machine can be used as a website. As seen in the picture, we’ll save this download in a folder named evil-files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*uD_y6JCVk8daFUHA0WuJfg.png" /></figure><p>Now we must copy and paste the backdoor we established using Veil-Evasion, which is located in var/lib/veil-evasion/output/compiled/, into the evil-files directory. That concludes the discussion. Kali is where we can get the file.</p><p>To start the website or web server, input the following command in terminal -</p><p>The command here is service, and the web server’s name is apach2. Now we’ll press Enter to run the command we just typed.</p><p>Now we’ll go to the Windows Machine and browse to our Kali machine’s IP address, which is 10.0.2.15. This should open the index.html file we made earlier. It indicates that our web server is operational, as demonstrated below-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*_qHsAkG2vapifD5CkiLoxw.png" /></figure><p>We can go to the backdoor directory by typing 10.0.2.15/evil-files and pressing Enter. Then, as demonstrated in the following picture, we may download and run the backdoor -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*pRdLxwN-bvxBgFOhNFQf9w.png" /></figure><p>Our Kali machine will tell us that we have got a connection from the target computer now that we have executed the backdoor on the Windows machine, as demonstrated in the following screenshot -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*3u2M4USUt_2YMYFnAY7x4g.png" /></figure><p>We now have complete control over the Windows machine. We have a Meterpreter session, as seen in the above screenshot, which allows us to perform whatever that the legitimate user of that machine can do.<br>The sysinfo command can be used to verify that the backdoor is functioning. As seen in the next image, we are inside the MSEDGEWIN10 system, which is running Windows 10 (Build 17134), has an x64 architecture, utilizes the eng US language, and Meterpreter x86 for Windows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*dNeYqXALWVwszW9YeZq8Og.png" /></figure><p>We’ve basically hacked our target PC now.</p><h3>7. Fake bdm1 Update</h3><p>We now have an undetected backdoor, but we have yet to figure out how to transmit it to the target machine in a timely manner. In real life, if we ask the target to down- load and run an executable, it is unlikely to do so, thus we’re looking at ways to make the user want to download and install the executable on their system by faking an update.</p><p>Until we’re in the middle of a connection, this situation will function. When routing traf- fic via a mobile phone, implementing a man-in-the-middle attack, or using a fake network.</p><p>We’ll study DNS spoofing using ARP poisoning. This indicates that we are connected to the target machine’s network. The network in our scenario is wired. To create the fake updates, we’ll use a program named Evilgrade to act as a server. The following URL will allow us to get Evilgrade: <a href="https://github.com/PacktPublishing/Fundamentals-">https://github.com/PacktPublishing/Fundamentals-</a> of-Ethical-Hacking-from-Scratch</p><p>After we’ve downloaded and ran the evilgrade command, we’ll use the display modules command to see a list of applications that we can hijack updates for, as shown in the picture below-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/235/1*_bTh2r9ZWzQZQ4948zW58w.png" /></figure><p>There are 67 programs in the picture above that potentially hijack updates, including several well-known ones as Nokia, Safari, Google, Analytics, and Download Accelerator Plus, which we’ll use in this example.<br>To use the DAP Module, we’ll now execute the configure dap command. Then, as seen in the accompanying picture, we’ll use the show options command to display all of the configurable options.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*SbuRELB4V4LefSfjruG29w.png" /></figure><p>We’ll focus on the agent in the above screenshot, so replace the./agent/agent.exe path with the application path that will be deployed as an update. In our instance, the update is to install a backdoor.<br>We use a reverse http payload in the Generating a Veil backdoor part, which does not function with DAP. But here we’ll use a new backdoor called backdoor.exe, which uses a reverse http payload.<br>Now, instead of an update, we’ll change the agent to run our backdoor, as seen in the following command -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*wiXDf0mI2Se57I4VvQakWw.png" /></figure><p>The path in the command will be replaced with the path of the reverse http backdoor. Then, as seen in the following image, we’ll execute the display options command to make sure everything is set up correctly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/943/1*Khj-82N2WrCPF6bp9D6dTA.png" /></figure><p>We can also set any other parameters we want. We just type the name of the set option followed by its value.<br>If this website does not operate in the future, or if it displays an error on the tar- get computer, we will replace it with any website we like. It will be changed to up- date.speedbit.com.</p><p>When everything is ready, we’ll use the start command to start the server, as seen in the picture below -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ikfyXPO7mJEkxhoP3rAcZw.png" /></figure><p>Now, whenever Evilgrade receives an update request, it will inform the person making the request that a backdoor update is available. To do this, we must redirect all requests from the website update.speedbit.com to Evilgrade.<br>The DNS spoofing technique will be used to make this move. We can fake any requests from update.speedbit.com to Evilgrade using this method (and our own IP address).<br>With the leafpad /etc/mitmf/mitmf.conf command, we can now access the mitmf.conf file in Leafpad. Then, to prevent a conflict with Evilgrade, we’ll modify the DNS server’s port to 5353, as shown in the picture below -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*DP-MVVUS8ZPwOkP0lJ5CfQ.png" /></figure><p>Looking at our A records, we can see that all requests to update.speedbit.com are now being forwarded to 10.0.2.15, our own IP address, which Evilgrade is operating on.<br>Now, we are going to run the MITMF using the following command -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*HaiLA78BgHbGkGpcJLwcIw.png" /></figure><p>Enter the code. DNS spoofing is finished. Now that Evilgrade is up and running, you may download and run our backdoor from update.speedbit.com-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*_A4SNhIpO5TQ2LiYv59Dvg.png" /></figure><p>Change the parameters on the msfconsole Terminal to listen for connections. To do so, we’ll use the exploit/multi/handler module, with the payload set to windows/meterpreter/reverse http, the LHOST set to 10.0.2.15, our Kali machine’s IP, and the LPORT set to 8080, as seen in the screenshot -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*nUZ2on8P1FyWcwPr07KcHA.png" /></figure><p>To recap, the target program will use update.speedbit.com to check for updates, which will redirect to the IP addresses where Evilgrade is executing.<br>Now we must check the target machine for DAP updates. The target computer in our case is a Windows machine. When we try to update the DAP app, a prompt should appear informing us that a critical update is necessary, as shown in the picture below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*KIDAvlS5C2kjabmF6ImsBA.png" /></figure><p>After the update has been downloaded and installed, we’ll use the sysinfo command on our Kali computer’s Meterpreter Terminal session to ensure that we have control over the target machine, as seen in the screenshot below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7skrUHV7Wpt4hFucxosYIA.png" /></figure><h3>8. Protecting against Delivery Methods</h3><p>We’ll learn how to protect ourselves against delivery techniques in this part. To prevent a man-in-the-middle attack and avoid networks we don’t know, we’ll use tools like XArp or a static ARP table. Another precaution is to guarantee that when downloading updates, we use HTTPs. This reduces the likelihood of downloading a fake update.</p><p>We’re going to learn about WinMD5, which is a handy tool. This application will no- tify us if the file’s signature or checksum has been changed in any manner, indicating that the file is not the original. To check, we’ll download and execute WinMD5, which allows us to compare a file’s signature and checksum. The file is secure if the signature and checksum values are the same. We may get WinMD5 from the following website: <a href="http://www.winmd5.com/">http://www.winmd5.com/</a></p><p>The highlighted part of the following screenshot indicates the tool’s signature-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0DlVX6RSMs2SekO5KyiGFw.png" /></figure><p>When we click Browse, the signature files will appear. In this example, we’ll choose the downloaded file for the tool itself. Now we’ll compare this signature to the signature on the website, and as you can see in the screenshot below, both signatures are identical. This indicates that the tool has not been altered since it was downloaded from the website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*BhovDTCnII0DZRwKP97Qpw.png" /></figure><p>Check out our other blogs:</p><p><a href="https://medium.com/@chaitanya.landge20/website-hacking-information-gathering-file-upload-code-execution-file-inclusion-2c5aa40c0d90">Website Hacking — Information Gathering, File Upload, Code Execution, File Inclusion</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75f77a611250" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Gaining Access-To Computers and Server Side Attacks]]></title>
            <link>https://medium.com/@atharva.deore20/gaining-access-to-computers-and-server-side-attacks-1a849484668b?source=rss-1d1d12118548------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a849484668b</guid>
            <category><![CDATA[kali-linux]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[web-hacking]]></category>
            <dc:creator><![CDATA[Atharva Deore]]></dc:creator>
            <pubDate>Tue, 24 May 2022 13:10:49 GMT</pubDate>
            <atom:updated>2022-05-24T15:25:55.740Z</atom:updated>
            <content:encoded><![CDATA[<h3>1. Gaining Access To Computers</h3><p>Gaining Access is the phase where an attacker obtains control over the target. Gaining access to a network or a web application is only the beginning. For lateral movement, maintaining access and post exploitation (elevating access and pivoting) are typically used.</p><h3>2. Introduction</h3><h3>2.1 Gaining Access Introduction</h3><p>A computer device can be a phone, a laptop, a television, a network, a router, a website, or a server. Each device has its own operating system, and the software is put on that operating system. We can set up a web server on our computer, we can make it look and act like a website, or even make it act like a TV, or for that matter, anything we want. TVs and all such things are just simple computers with less complicated hardware in them which can be accessed easily.</p><h3>2.2 Server Side</h3><p>User interaction is not required for a server-side attack. These attacks are applicable to web servers. They can even be used against a regular PC that people use on a daily basis. This attack primarily targets devices, applications, and web servers that are rarely used. They are configured by people and then operate automatically. If we just have an IP address, we can look how to test the security and gain access to that computer using that IP address. Buffer overflow, SQL injection, and denial-of-service assaults are examples of server-side attacks.</p><h3>2.3 Client Side</h3><p>The second approach of gaining access is the client-side attack, which requires the client who uses that computer to do something. This involves a number of things like opening a picture, opening a Trojan, or installing an update. In this case, information gathering is going to be crucial, because we need to know the person that we are targeting. The various type of client-side attacks includes session fixation, content spoofing, and cross-site scripting.</p><h3>3. Gaining Access : Server Side Attacks</h3><h3>3.1 Metasploitable</h3><p>Metasploitable, an intentionally vulnerable Ubuntu Linux virtual machine designed for testing common vulnerabilities, is the simplest approach to obtain a target system. This virtual machine (VM) works with VMWare, VirtualBox, and other common virtualization software.</p><h3>3.2 Installing Metasploitable As a Virtual Machine</h3><p>This section will show how to install Metasploitable.</p><p>1.Open the download link and click on Download.<br>2.Then unzip the downloaded file.<br>3. Open VMware and then click on “Open a Virtual Machine”.<br>4. Then Browse to the path where you have unzip-ed the Metasploitable file.<br>5. The User-Id and Password are “msfadmin”.Now you can start using Metasploitable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*LlDW6j3MqHB_yrU9pDfReA.png" /><figcaption>Figure 1: Download the file from website.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*RliMlvENyOFOyM1kUxvzSg.png" /><figcaption>Figure 2: Unzip the downloaded file.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*q-nLDFq1DfKtLc__UVkA5w.png" /><figcaption>Figure 3: Open VMware.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*f4ItJkprwxcTwOtf9Y3bQg.png" /><figcaption>Figure 4: Browse Metasploitable file from VMware.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*KbD123q2mFkM2MJ-L5ELLg.png" /><figcaption>Figure 5: Enter User-Id and Password and start using Metasploitable.</figcaption></figure><p>Link to download Metasploitable : <a href="https://sourceforge.net/projects/metasploitable/">https://sourceforge.net/projects/metasploitable/</a></p><h3>3.3 Introduction to Server-Side Attacks</h3><p>1.For any server side attack we need IP address.<br>2.It is very simple if target is on the same network (netdiscover or zenmap). <br>3.If target has a domain, then a simple ping will return its IP.<br>- &gt;ping <a href="http://www.facebook.com/">www.facebook.com</a><br>4.Getting the IP is trickier if the target is a personal computer, might be useless if the target is accessing the internet through a network as the IP will be the router IP and not the targets, client side attacks are more effective in this case as reverse connection can be used.</p><h3>3.4 Targeting Metasploitable machine.</h3><p>We can target Metasploitable machine by getting IP address by running ifconfig command. After we get the IP address we try to ping the Metasploitable machine by ping the IP address. If we get responses back from the machine then we can try and test its security. So you can use this attacks on any computer, server or device as long as you can ping them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*dCqMMpS83aDltR5OReu_Pw.png" /><figcaption>Figure 6: Getting IP address.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*wJXXeuHHsv227UjuIRbNJg.png" /><figcaption>Figure 7: Ping the IP address.</figcaption></figure><h3>3.5 Basic Information Gathering and Exploitation</h3><p>The process of gathering information on a potential target is known as an information- gathering mission in cybersecurity. This might be used for pen testing, network security monitoring, or other cybersecurity duties.</p><h3>3.6 What kind of information can we gather with Kali?</h3><p>The sort of information you gather depends on the target, their defenses, and your objective. You should also think about how much time you have to do the assignment. The following are some items to consider:<br>1.DNS records (what domains do they have? What subdomains exist?<br>2.IDS/IPS events (intrusion detection systems and intrusion prevention systems)<br>3.Network scanning (scanning for ports, MAC addresses and banner grabbing of a target’s systems)<br>4.Operating systems (can detect operating systems and serve exploits if it is vulnerable)<br>5.Routing (network configurations that can be found)<br>6. Ports (sometimes these are opened and can provide information about the server’s software or services it provides)<br>7. Users (find out who is logged in on a target system or what their account privileges are) <br>8.Systems information. Items such as SMB open network shares and running processes for user accounts with non-privileged access<br>9.SSL (are the systems or websites protected with secure sockets layer certificates)<br>10.VPN (are there VPNs running on the network and are they authorized?)<br>11. Voice over IP (Modern telephony uses this protocol to make voice calls. Are these protocols on their own VLAN? Can these packets be intercepted?<br>12. SNMP (are there any devices with SNMP running on them?)</p><h3>3.7 What tools can we use with Kali?</h3><ol><li>Nmap</li></ol><p>Security professionals may use Nmap to detect live hosts on a network and scan ports. This software is useful for a variety of purposes, including discovering open ports that are vulnerable to hacker attacks and determining the operating system in use so that vulnerabilities may be exploited.</p><p>2. Metasploit</p><p>When it comes to obtaining information, the Metasploit framework is a valuable tool for cybersecurity experts. It is distinct in that it is quite simple to use. It may be used to find vulnerabilities in networks and servers by both ethical hackers and cybercriminals.</p><p>3. Maltego</p><p>Maltego is a software that allows you to perform graph-based data mining, network analysis, and visualization. It may be used for things like creating IP ranges, mapping out domains, and discovering linked devices on your network.</p><p>4.Wireshark</p><p>Wireshark is one of the most well-known and widely used packet sniffing tools currently available. It is used to collect data from networks by cybersecurity professionals, network managers, and hackers. Wireshark catches and analyses network packets, which contain a lot of information.</p><p>5. Netcat</p><p>Netcat is a tool for establishing basic connections between hosts. Netcat may also be used with the TCP and UDP protocols to do tasks such as port scanning and building backdoor channels. If the right ports are set, it can read and write data.</p><h3>3.8 Hacking a Remote Server Using a Basic Metasploit Exploit</h3><p>1.Running Metasploitable by using “msfconsole” command on the terminal.<br>2.Then we use the “use” command along with the name of the exploit.<br>3. Then we use the “show option” command to see all the options.<br>4. Then we change the RHOST by using “set” command along with IP address of target Metasploitable machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*piFKoqHAK--P_pVvaXs55Q.png" /><figcaption>Figure 8: Using ”msfconsole to launch Metasploitable</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*Q4Prb-fpg4RQxVbze2hnCA.png" /><figcaption>Figure 9: Using the ”use” command.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*CmmvKIMiAcD5_oi-WMmYmw.png" /><figcaption>Figure 10: Using show options command.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*06l8B9J6tlkrXJQTv_JhxQ.png" /><figcaption>Figure 11: Changing the RHOST.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*T4Gv8Vg917qntiSzv21l5Q.png" /><figcaption>Figure 12: Using ”msfconsole” to launch Metasploitable</figcaption></figure><h3>4. Server Side Attacks Conclusion</h3><p>The general steps are always the same!<br>1.Discover open ports and running services. <br>2. Find Vulnerabilities.<br>3. Find exploits.<br>4. Exploit/Verify.<br>5. Report.</p><p>Check out our other blogs:</p><p><a href="https://medium.com/@atharva.deore20/gaining-access-client-side-attacks-75f77a611250">Gaining Access -Client Side Attacks</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a849484668b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linux Basics]]></title>
            <link>https://medium.com/@atharva.deore20/linux-basics-743ca439b6cc?source=rss-1d1d12118548------2</link>
            <guid isPermaLink="false">https://medium.com/p/743ca439b6cc</guid>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[kali-linux]]></category>
            <dc:creator><![CDATA[Atharva Deore]]></dc:creator>
            <pubDate>Tue, 24 May 2022 13:09:03 GMT</pubDate>
            <atom:updated>2022-05-24T15:22:46.008Z</atom:updated>
            <content:encoded><![CDATA[<h3>1. Linux Operating system</h3><p>Linux is an open-source operating system (OS). An operating system is the software that directly manages a system’s hardware and resources, like CPU, memory, and storage. The OS sits between applications and hardware and makes the connections between all of your software and the physical resources that do the work. Linux runs on Intel, Mac, Sun, Dec Alpha, and several other hardware platforms.</p><h3>2. Introduction</h3><p>How does Linux work?</p><p>Think about an OS like a car engine. An engine can run on its own, but it becomes a functional car when it’s connected with a transmission, axles, and wheels. Without the engine running properly, the rest of the car won’t work. Linux was designed to be similar to UNIX, but has evolved to run on a wide variety of hardware from phones to supercomputers. Every Linux-based OS involves the Linux kernel — which manages hard- ware resources — and a set of software packages that make up the rest of the operating system. The OS includes some common core components, like the GNU tools, among others. These tools give the user a way to manage the resources provided by the kernel, install additional software, configure performance and security settings, and more. All of these tools bundled together make up the functional operating system. Because Linux is an open-source OS, combinations of software can vary between Linux distributions.</p><h3>2.1 Why Linux?</h3><p>Linux can operate as a web, file, smb (WinNT), Novell, printer, ftp, mail, SQL, masquerading, firewall, and POP server to name but a few. It can act as a graphics, C, C++, Java, Perl, Python, SQL, audio, video, and documentation, development workstation etc. Linux is a good solution for developers that need a stable and reliable platform that has open-source code.<br>It’s not a good system for beginning developers that want a simple GUI interface to a programming language, although Linux has many GUI software development interfaces. Linux is ideal as a workstation also, and offers many customizable features not found in any other platform. It makes a good platform for dedicated workstations that have limited functions like in an educational or laboratory environment.<br>It’s may not be ideal as a workstation for beginning users who want an instantly customizable universal WYSIWYG interface. Other systems provide solutions for this need. Still, Linux becomes easier to use on a daily basis. It’s only a matter of time until Linux is accessible by everyone.</p><h3>2.2 Multi-User Operation</h3><p>In UNIX and Linux, all interactions with the OS are done through designated “users”, who each have an identification ID (login name) and a password. UNIX allows different users</p><p>to co-exist simultaneously and allows for different levels of users. The most powerful user is called superuser or “root”, and has access to all files and processes. The superuser does many of the system management tasks like adding regular users, file backups, system configuration etc. Common users accounts, which perform non-system type tasks, have restricted access to system-sensitive components to protect Linux from being accidentally or purposely damaged. In a moment you will enter a user account and start exploring the Linux file system.</p><h3>3. What is the Linux Command Line?</h3><p>The Linux terminal gives you an interface where you can input commands and see the result printed as text. You can use the terminal to accomplish tasks like moving files or navigating a directory, without the use of a GUI. Terminals just transfer information. You need a shell for the operating system to understand this information. With the Linux command line, you can execute commands manually by typing on the terminal. You can also automate commands using Shell Scripts.</p><h3>3.1 Brief History of Linux Command Line</h3><p>Since text is light on resources, users could interact quickly and efficiently. Every task the users performed was through this textual interface. To coordinate the execution of different programs, users would connect to single master programs.<br>The user commands were wrapped in “shell” programs. To make complex tasks easier, users could write shell scripts that automated a long series of shell commands.<br>Linux is a descendant of Unix. Its core part is designed to behave similarly to a Unix system. The Bourne Again Shell (BASH) was developed by Stephen Bourne and released in 1979 in the Version 7 Unix release. Over time, it has become the default shell for Linux systems.</p><h3>3.2 How to open a terminal</h3><p>This section will cover how to open the Linux terminal.</p><ol><li>Click on the show applications icon</li><li>Search for terminal, shell, command, or prompt.</li><li>Select the terminal icon to launch it.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/1*jlcJRrHqaH-PaIhljYZo9w.png" /><figcaption>Figure 1: Show applications icon</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*YcKpl45TZWriC54V6rCTGA.png" /><figcaption>Figure 2: Search for terminal.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*LimBZB1X28_YUZYyklez_g.png" /><figcaption>Figure 3: Launch Terminal.</figcaption></figure><h3><strong>4.How to navigate files</strong></h3><p>Now that you have seen the terminal, let’s try out a few basic commands. Commands are the instructions you give to your computer to do something.<br>Click the window to ensure your keystrokes go there. The odd text you see on the terminal is called prompt. It is the computer’s way of saying that it’s ready to accept a command.</p><h3>4.1 pwd</h3><p>When you launch the terminal, you are in the home directory of your user. This usually looks something like “/home/username”. The pwd, print working directory command lets you know which directory you are in.<br>The path it gives is the absolute path. The absolute path starts from the root, which is the base of the Linux file system. This is denoted by the slash /.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*SoDCrSeGwgYJ5pIdu2On2A.png" /></figure><h3>4.2 ls</h3><p>Another common command is ls. This command is used to display all the directories and files in your current directory, type ls and hit enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oNMlfpX1lRuVfDfYUKCKYQ.png" /></figure><p>To view any hidden files, add ”-a” to the command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mxq5y-F9YL0q5nNt3IbRSg.png" /></figure><p>You can add more options to the command to view specific information.</p><p>ls-X: sort by extension name ls-t:sort by time date<br>ls-s:list file size<br>ls-S:sort by file size<br>ls-r:list in reverse order<br>ls-R:list recursively directory tree<br>ls-ls:list with long format with file size<br>ls-lh:list long format with readable file size ls-la:list long format including hidden files ls-l:list with long format — show permissions ls-d:list directories — with ’ */’</p><h3>4.3 cd</h3><p>Next, we’ll look at the cd, change directory command. Your current directory is where you are currently working, in our case /root. Before we start with changing directories, let’s go over what absolute and relative paths are.<br>An absolute path starts from the system root and a relative path from your current di- rectory. So, the absolute path for Documents will be /root, whereas the relative path will be Pictures.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iYbfsuyo6q0Cd8ioEF_4-A.png" /></figure><ol><li>To change directories, use:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*k3-Finn8WePdaQVPMxm5Tg.png" /></figure><p>2.You can switch back to your previous directory using:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*9UFZ_FuIdFoAIMNZk91x0g.png" /></figure><p>3.Your parent directory is the directory immediately above the current one. To navigate to your parent directory, use:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*9UgV0MSnKqbBGizDw5-VXg.png" /></figure><p>4.Your parent directory is the directory immediately above the current one. To navigate to your parent directory, use:</p><h3>5. How to create folders and files</h3><p>Creating files and folders is quite easy with Linux. Let’s start with creating a new directory called “Donuts”.<br>You will use the command:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*takD-Nwky9Lhf9PPbYc7Wg.png" /></figure><p>To verify if the directory was created, use ls.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O7TzCIlEjtPYK2Nm-q7t-w.png" /></figure><ol><li>You can also create multiple directories using mkdir, use:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*OmVa14rNYNfsHH44V9GhGQ.png" /></figure><p>2.You can create sub directories within a directory by adding –p.<br>Let’s say you want to create Donuts2 in Donuts1 in Donuts, you would use:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*r51M2Kta9wYMs3C9AhLTOw.png" /></figure><p>3.To view the directory structure, use:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*NXkHLxmIUOxSTHJpqcvVOQ.png" /></figure><p>Now that we have plenty of directories, let’s create some filed. Linux has many methods for creating files, some of them include:<br>1.The touch command<br>2.The redirection operator <br>3.The cat command<br>4.The echo command</p><h3>5.1 Touch command</h3><p>1.To create a new file using the touch command, run touch, followed by the name of the file you want to create.<br>touch data.txt</p><p>2.To create multiple files at the same time, separate the file names by space.<br> touch excel.txt word.txt</p><h3>5.2 Redirection operator</h3><p>The redirection operator &gt; allows you to overwrite an existing file, and the &gt;&gt; operator lets you append output to a file. When creating a file using &gt;, be sure to not overwrite an important existing file.</p><ol><li>To create a file, use:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*gNceDX0qdpIZYB2exmI7cg.png" /></figure><p>2.Let’s look at how you can use &gt; to redirect output to a new file. We will list all the files and directories in Donuts, and have the result redirected to output.txt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*cIoFIRuTmiZ4hZ4wQned7g.png" /></figure><p>3.To view output.txt, we can print its content to the terminal using:<br> cat output.txt</p><h3>5.3 Cat command</h3><p>We looked at how the cat command can be used to read files. Now let’s see how we can use it to create one. Run the command:<br>cat &gt; filename<br>Hit enter, followed by the text you want to add to the file, and then press CTRL+D.</p><h3>5.4 Echo command</h3><p>To create empty files using echo, use:<br>echo &gt; filename</p><h3>6. Most important commands to know</h3><h3>6.1 alias</h3><p>The alias command lets you give your own name to a command or sequence of commands. You can then type your short name, and the shell will execute the command or sequence of commands for you.</p><p>alias cls=clear<br>This sets up an alias called cls. It will be another name for clear. When you type cls, it will clear the screen just as though you had typed clear. Your alias saves a few keystrokes, sure. But, if you frequently move between Windows and Linux command line, you can find yourself typing the Windows cls command on a Linux machine that doesn’t know what you mean. Now it will know.</p><h3>6.2 chmod</h3><p>The chmod command sets the file permissions flags on a file or folder. The flags define who can read, write to or execute the file. When you list files with the -l (long format) option you’ll see a string of characters that look like</p><p>-rwxrwxrwx<br>If the first character is a — the item is a file, if it is a d the item is a directory. The rest of the string is three sets of three characters. From the left, the first three represent the file permissions of the owner, the middle three represent the file permissions of the group and the rightmost three characters represent the permissions for others. In each set, an r stands for read, a w stands for write, and an x stands for execute.</p><p>If the r, w, or x character is present that file permission is granted. If the letter is not present and a — appears instead, that file permission is not granted.</p><p>One way to use chmod is to provide the permissions you wish to give to the owner, group, and others as a 3 digit number. The leftmost digit represents the owner. The middle digit represents the group. The rightmost digit represents the others. The digits you can use and what they represent are listed here:</p><p>0: No permission<br>1: Execute permission<br>2: Write permission<br>3: Write and execute permissions 4: Read permission<br>5: Read and execute permissions 6: Read and write permissions<br>7: Read, write and execute permissions</p><p>Looking at our example.txt file, we can see that all three sets of characters are rwx. That means everyone has read, write and execute rights with the file.<br>To set the permission to be read, write, and execute (7 from our list) for the owner; read and write (6 from our list) for the group; and read and execute (5 from our list) for the others we’d need to use the digits 765 with the chmod command:<br>chmod -R 765 example.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/1*GQ9gke1Bvq2TBAF2x7diGQ.png" /></figure><p>To set the permission to be read, write and execute (7 from our list) for the owner, and read and write (6 from our list) for the group and for the others we’d need to use the digits 766 with the chmod command:</p><p>chmod 766 example.txt</p><h3>6.3 Find command</h3><p>You can use the find, locate, and grep commands using the find command. The find command searches through your disk for the files. It allows you to look for files and directories based on user groups, when the files were modified or accessed, file permissions, dates, and size.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*obT0TTdDI1iZgeEqF77qFQ.png" /></figure><ol><li>To ignore case, use:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*q4xdO9UeYa02TeHmrJ_88g.png" /></figure><p>2. You can look for files based on size using:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*D-vLhnA_JHSL5mKkB7J7RQ.png" /></figure><p>3. To find a directory, use the command:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*h8BzCqdzYStY3FbEifSNbA.png" /></figure><h3>6.4 diff</h3><p>The diff command compares two text files and shows the differences between them. There are many options to tailor the display to your requirements.</p><p>The -y (side by side) option shows the line differences side by side. The -w (width) option lets you specify the maximum line width to use to avoid wraparound lines. The two files are called alpha1.txt and alpha2.txt in this example. The –suppress-common- lines prevents diff from listing the matching lines, letting you focus on the lines which have differences.<br>Syntax:<br>diff -y -W 70 alpha1.txt alpha2.txt –suppress-common-lines.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*vQ8tbM0HYXeQl590ULvEqA.png" /></figure><h3>6.5 history</h3><p>The history command lists the commands you have previously issued on the command line. You can repeat any of the commands from your history by typing an exclamation point ! and the number of the command from the history list.</p><p>!188</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*KJUt8cvzi6ugeDFDZV0ZRg.png" /></figure><h3>6.6 man</h3><p>The man command displays the “man pages” for a command in less . The man pages are the user manual for that command. Because man uses less to display the man pages, you can use the search capabilities of less.<br>For example, to see the man pages for chown, use the following command: man chown<br>Use the Up and Down arrow or PgUp and PgDn keys to scroll through the document. Press q to quit the man page or press h for help.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*-OEAXNqsH1gURFvhowuA9w.png" /></figure><h3>6.7 mv</h3><p>The mv command allows you to move files and directories from directory to directory. It also allows you to rename files.</p><p>To move a file you must tell mv where the file is and where you want it to be moved to. In this example, we’re moving a file called apache.pdf from the “ /Document/Ukulele” directory and placing it in the current directory, represented by the single . character.</p><p>mv /Documents/Ukulele/Apache.pdf .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*1hQRuzwRJszGqtf5_0GKLQ.png" /></figure><p>To rename the file, you “move” it into a new file with the new name.<br>mv Apache.pdf The Shadows Apache.pdf<br>The file move and rename action could have been achieved in one step: mv /Documents/Ukulele/Apache.pdf ./The Shadows Apache.pdf</p><h3>6.8 passwd</h3><p>The passwd command lets you change the password for a user. Just type passwd to change your own password.<br>You can also change the password of another user account, but you must use sudo. You will be asked to enter the new password twice.</p><p>sudo passwd mary</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*TpoGfKP7p-R4LfQcDC9eQA.png" /></figure><h3>6.9 uname</h3><p>You can obtain some system information regarding the Linux computer you’re working on with the uname command.</p><p>Use the -a (all) option to see everything.<br>Use the -s (kernel name) option to see the type of kernel.<br>Use the -r (kernel release) option to see the kernel release. Use the<br>-v (kernel version) option to see the kernel version.</p><p>uname -a uname -s uname -r uname -v</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/1*kFvA9kuEWhxyoh1QpUdmTA.png" /></figure><h3>6.8 curl</h3><p>The curl command is a tool to retrieve information and files from Uniform Resource Lo- cators (URLs) or internet addresses.</p><p>The curl command may not be provided as a standard part of your Linux distribution. Use apt-get to install this package onto your system if you’re using Ubuntu or another Debian-based distribution. On other Linux distributions, use your Linux distribution’s package management tool instead.</p><p>sudo apt-get install curl<br>Suppose you want to retrieve a single file from a GitHub repository. There is no officially supported way to this. You’re forced to clone the entire repository. With curl however, we can retrieve the file we want on its own.</p><p>This command retrieves the file for us. Note that you need to specify the name of the file to save it in, using the -o (output) option. If you do not do this, the contents of the file are scrolled rapidly in the terminal window but not saved to your computer.</p><p>curl <a href="https://raw.githubusercontent.com/torvalds/linux/master/kernel/events/core.c">https://raw.githubusercontent.com/torvalds/linux/master/kernel/events/core.c</a>-ocore.c</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*ECZCkmv8bV1Brz3jhoheDg.png" /></figure><h3>6.11 exit</h3><p>The exit command will close a terminal window, end the execution of a shell script, or log you out of an SSH remote access session.</p><p>exit</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/1*HJW62sGXzTFoNb05S83QUw.png" /></figure><h3>6.12 free</h3><p>The free command gives you a summary of the memory usage with your computer. It does this for both the main Random Access Memory (RAM) and swap memory. The -h (human) option is used to provide human-friendly numbers and units. Without this option, the figures are presented in bytes.</p><p>free -h</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/1*9Adb1CZ1RoTyC2y1J87-iA.png" /></figure><h3>6.13 apt-get</h3><p>apt-get is a command-line tool which helps in handling packages in Linux. Its main task is to retrieve the information and packages from the authenticated sources for installation, upgrade and removal of packages along with their dependencies. Here APT stands for the Advanced Packaging Tool.</p><p>Syntax:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*6_PRnJl6QiaMxRStvpmcaA.png" /></figure><ol><li>update : This command is used to synchronize the package index files from their sources again. You need to perform an update before you upgrade or dist-upgrade.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*oexfcN8CBrJ2HXBpVh9k6g.png" /></figure><ol><li>upgrade: This command is used to install the latest versions of the packages currently installed on the user’s system from the sources enumerated in /etc/apt/sources.list. The installed packages which have new packages available are retrieved and installed. You need to perform an update before the upgrade, so that apt-get knows that new versions of packages are available.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*XElaM1K9BJMYTdOSynAS0w.png" /></figure><p>3. install: This command is used to install or upgrade packages. It is followed by one or more package names the user wishes to install. All the dependencies of the desired packages will also be retrieved and installed. The user can also select the desired version by following the package name with an ‘equals’ and the desired version number. Also, the user can select a specific distribution by following the package name with a forward slash and the version or the archive name (e.g. ‘stable’, ‘testing’ or ‘unstable’). Both of these version selection methods have the potential to downgrade the packages, so must be used with care.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*uxAxqa_w_NO6ClSl3xJa9w.png" /></figure><p>4. remove: This is similar to install, with the difference being that it removes the packages instead of installing. It does not remove any configuration files created by the package.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*OJJ9arRCPz4rD5_qoCtY4A.png" /></figure><p>5. download: This command is used to download the given binary package in the current directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/929/1*ThUu_Gjrq5rZFBMtw18N2w.png" /></figure><p>Check out our other blogs:</p><p><a href="https://medium.com/@bhaktikarangale3140/network-hacking-pre-connection-attack-a884d19c262e">Network Hacking: Pre Connection Attack</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=743ca439b6cc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>