<?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 Parth Pulyani on Medium]]></title>
        <description><![CDATA[Stories by Parth Pulyani on Medium]]></description>
        <link>https://medium.com/@parthpulyani?source=rss-8496f4be71c0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*rt73z4WYSVjoSOKNKvsgjQ.png</url>
            <title>Stories by Parth Pulyani on Medium</title>
            <link>https://medium.com/@parthpulyani?source=rss-8496f4be71c0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 12:30:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@parthpulyani/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[SOLANA]]></title>
            <link>https://medium.com/@parthpulyani/solana-6eaec974b8d6?source=rss-8496f4be71c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/6eaec974b8d6</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[solana-network]]></category>
            <category><![CDATA[solana-blockchain]]></category>
            <category><![CDATA[crypto]]></category>
            <dc:creator><![CDATA[Parth Pulyani]]></dc:creator>
            <pubDate>Thu, 27 Jul 2023 12:50:04 GMT</pubDate>
            <atom:updated>2023-07-27T12:50:04.831Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5LtaVRS0yRel8k2k.jpg" /></figure><p>How Solana programming works?</p><p>Client-side :</p><p>It can be written in any language such as javascrit, python, and rust etc.</p><p>The client will send the request through Json Rpc and it will send the request to Solana blockchain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AcJKLn9rbMEX7_enEYnLUQ.png" /></figure><p>Solana will process the rquest according to the request that solana got from the Json Rpc.</p><p>Solana — — —</p><p>In Solana, everything is accounts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*LOleS8lYFcDmswyiViuoUQ.png" /></figure><p>In other blockchains such as Ethereum accounts mean that we are holding some tokens and we can send some tokens from one account to the other account but in Solana,here is nothing like that.</p><p>Solana, accounts are of three types:</p><ol><li>Program accounts: All the programs are stored in this account.It is stateless i.e. It does not hold any data.</li><li>Data accounts: It holds the data and provides the data to the program accounts.</li><li>Native accounts: It stores the system programs. All the programs that are pre-built by Solana are stored in the native accounts.</li></ol><p>Now, if you want to know the account’s information you will need a public key for that account.</p><p>First, Let us understand what is key-pair?</p><p>Key-pair is made up of two <strong>public key</strong> and the <strong>private key .</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*9noCSGgbgw9Eb01GaTUhHA.png" /></figure><p>It is 64 bytes and both the public and private key is 32 bytes each.</p><p>The private key uniquely identifies the public key and all the accounts are identified with the help of public keys.</p><p>Let us understand this with a better example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*1vs7MMjNXf-teRGSvLrFsg.png" /></figure><p>Suppose there is a wallet account that has some tokens and it belongs to person B.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*PfEFOz5VaDo_fRe243AJtQ.png" /></figure><p>Now person A also has the public key (as it is available for everyone) so person A wants to send the money from the wallet account to another x account so how the wallet account will verify that person A is the owner of that account or not?</p><p>Person A will send the private key and the private key will get combined with the public key but the public key belongs to person B and the wallet account get to know that the transaction is from the wrong person that is person A and the account wallet belongs to the person B.</p><p>I have covered all the basics and will start the development and write our very first program.</p><p>To get started with the development we need three things :</p><ol><li>Node.js (Install node.js from the link — — <a href="https://nodejs.org/en">https://nodejs.org/en</a>)</li><li>Install VScode.</li><li>Install the Solana tool kit(<a href="https://docs.solana.com/cli/install-solana-cli-tools">https://docs.solana.com/cli/install-solana-cli-tools</a>)</li></ol><p><strong>Note: After downloading the above three things also download Solana library with the help of (command — — npm install@solana/web3.js).</strong></p><p>We will start with different methods that are used in Json Rpc.</p><h4>Suggestion to learn coding start going through the docs it will make the learning process easier.</h4><h3>First code:</h3><p>To fetch the balance of the account:</p><p>To get the balance of the account we need the public key for that acccount.</p><p>We can easily get the sample public key from Solana explorer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*Ujqrxjz2DtLpAGn_rK-4Bg.png" /></figure><p>In the above image, we have the public key and the balance that we have to fetch.</p><p>We will use the first one for our code.</p><p>We will do the development in javascript. So, let’s make a new file named <strong>solana.js.</strong></p><p>We have to get the balance of that account.</p><p>We got the key — — <strong>2KgowxogBrGqRcgXQEmqFvC3PGtCu66qERNJevYW8Ajh and the balance for the same account is 25076032546</strong></p><p>Our first code:</p><p>const { Connection, clusterApiUrl , PublicKey }=require(“@solana/web3.js”);</p><p>const connection=new Connection(clusterApiUrl(“devnet”));</p><p><strong>//making the connection with json rpc</strong></p><p>async function getBalanceWeb3(address)</p><p>{</p><p>return connection.getBalance(address);</p><p>}</p><p>const publickey = new PublicKey(“2KgowxogBrGqRcgXQEmqFvC3PGtCu66qERNJevYW8Ajh”)</p><p>getBalanceWeb3(publickey).then((balance) =&gt; {</p><p>console.log(balance);</p><p>});</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*x0VRjtDR9L_4Jsw7L0jL2g.png" /></figure><p>This is our first code that we have written to fetch the balance of any account.</p><p>#learnbloackchainwithparth #web3 #solana #crypto</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6eaec974b8d6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blockchain and Solana:]]></title>
            <link>https://medium.com/@parthpulyani/blockchain-and-solana-55387577da7d?source=rss-8496f4be71c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/55387577da7d</guid>
            <category><![CDATA[blockchain-technology]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[solana-blockchain]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Parth Pulyani]]></dc:creator>
            <pubDate>Tue, 25 Jul 2023 07:44:52 GMT</pubDate>
            <atom:updated>2023-07-25T07:44:52.108Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RJFYGCjRpDnwe_TX.png" /></figure><p>Hello guys,</p><p>Let’s start</p><p>We will start with the basics as we all are new to this .I am also learning blockchain and want you to learn with me.</p><p>We will start from scratch. #learnblockchainwithme</p><p>Before jumping into the solana we will first go through the basics of blockchain.</p><p>In the last article we learned about what is blockchain? what are smart contracts? and many more things………………..</p><p>Decentralize, Distributive and immutable ledger is known as blockchain.</p><p>Now, what is the difference between Decentralized and Centralized network?</p><p>Centralize network:</p><p>All the data is present at the server .</p><p>The client sends the request to the server for the data and server provides the data to the client but there are disadvantages with the centralized network.</p><p>Do you know?</p><p>If the server is crashed or down no one will be able to fetch the data from the server as it is the single point from where the clients are fetching the data.It is slower than the decentralized network.</p><figure><img alt="Centralized network" src="https://cdn-images-1.medium.com/max/1017/1*i5zGT8ZFHNQIRVZLLUaQkA.png" /></figure><p>Decentralized and Distributive network:</p><p>In distributive networks all the data is present across the network and data is not present at the single place.</p><p>In distributive network all the clients can communicate with each other.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/1*h3ADXYC6giA5IplEK_LXhA.png" /></figure><p>Suppose A has some data X and want to send the data to B it can send the data very easily</p><p>If A is down and have file Y and D also have file Y and B wants the file so D can send the data to B.</p><p>Another case, If same data is present in all the network and someone try to hack the data of a of the blockchain so the peer that is hacked will be kicked out of the network.</p><p>Block chain is basically the collection of the blocks.</p><p>Lets see the diagram to get the better understanding of it that what block contains:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*6VCgq8twvUdKsn7fNfOwZw.png" /></figure><p>Block contains <strong>Nonce, data, prev hash, hash.</strong></p><p>The data is stored in the data field and hash is the ID of the block.</p><p>If we want to get the data of the block we should know the hash of the block.</p><p>Hashing Algorithms?</p><p>To generate the hash of the block we use SHA-256 algorithm.It converts the data into 64 bit hexadecimal code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/888/1*OdkiBAmZYmUr-ILOOOIVvw.png" /></figure><p>To generate the Hash we have to give SHA-256 four fields that is Blockno , Nonce , Data , Previous Block Hash.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*SCd3BEGROLz9XfZtAVzrfg.png" /></figure><p><strong>NOTE: The hash starts with 4 zero’s.</strong></p><p>Let us learn with the example:</p><p>Suppose there are three blocks and each block has block number , Nonce , Data and Previous hash block.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/383/1*_Mp3jcxQ9M3URQj0ptsZNA.png" /></figure><p>When we will change the data or enter the new data the hash also changes and it must start with 0000. Suppose, we provide the data <strong>aman</strong> and the hash value will change.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/388/1*a-F9BSXCJpPBzqlPbn6ZoA.png" /></figure><p>Can you observe one thing in the above image ?</p><p>The hash has changed and the block is red and it is not starting with four (0000).</p><p>It will change the other blocks also which are connected to it as the hash has been changed and previous hashes of the further blocks will also get changed.</p><p>Here comes the use nonce we have to brute force the nonce value till the hash value starts with 0000.</p><p>Nonce helps us to find the block hash.</p><p><strong>SOLANA?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*Wi9D6X_TLSiWXxl0" /></figure><p>Solana was introduced in 2017.</p><p>Solana is an open source project implementing a new, high-performance, permissionless blockchain.</p><p>It is not possible for the centralized network to process 710000 transactions per second on a standard gigabyte network but solana can do it for you.</p><h3><strong>History of solana</strong> :</h3><p>In November of 2017, Anatoly Yakovenko published a whitepaper describing Proof of History, a technique for keeping time between computers that do not trust one another. From Anatoly’s previous experience designing distributed systems at Qualcomm, Mesosphere and Dropbox, he knew that a reliable clock makes network synchronization very simple. When synchronization is simple the resulting network can be blazing fast, bound only by network bandwidth.</p><p>Anatoly watched as blockchain systems without clocks, such as Bitcoin and Ethereum, struggled to scale beyond 15 transactions per second worldwide when centralized payment systems such as Visa required peaks of 65,000 tps. Without a clock, it was clear they’d never graduate to being the global payment system or global supercomputer most had dreamed them to be. When Anatoly solved the problem of getting computers that don’t trust each other to agree on time, he knew he had the key to bring 40 years of distributed systems research to the world of blockchain. The resulting cluster wouldn’t be just 10 times faster, or a 100 times, or a 1,000 times, but 10,000 times faster, right out of the gate!</p><p>This was a very simple article on block chain to create your interest for it .</p><p>We will start with the development in the next!!</p><p>#2 #learnblockchainwithparth #crypto #solana #blockchain #web3</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55387577da7d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blockchain:]]></title>
            <link>https://medium.com/@parthpulyani/blockchain-5c9221b45c99?source=rss-8496f4be71c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c9221b45c99</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[white-papers]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Parth Pulyani]]></dc:creator>
            <pubDate>Sun, 09 Jul 2023 09:55:51 GMT</pubDate>
            <atom:updated>2023-07-09T09:55:51.562Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/848/0*uhgxA_UQSI8StR8y.jpg" /></figure><p>Have you all listened about <strong>Cryptocurrency</strong> and <strong>Block Chain</strong>?</p><p>I am sure you must have.</p><p>In this article we will explore the essence of blockchain.</p><p>You all must have heard about bitcoin(<strong>$$$$$</strong>).</p><p>Bitcoin was born in 2009.It was the first asset that had no backing, no intrinsic value and no centralized controller.<br>Bitcoin is the major usage of blockchain and has huge sub-branches!</p><p><strong>What is block chain and what are its sub branches?</strong><br>Blockchain is a decentralized and distributed digital ledger that records transactions or digital interactions in a secure, transparent, and tamper-resistant manner. It is the underlying technology behind cryptocurrencies like Bitcoin and ethereum.</p><p><strong>Sub Branches:</strong></p><p><strong>Smart Property</strong>: It is the property whose ownership is controlled via blockchain. Example can include physical property such as cars and houses. They also include non physical property such as shares.Smart property allow it to be traded with radically less trust.This reduces fraud , mediation fees and allow trades.</p><p><strong>Name Coins: </strong>Name coin can store data within its own blockchain transaction database.Name coin is a non fungible asset(For example domain names). They cant be reproduced or be replaced.They are owned by one person only.</p><p><strong>Smart Contracts: </strong>It is a computer program or a transaction protocol.In simple language,code that on the clock chain and can be executed when the condition are met.</p><p><strong>Colored coins:</strong> These are the digital assets that are on the blockchain.</p><p><strong>Introduction to bitcoin :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*jY5xk-bI-aN_s87j.jpg" /></figure><p>Although the bitcoin was created in 2009 the idea of decentralizing the digital currency existed in 1980’s and 1990’s such as B money(getting money by solving computational puzzles but it failed because it was not detailed) and then in 2005refusable proofs of work led to the idea of crypto currency.</p><p>Finally in 2009 Bitcoin was created through the combination of its predecessors.Electronic payment system based on the crypto graphical proof instead of trust.Allowing any two willing parties to transact directly with each other.Transaction that are impractical to reverse would protect sellers from fraud.</p><p><strong>Bitcoin as a state transition system?</strong></p><p>Now, what is this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*bNGO7JEU0DxHH_hAPFsjWw.png" /></figure><p>You have one state(a ledger of balances) and this gets transition into a new state(updated ledger of balances).</p><p>Those who don&#39;t know what <strong>ledger is — — — Blockchain maintains a digital ledger that consists of blocks of data.</strong><br>Each block contains a list of transaction or other relevant information.</p><p>1.State contain the ownership status(is is basically the balance sheet).</p><p>2.Transaction is the request to move $x from A to B.</p><p>State Transition reduces the value of A by<strong> $x</strong> and increases tghe value of B by<strong> $x</strong>.</p><p><strong><em>NOTE: If A account has less than the value of $x the transition function returns an error.</em></strong></p><p>Technically:<br><strong>APPLY(S,TX) -&gt; S’ or ERROR.</strong></p><p>Example to get the understanding which you will never forget:</p><p><strong>APPLY({Alice: $50, Bob: $50}),”send $20 from Alice top Bob”} + {Alice: $30, Bob: $70}</strong></p><p>But</p><p><strong>APPLY({Alice:$50, Bob:$50}),’send $70 from Alice to Bob”) = ERROR</strong></p><p>The state in bitcoin is the collection of all the coins technically its the unspent transaction that is <strong>UTXO</strong>.</p><p><strong>UTXO — — — It has been minted and not yet spent and it has a owner</strong></p><p>Technically, UTXO is defined by a 20 byte address which is essentially a cryptographic public key.</p><p>The state transition function can be defined roughly as follows:</p><p>For each input in TX:<br>1.If the referenced UTXO is not in S, return an error.<br>2.If the provided signature does not match the owner of the UTXO, return an error.<br>3.If the sum of the denominations of all input UTXO is less than the sum of the denominations of all output UTXO, return an error.<br>4.Return S with all input UTXO removed and all output UTXO added.</p><p><strong>Mining:</strong></p><p>We can not just save the ledger on a server — that would be centralized. <br>Instead, we need to make sure this whole thing is decentralized. <br>So we gotta make sure a ton of nodes agree on a common history.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*S-63WTR6KBHJVn6EFjIHow.png" /></figure><p>We do this by making the nodes constantly trying to create new blocks to add the longest chain.A new block is created in every <strong>10 minutes</strong>.</p><p>Now what does block contains?<br><strong>1.Timestamp.<br>2.Nonce.<br>3.Previous hash value(chains all the blocks together).</strong></p><p>There are algorithms that checks if these blocks are valid or not :</p><p>1.Check if the previous block actually exist and is valid.</p><p>2.check if the timestamp of the block is greater than the previous block.</p><p>3.check if the POW is valid or not(Pow is proof of work it solves many problems at once).</p><p>4.Check if the individual transaction within the blocks are valid are not.</p><p>We can see here that Bitcoin isn’t keeping track of the state in any way — it’s just keeping confirmation that the transactions were valid and happened. The only way to actually get the state is by computing everything from the genesis block to the current block. Also: it matters what the transaction order within the blocks is.</p><p>To adjust the difficulty of the POW, we require the hash that’s produced to have a certain number of leading 0’s → Which translates to getting the output to be less than a certain number. As of October 15th, it was ²¹⁸⁷, meaning that you need to try ~²⁶⁹ tries before getting a valid hash. The number is adjusted every 2016 blocks.</p><p>This is why proof of work requires so much work. The hash function is irreversible, thus you have to brute force the hell out of guessing the nonce (the work) until you finally find the valid hash!</p><p>If you mine the block you get rewarded with Bitcoin. Also if the inputs denomination &lt; outputs denomination then that’s the transaction fee.</p><p>If we wanted to attack the network (aka send money to someone, and then redo that transaction by building another fork of blockchain), we would need the majority of the computing power.</p><p>This is because while everyone else is working on the valid chain (where the attacker sent the money to the other person), the attacker has to single-handedly build a chain that becomes longer than the valid chain. This isn’t possible unless you have the majority of the computing power.</p><p><strong>Merkle Trees</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*Ndhwa7LKDbC0gCjFoobACA.png" /></figure><p>We don&#39;t store all the transactions within the block.We store them them inside the <strong>merkel tree </strong>to save the space.A merkle tree is a binary tree where each node is the hash of its children.</p><p>The final hash is included in the blockchain that is root node.There is protocol called as <strong><em>SPV (Simplified payment verification)</em></strong> which utilizes the merkle tree to run.</p><p><strong>Scripting:</strong></p><p>With Bitcoin, we can actually implement smart contracts! This means that in order for a transaction to pass it must be verified by the smart contract itself. We can do things like Multisig (multiple parties confirming for something to pass) or decentralized cross-cryptocurrency exchanges.</p><p>But there are limitations:<br>1.Lack of Turing Completeness: Namely missing loops, which leads to space inefficient if statements<br>2.Value-blindness: So we can’t fine-grain control the amount that can be withdrawn. UTXOs are All or nothing<br>3.Lack of State: UTXOs are spent or not spent. So it’s hard to have states between<br>4.Blockchain-blindness: UTXOs can’t even see the blockchain data</p><p>All those limitations mean we can get around it in 3 ways: Build a new blockchain, script on top of Bitcoin, or build a meta-coin on top of Bitcoin. Each has its drawbacks.</p><p><strong>#LearnBlockchainwithParth #Web3.0 #startedbutnotfinished</strong></p><p><strong><em>See you in the next article!!!!</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c9221b45c99" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Wireless Hacking :]]></title>
            <link>https://medium.com/@parthpulyani/wireless-hacking-af7012825777?source=rss-8496f4be71c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/af7012825777</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[wifi]]></category>
            <category><![CDATA[wireless]]></category>
            <category><![CDATA[wifihacking]]></category>
            <category><![CDATA[deauthentication-attack]]></category>
            <dc:creator><![CDATA[Parth Pulyani]]></dc:creator>
            <pubDate>Mon, 24 Apr 2023 19:51:14 GMT</pubDate>
            <atom:updated>2023-04-24T19:51:14.609Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong><em>Wireless Hacking :</em></strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*rG_uiSVVVPzGGCtA.png" /></figure><p><strong>Wifi</strong> stands for <strong>wireless fidelity.</strong></p><p>Wifi is a family of wireless network protocols based on IEEE 802.11.<br>802.11(family standard).</p><p>Wifi uses multiple parts of IEEE 802 protocol family.</p><p>what band does Wifi uses?<br>most commonly used wifi bands are 2.4 ghz and 5 ghz bands and these bands are divided into multiple sub channels.</p><p>&lt;&lt;channel: only one transmitter can transmit over a channel at a time&gt;&gt;</p><p>The latest wifi generation is wifi 7(2024) and radio frequency for this is 2.4/5/6.</p><p>Now when you buy a router you see on the box that it is written on the box WEP/WPA/WPA2/WPA3?<br>what are these? have you ever thought about it?</p><p>These are nothing but the security protocols. These protocols have undergone multiple upgrades<br>WEP(wired equivalent privacy)/WPA(Wifi protected access)/WPA2 —</p><p>It is most widely used security wifi protocol(WEP).As computing power increased it became easier and easier to <br>exploit the flaws.the key used by wep is 64 bit and 128 bit. Then comes the next WPA which uses key with size of 256 bits<br>wpa configuration was WPA-PSK(Pre shared key).Some of the changes such as message integrity checks were used with the new configurations.<br>Despite what a significant improvement WPA was over WEP, the ghost of WEP haunted WPA.<br>WPA, like its predecessor WEP, was also vulnerable after sometime of its use.It was vulnerable to the intrusion.<br>then comes the WPA2.The most significant change that was done for wpa2 was use of aes algorithm and introduction of CCMP.</p><p>When we click on our home network on our laptops or computers or mobiles what happens?<br>Wifi keeps emitting nonce packet and it keeps on bradcasting and when we click on the wifi(home network) it replies to the nonce packet.<br>it asks us for the password adn when we type the password it goes for authentication</p><p>What is four way handshake?<br>Four way handshake is the message exchange between an access point and the client device.<br>The device exchanges four messages that generates the encryption keys.</p><p>Keywords that you should know before you study four way handshake?<br><strong>ANonce</strong> — -A random number that is generated by the access point.<br><strong>SNonce</strong> — -A random number that is generated by the client device.<br><strong>MAC(AA) </strong>— mac address of the access point.<br><strong>MAC(SA)</strong> — mac address of the client device.<br><strong>PMK </strong>— -Paiwise Master Key — — An encryption generated from master session key.<br><strong>Mic</strong> — Message Integrity Check</p><p>What happens in four way handshake?<br>first message is sent from the access point to the client containing ANonce packet.<br>with eapol(extensible authentication protocol)frame.<br>second message is sent from the client to the access point with SNonce packet.<br>third message is sent again from the access point what&#39;s important in this the transportation of gtk(group temporal key)<br>Message 4 is sent by the client which and contains a MIC.<br>It is the final frame from the 4-Way Handshake. <br>This final message notifies the access point of whether the temporal keys were installed successfully or not.</p><h3>Now, have you ever wondered of hacking any wifi?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NrdeUs_r7WMPmxFG" /></figure><p>For this we need wifi adaptor(hardware device that we will be using to hack wifi)</p><p><strong>Note: We need wifi adaptor with monitor mode one.</strong></p><h4>What is Monitor mode?</h4><h4><strong>Monitor mode </strong>— — — it enables the network card to listen to the every packet in the air so that we can easily capture the four way handshake.</h4><p><strong>What are the Wi-Fi network properties:</strong><br><strong>ESSID</strong> — The network name<br><strong>BSSID</strong> — MAC address of the access point<br>Beacons — Number of announcements packets sent by the access point<br><strong>CH</strong> — Channel number<br><strong>ENC</strong> — Encryption algorithm in use<br><strong>CIPHER</strong> — The detected cipher<br><strong>AUTH</strong> — The authentication protocol</p><p>We will be using air-crack suite to hack the wifi.</p><p>Let’s fire up our machine and plugin our wifi adaptor and then type <strong>iwconfig</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*LoZjp-kanlcc1J0HUpMslQ.png" /></figure><p>To get the card into monitor mode we will run the <strong>airmon-ng</strong> program of the aircrack-ng suite.</p><p>a.In the terminal type: <strong>airmon-ng check kill </strong>(This will kill any processes that might interfere with the desired functionality)</p><p>b. Now type <strong>airmon-ng start wlan0.</strong></p><p>Now run <strong>iwconfig</strong> again to verify that our interface’s name has changed and that it is indeed in Monitor mode.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*7rNh9qPWiuv8iTxyAnjPvQ.png" /></figure><p>Now after having the mode set to the monitor we have to check for the access points what are available to us:</p><p>For this we will use , type <strong>airodump-ng wlan0:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*aBCsD5UJQ9cNl-sTa5yKew.png" /></figure><p>I have chosen one ap which we will hack:</p><p>Once we have located our target AP we will take note of the <strong>MAC address</strong> (bssid) and the <strong>channel</strong> it is broadcasting on.</p><p>We will now run <strong>airodump-ng</strong> again, but this time with the specific parameters we have obtained.</p><p>In the terminal type:</p><p><strong>airodump-ng — bssid (MAC_ADDRESS) — channel (CHANNEL_#) wlan0</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*v7S8re3DpGX0ISvwwEUEIw.png" /></figure><p>Once we have selected a client we wish to disassociate, we will run our deauth attack using aireplay-ng and for this we have to open other terminal:</p><p>In the terminal type:</p><p><strong>aireplay-ng — deauth (#_DEAUTHS) -a (AP_MAC) -c (CLIENT_MAC) wlan</strong></p><p>or we can also use the command that is given below for the deauth attack:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/1*pqdQuzmT2QWxDHrCw0hHgQ.png" /></figure><p>Till we dont capture the handshake file (.cap extension) keep running this and after we captured the file press (control+c).</p><p>when we captured the file it gets save in the directory where we are you can do ls and locate and see the file our file was FTTH0–02.cap.</p><p>The last step is to run aircrack-ng from the aircrack suite:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-TZRyGt1hfoa2kvi263oFg.png" /></figure><p>Boom!! We Got the password for the ap named FTTH.</p><p>— — — — — — — — — — — — — — — -Keep Hacking — — — — — — — — — — — — ——</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af7012825777" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Overthewire.org]]></title>
            <link>https://medium.com/@parthpulyani/overthewire-org-1b20046ee874?source=rss-8496f4be71c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b20046ee874</guid>
            <category><![CDATA[overthewire]]></category>
            <category><![CDATA[wargames-online]]></category>
            <category><![CDATA[writeup]]></category>
            <dc:creator><![CDATA[Parth Pulyani]]></dc:creator>
            <pubDate>Sat, 01 Apr 2023 10:34:46 GMT</pubDate>
            <atom:updated>2023-04-01T11:34:10.297Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*EBsz5ZMRmseLMYePpemRfQ.png" /></figure><h3>Bandit Level 15 → Level 16</h3><p>The password for the next level can be retrieved by submitting the password of the current level to <strong>port 30001 on localhost</strong> using SSL encryption.</p><p><strong>Helpful note: Getting “HEARTBEATING” and “Read R BLOCK”? Use -ign_eof and read the “CONNECTED COMMANDS” section in the manpage. Next to ‘R’ and ‘Q’, the ‘B’ command also works in this version of that command…</strong></p><p>Openssl is the library for the secure communication over the network .</p><p>It uses ssl and tls protocols for secure communication over the network.</p><p>openssl s_client</p><p>It is used for the implementation of single client that is used for the connect to a server over ssl and tls.</p><p>Fist step first , please connect via ssh to this level.</p><p>after connecting we have to connect to port 30001 :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*jI7kQDdeab70VZqcO9vWYQ.png" /></figure><p>then after you provide the previous password then you got the password for the another level.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/1*V_mhLmskKccneOpDH6PANw.png" /></figure><h3>JQttfApK4SeyHwDlI9SXGR50qclOAil1</h3><p><strong>Boom!! Level Up!!</strong></p><h3>Bandit Level 16 → Level 17</h3><h3>Level Goal</h3><p>The credentials for the next level can be retrieved by submitting the password of the current level to <strong>a port on localhost in the range 31000 to 32000</strong>. First find out which of these ports have a server listening on them. Then find out which of those speak SSL and which don’t. There is only 1 server that will give the next credentials, the others will simply send back to you whatever you send to it.</p><p>First step sirst,connect to the level via ssh:</p><p>Second step is port scanning ,</p><p>I hpe you all know port scanning if you font know go to nmap.org and study port scanning and its commands.</p><p><strong>nmap -p- localhost -sCV</strong></p><p>it will tell us the vulnerable services and all the ports that is running on this :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1dj5LGYXu6dT246AX-qtjA.png" /></figure><p>after we get the port that is 31790 we can connect over open ssl</p><p><strong>openssl s_client -connect localhost:41790</strong></p><p>we get a<strong> ssh key</strong> for the next level:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*AjRiBbjH1-eOzR-H1WKMHg.png" /></figure><p>we can create a file :<br><strong>pk.private</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/1*JXKwW1CUJIhO2czfsGOfog.png" /></figure><p><strong>Boom!! Level Up!!!</strong></p><h3><strong>Bandit Level 17 → Level 18</strong></h3><h3>Level Goal</h3><p>There are 2 files in the homedirectory: <strong>passwords.old and passwords.new</strong>. The password for the next level is in <strong>passwords.new</strong> and is the only line that has been changed between <strong>passwords.old and passwords.new</strong></p><p><strong>NOTE: if you have solved this level and see ‘Byebye!’ when trying to log into bandit18, this is related to the next level, bandit19</strong></p><p>First step first connect to the level with the ehlp of previous level.</p><p><strong>LS — — command for listing all the files that are present .</strong></p><p><strong>we see two files passwords.new and passwords.old:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/293/1*-idBlTVQQQ_8ZsjdyRnZyA.png" /></figure><p>As it is asked to us that we can use the diff command for comparing both the files:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*7toWAi-2DPsQPnZbjt2KJg.png" /></figure><p>we can try both the above passwords and log in to the other level:</p><p>the correct password for the other level is :</p><p><strong>Boom !!! Level Up !!!</strong></p><h3>Bandit Level 18 → Level 19</h3><h3>Level Goal</h3><p>The password for the next level is stored in a file <strong>readme</strong> in the homedirectory. Unfortunately, someone has modified <strong>.bashrc</strong> to log you out when you log in with SSH.</p><p>when we try to login with the password we get the error message with both password such as bye!bye!</p><p>You can see below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*v5wpwqJQjZpWdDKWzNzPBg.png" /></figure><p>now,we have to login and the password is present in the readme file:</p><p>we have to navigate to the readme file:</p><p><strong>WE can use -t command for pseudo terminal execution with ssh and we can give the path as /bin/sh</strong></p><p>Now we get the shell!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*8WPRVZFiMTf-TYLR82Umqw.png" /></figure><p><strong>we got the password!</strong></p><p><strong>Boom!!Level Up!!</strong></p><h3>awhqfNnAbc1naukrpqDYcF95h7HoMTrC</h3><h3>Bandit Level 19 → Level 20</h3><h3>Level Goal</h3><p>To gain access to the next level, you should use the setuid binary in the homedirectory. Execute it without arguments to find out how to use it. The password for this level can be found in the usual place (/etc/bandit_pass), after you have used the setuid binary.</p><p>First step first , connect to the level using the password from the previous level:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/218/1*GHcHAjCxvca7GQyLVj5Uvw.png" /></figure><p>when we do ls we got bandit20-do</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*3l29ahEwjslRFgs4jdVRiA.png" /></figure><p>We can see the setuid in the above command :</p><p><strong>Setuid — — — -it is used for user identity</strong></p><p><strong>Setuid has an effect only on binary executable files not on script files.</strong></p><p>please read mored about setuid to gain more information about this flag</p><p>when we use ./bandit20-do</p><p>We get that run this command as the other user :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/266/1*fS2DMmdH--Yfds3U3tZvcg.png" /></figure><p>when we run the same command we get:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*TeB2UqqTyXb1YIQBmMp1NQ.png" /></figure><p><strong>Boom!!Level Up!!</strong></p><h3>VxCazJaVykI6W36BkBU0mJTCM8rR95XT</h3><h3>Bandit Level 20 → Level 21</h3><h3>Level Goal</h3><p>There is a setuid binary in the homedirectory that does the following: it makes a connection to localhost on the port you specify as a commandline argument. It then reads a line of text from the connection and compares it to the password in the previous level (bandit20). If the password is correct, it will transmit the password for the next level (bandit21).</p><p><strong>NOTE:</strong> Try connecting to your own network daemon to see if it works as you think</p><p>First step first connect to the level and run the following command :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/226/1*bCye1AZrRTcRCcTaG6mDwA.png" /></figure><p>For the further we use ./suconnect:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vq5aLM97xgiWOnc9gdtBow.png" /></figure><p>we need port number :</p><p>as it is said that the program will connect to the given port on localhost using TCP.</p><p>we will use nc command :</p><p>open other tab and login to the same level and use nc command on port 9999 or any other port(listening port)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/335/1*ao8WRus1hFC_kYOy-lxUYw.png" /></figure><p>paste the password and you will get the password :</p><p><strong>Boom!! Level Up!!</strong></p><h3>NvEJF7oVjkddltPSrdKEFOllh9V1IBcq</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b20046ee874" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Overthewire.org(Bandit)]]></title>
            <link>https://medium.com/@parthpulyani/overthewire-org-bandit-7b617ad33cbd?source=rss-8496f4be71c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b617ad33cbd</guid>
            <dc:creator><![CDATA[Parth Pulyani]]></dc:creator>
            <pubDate>Sun, 19 Mar 2023 09:41:14 GMT</pubDate>
            <atom:updated>2023-03-19T09:42:09.428Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/523/1*5TV_aoHkolpCAmeC3klARQ.jpeg" /></figure><p>How to login into the game using SSH?</p><p>ssh — — secure shell</p><p>1. It is used for transferring data (ssh use scp secure copy and sftp secure file transgfer protocol)</p><p>2. It is used to make login (it enables two computers to communicate)</p><p>we can login into the game using the command :</p><p>ssh username@host -p &lt;port number&gt;</p><p>At level 0 :</p><p>username is bandit0 and password is also bandit0</p><p>Now ,we have to login in bandit0 using ssh?</p><p>ssh bandit0@bandit.labs.overthewire.org -p 2220</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/457/1*BnF0aUzfuan6eskniYYsqw.png" /></figure><p>Boom!you can see that you got a connection to communicate .</p><h3><strong>Bandit Level 0 → Level 1</strong></h3><p>The password for the next level is stored in a file called <strong>readme</strong> located in the home directory?</p><p>ls — listing the files in directory.</p><ol><li>use ls.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/378/1*ih5mHwSdMxhNO8QAUsjrow.png" /></figure><p>2. We can see the file called readme.</p><p>3. How to the get the output contents of file ?</p><p>For this we use Cat command(to get the contents in a file)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/477/1*14XvUmlrPeI0rA_5PvNPJw.png" /></figure><p>Boom,we got the password for our next level.</p><h3>NH2SXQwcBdpmTEzi3bvBHMM9H66vVXjL</h3><h3>Bandit Level 1 → Level 2</h3><p>The password for the next level is stored in a file called <strong>-</strong>located in the home directory?</p><p>connect to the bandit 1 using the password that you got into the level 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*nzBmlO0IhIwSq8107ikJKg.png" /></figure><p>now again do ls (listing of files in a directory).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*yDipd7d58gjLWFryUxTP8g.png" /></figure><p>You can see the file named -</p><p>To get the contents from the file named -</p><p>use cat &lt; -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/305/1*1lwPcxHq14tPPqSDAkSDIA.png" /></figure><p>Boom!!!! you got the password for the next level.</p><h3>rRGizSaX8Mk1RTb1CNQoXTcYZWU6lgzi</h3><h3>Bandit Level 2 → Level 3</h3><p>The password for the next level is stored in a file called <strong>spaces in this filename</strong> located in the home directory</p><p>connect to the bandit level 2 using the password from level 2 :</p><p>1.once you login.</p><p>2. use ls for listing the files in a directory?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/251/1*JnzZ-6dtEv2uNiNNsgwhXA.png" /></figure><p>In the above screenshot you can see the spaces in a file named “ spaces in this filename”</p><p>To get the contents from the filename having spaces</p><p>we use ( \ )</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/401/1*QB1j0C5Aqaha0vZWz-mupg.png" /></figure><p>Boom!!1 You got the password for the next level.</p><h3>aBZ0W5EmUfAf7kHTQeOwd8bauFJ2lAiG</h3><h3>Bandit Level 3 → Level 4</h3><p>The password for the next level is stored in a hidden file in the <strong>inhere</strong> directory.</p><p>First step first,</p><p>Connect to the next level using ssh and using the password we got in the previous level!!!</p><p>The next new command that we will learn in this level is ls -la</p><p>Ls-la — — — — — — listing of files in a direcory</p><p>-a — — — — — — it do not ignores starting the entries with .</p><p>l — — — — — — -it give the output in list format</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*BRuzBpN-LLYVaKZmYjx2SA.png" /></figure><p>move to the directory (for navigation we use cd)</p><p>cd inhere</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/268/1*tYf4AWVaTIt2Oy7GBaE4tg.png" /></figure><p>but when we do ls we wont see naything as this folder contains hidden files and files starting with .</p><p>so we use ls -la</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/1*FFlm6th9i3NEjz4cI9fR-Q.png" /></figure><p>Now use cat &lt; .hidden to get the contents in the hidden file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/326/1*zQG4iKoBB071qr5mDgnOZg.png" /></figure><p>Boom !! we got the password for the next level!!</p><h3>2EW7BBsr6aMMoJ2HjW067dm8EgX26xNe</h3><h3>Bandit Level 4 → Level 5</h3><p>The password for the next level is stored in the only human-readablefile in the <strong>inhere</strong> directory. Tip: if your terminal is messedup, try the “reset” command.</p><p>connect to the next level using the password you got from the previous level.</p><p>After connecting use ls-la</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*l83ucnh5l73wDniWRCDOCw.png" /></figure><p>we have to go into the directory that is inhere</p><p>cd inhere</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*SRshMzFuIpC3BeGNeu65SQ.png" /></figure><p>after getting into the list the files presents in the directory ls -la</p><p>Now the password is present in human readable format::</p><p>look for the password in -file00</p><p>use cat &lt; -file00</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*FOSaohnDOjFMq2CVbA8KMw.png" /></figure><p>OOPS!!!!!!!!</p><p>You did not got the password .</p><p>Try the same for all the files present in the directory?</p><p>You will get your password!!!!!</p><p>After trying on all the files i got the password in -file07</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/343/1*96vVE3kA51SN3yCzC682kg.png" /></figure><p>Boom!!! we finally got the password!!</p><h3>lrIWWI6bB37kxfiCQZqUdOIYfr6eEeqR</h3><h3>Bandit Level 5 → Level 6</h3><p>The password for the next level is stored in a file somewhere underthe <strong>inhere</strong> directory and has all of the following properties</p><p>• human-readable</p><p>• 1033 bytes in size</p><p>• not executable</p><p>connect the next level using the password that you got from the previous level.</p><p>navigate to the directory inhere</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*rlpEP7uX3qJT3Fmt20Dsmw.png" /></figure><p>You can see many files and now you have to get the password from these files and the files also contain other files .</p><p>Terefore it is not possible to navigate through all the files and get the password.</p><p>we use find command in linux to find the file easily .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/1*sZ0vP5jiX7a2DCjtiDjqZw.png" /></figure><p>We get the password from the absolute path shown above .</p><p>navigating to these files we get our password:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/1*QhsUkIbkBE5UGnZQoq62pg.png" /></figure><p>Boom !!! we got the password for the next level!!</p><h3>P4L4vucdmLnm8I7Vl7jG1ApGSfjYKqJU</h3><h3>Bandit Level 6 → Level 7</h3><p>The password for the next level is stored <strong>somewhere on theserver</strong> and has all of the following properties:</p><p>• owned by user bandit7</p><p>• owned by group bandit6</p><p>• 33 bytes in size</p><p>connect to the level and search for the password.</p><p>here also we can use find</p><p>we also dont know the directories or the absolute path where the file of our password is present .</p><p>Hre we are having three conditions :</p><p>we can use find — — to find anything anywhere in our terminal</p><p>find / — — — — to find the path as we dont know the path where the files are present .</p><p>grep — — — — to look and grab speciic thing.</p><p>now here we will use all thses commands to get the password:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*ci1ooOUrJIxmagr7PiJo1A.png" /></figure><p>Boom !!! level up !!!</p><h3>z7WtoNQU2XfjmMtWA8u5rN4vzqu4v99S</h3><h3>Bandit Level 7 → Level 8</h3><p>The password for the next level is stored in the file <strong>data.txt</strong>next to the word <strong>millionth</strong></p><p>connect to the level using the password that we have got in the previous level.</p><p>get to the file data.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*AMcVFmuSAvciFT7FS1a8Kw.png" /></figure><p>WE can get the contents of the file using cat and grep</p><h3>cat data.txt | grep millionth</h3><p>Boom!!! Level Up!!!</p><h3>TESKZC0XvTetK0S9xNwm25STk5iWrBvP</h3><h3>Bandit Level 8 → Level 9</h3><p>The password for the next level is stored in the file <strong>data.txt</strong>and is the only line of text that occurs only once.</p><p>First step first, connect to the level with the password from the previous level</p><p>Use ls to list the contents in the file :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/340/1*ZeDvzmKz1MbtZaWSeW0K4g.png" /></figure><p>To get the unique password from the list of passwords we can use sort to sort the data and uniq to get the odd one out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*SRshMzFuIpC3BeGNeu65SQ.png" /></figure><p>Now using, uniq:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/404/1*5Q_MhGoDyDIJB3TLwBj8VA.png" /></figure><p>Boom!!!Level up!!!!</p><h3>Bandit Level 9 → Level 10</h3><p>The password for the next level is stored in the file <strong>data.txt</strong>in one of the few human-readable strings, preceded by several ‘=’characters.</p><p>First step first, connect to the level with the password from the previous level.</p><p>strings : strings of printable characters in files.</p><p>cat to see the contents in the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/346/1*WMVwKXvWnbsSb_ULJ0g_Lw.png" /></figure><p>now ,</p><p>using grep and strings to get the password:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*bNBvnOkcpVMQ1_Wt9ETD3A.png" /></figure><p>Boom!!!Level up!!!</p><h3>Bandit Level 10 → Level 11</h3><p>The password for the next level is stored in the file <strong>data.txt</strong>,which contains base64 encoded data</p><p>First step first, connect to the level with the password from the previous level.</p><p>Getting the contents of the file data.txt we can see a string which is encoded in base64.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*F1xT4UekdLJ9dN2BsLYuyg.png" /></figure><p>Now decoding there are m any decoders available (open source) which you can use to decode the above code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/709/1*1Lzi3SWDT817-_JopQCTCw.png" /></figure><p>Boom!!! Level Up!!!</p><h3>6zPeziLdR2RKNdNYFNb6nVCKzphlXHBM</h3><h3>Bandit Level 11 → Level 12</h3><p>The password for the next level is stored in the file <strong>data.txt</strong>,where all lowercase (a-z) and uppercase (A-Z) letters have beenrotated by 13 positions.</p><p>First step first, connect to the level with the password from the previous level.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/421/1*-2PVBYdyrRS4rFnfAs5AYQ.png" /></figure><p>Now decoding there are m any decoders available (open source) which you can use to decode the above code.</p><h3>Rot13:rotate by 13 places</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*AIjAyrTmJXX87v98n1hOsw.png" /></figure><p>BOOM!!Level up !!!</p><h3>JVNBBFSmZwKKOP0XbFXOoW8chDz5yVRv</h3><h3>Bandit Level 12 → Level 13</h3><p>The password for the next level is stored in the file <strong>data.txt</strong>,which is a hexdump of a file that has been repeatedly compressed.For this level it may be useful to create a directory under /tmp inwhich you can work using mkdir. For example: mkdir /tmp/myname123.Then copy the datafile using cp, and rename it using mv (read themanpages!)</p><p>First step first, connect to the level with the password from the previous level.</p><p>now what do you mean by hexdump?</p><h3>Hexdump is a utilitythat displays the contents of binary files in hexadecimal, decimal, octal, or ASCII.</h3><h3>can be used fordata recovery, reverse engineering, and programming.</h3><p><strong>xxd command in linux???????</strong></p><p>xxd is used for reversing the hexdump or elps in making the hexdump.</p><p>the below image shows how hexdump look like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/569/1*vn4ky9KTQwvSLjnFQtXYGQ.png" /></figure><p>we have to make directory using mkdir called hack and copy the data.txt file into the /tmp/hack</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/348/1*U9jS4InG27sAvSXZ-EQZ6w.png" /></figure><p>Below image shows that how we unip all the files :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*niPakYeNBSIM4k1xUrsyZQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*_-g_hjKArULTsYeEihPzlA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*-3Gx9sQX7O55iB7f8nMEfw.png" /></figure><p>After unzipping the file we got our password!</p><p>Boom!!Level Up!!</p><h3>Bandit Level 13 → Level 14</h3><p>The password for the next level is stored in<strong>/etc/bandit_pass/bandit14 and can only be read by userbandit14</strong>. For this level, you donâ€™t get the next password, but youget a private SSH key that can be used to log into the next level.<strong>Note:</strong> <strong>localhost</strong> is a hostname that refers to the machine you are working on</p><p>First step first, connect to the level with the password from the previous level.</p><p>Now connect with the private ssh key wich is given to us to the localhost.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/571/1*rWAm2pbwZP5ZN9to4zgrUw.png" /></figure><p>now you got connected to bandit 14 and navigating to the directory to get the password:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/709/1*2QkmIibxkWzpO61M8sYtzg.png" /></figure><p>BOOM!!!Level up!!!</p><h3>fGrHPx402xGC7U7rXKDaxiWFTOiF0ENq</h3><h3>Bandit Level 14 → Level 15</h3><p>The password for the next level can be retrieved by submitting the password of the current level to <strong>port 30000 on localhost</strong>.</p><p>Her we are using:</p><p>nc localhost 30000</p><p>nc — — — — — The Netcat ( nc ) command is a command-line utility for reading and writing data between two computer networks</p><p>Then we have to provide the password we got in tthe previous level to get the new password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/331/1*X_IdwISgnU1yQVIgly5WzA.png" /></figure><h3>Boom!! Level Up!!</h3><h3>jN2kgmIXJ6fShzhT2avhotn4Zcka6tnt</h3><p>— — — — — — — — — — — — — — — -Keep Hacking — — — — — — — — — — — — —</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b617ad33cbd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>