<?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 secabit on Medium]]></title>
        <description><![CDATA[Stories by secabit on Medium]]></description>
        <link>https://medium.com/@secabit?source=rss-deeec2234f87------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*-lqcFXOktTN5jJevMJ2EUg.jpeg</url>
            <title>Stories by secabit on Medium</title>
            <link>https://medium.com/@secabit?source=rss-deeec2234f87------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 21:26:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@secabit/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to configure Burp Suite proxy with an Android emulator?]]></title>
            <link>https://secabit.medium.com/how-to-configure-burp-proxy-with-an-android-emulator-31b483237053?source=rss-deeec2234f87------2</link>
            <guid isPermaLink="false">https://medium.com/p/31b483237053</guid>
            <category><![CDATA[burpsuite]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[android-emulator]]></category>
            <category><![CDATA[mobile-hacking]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[secabit]]></dc:creator>
            <pubDate>Thu, 05 Nov 2020 19:24:15 GMT</pubDate>
            <atom:updated>2020-11-05T19:41:35.124Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="How to configure Burp proxy with an Android emulator?" src="https://cdn-images-1.medium.com/max/1024/1*QYTo4ZZr7bx2DvmmLWDKmw.png" /></figure><p>This article was made because of the little information about it (even on the official Burp website) so hope this article helps you. Here you will find information that will allow you to test and modify the network traffic of any mobile application.</p><p>I assume you already have an Android emulator set up. If you haven’t set up an Android emulator yet, or are curious about how to do it without Android Studio, check out this article.</p><p><a href="https://secabit.medium.com/how-to-run-android-emulator-without-android-studio-88a3bb1d80eb">How to run Android Emulator without Android Studio?</a></p><h3>1. Export CA Certificate from Burp</h3><ul><li>Open burp and go to Proxy &gt; Options tab and then click <strong>Import / export CA certificate</strong>.</li></ul><figure><img alt="Export certificate in DER format" src="https://cdn-images-1.medium.com/max/1024/1*G3g9qa52G_dWBNA42mjnwQ.png" /></figure><ul><li>Select DER format of certificate and save it as cacert.der</li></ul><figure><img alt="Save burp certificate as cacert.der" src="https://cdn-images-1.medium.com/max/940/1*C_uVC_sgBOQrxSFBSKBKYw.png" /></figure><h3>2. Prepare the certificate before moving to Android device.</h3><p>In this step, we need to change the certificate format and name it appropriately. OpenSSL is required for this step.</p><ul><li>Open terminal in the directory where the certificate has been saved and then run the below command to change its format.</li></ul><pre>openssl x509 -inform DER -in cacert.der -out cacert.pem</pre><ul><li>Now we need to get the issuer hash value of the certificate, you can obtain this information with the following command.</li></ul><pre>openssl x509 -inform PEM -subject_hash_old -in cacert.pem | head -1</pre><ul><li>Let’s assume the output of the previous command is 9a5ba575, now you have to rename the certificate to this value and add .0 extension.</li></ul><pre>mv cacert.pem 9a5ba575.0</pre><h3>3. Move certificate info system certificates.</h3><p>Trusted Certificate Authorities are stored in /system/etc/security/cacerts on the Android system.</p><ul><li>Start your Android Emulator with -writable-system flag. I recommend to use<strong> API version &lt; 29</strong> of the emulator system due to issues with write permission to /system.</li></ul><pre>emulator -avd VirtualDeviceName -writable-system</pre><ul><li>Restart adb as root.</li></ul><pre>adb root</pre><ul><li>To get write access to /system run command:</li></ul><pre>adb remount</pre><ul><li>Push the previously prepared certificate to system certificates and add appropriate permissions.</li></ul><pre>adb push 9a5ba575.0 /system/etc/security/cacerts<br>adb shell &quot;chmod 664 /system/etc/security/cacerts/9a5ba575.0&quot;</pre><ul><li>The last step is to reboot the device.</li></ul><pre>adb reboot</pre><p>Now you should be able to see the PortSwigger trusted CA on your device in “<em>Settings -&gt; Security -&gt; Trusted Credentials”.</em></p><figure><img alt="PortSwigger CA Certificate Android" src="https://cdn-images-1.medium.com/max/477/1*xTNtrzgxKVtmdEtuHH2Ehg.png" /><figcaption>PortSwigger Trusted CA</figcaption></figure><h3>4. Configure proxy.</h3><ul><li>Configure you proxy by entering virtual device setting in GUI “Settings &gt; Proxy”.</li></ul><figure><img alt="Android Emulator Proxy Configuration for Burp Suite." src="https://cdn-images-1.medium.com/max/765/1*Aj2InE4I9mrQHc83zbsHfA.png" /></figure><ul><li>Another method is to start the emulator with -http-proxy option</li></ul><pre>emulator -avd VirtualDeviceName -writable-system -http-proxy 127.0.0.1:8080</pre><h3>Summary</h3><p>Remember that you <strong>always </strong>have to start the emulator with the -writable-system option in order to use your certificate and make proxy working correctly. Hope I helped you setup Burp proxy with Android emulator. You can use this tutorial to similarly configure other proxies, e.g. OWASP ZAP or mitmproxy. Happy testing!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31b483237053" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to run Android Emulator without Android Studio?]]></title>
            <link>https://secabit.medium.com/how-to-run-android-emulator-without-android-studio-88a3bb1d80eb?source=rss-deeec2234f87------2</link>
            <guid isPermaLink="false">https://medium.com/p/88a3bb1d80eb</guid>
            <category><![CDATA[cli]]></category>
            <category><![CDATA[emulator]]></category>
            <category><![CDATA[android-emulator]]></category>
            <category><![CDATA[android-sdk]]></category>
            <category><![CDATA[android-studio]]></category>
            <dc:creator><![CDATA[secabit]]></dc:creator>
            <pubDate>Wed, 04 Nov 2020 18:46:53 GMT</pubDate>
            <atom:updated>2020-11-04T18:46:53.333Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*vhz6pdI8alnQ_Ua4Tnjzkg.png" /></figure><p>The article was created to show how to install emulator and tools without Android Stuio. If you are a tester, you don’t need to download the entire Android environment. This way you will save time and gigabytes on hard drive. In this tutorial, I have presented the necessary steps for Windows and Mac Os.</p><h3>1. Install android-sdk.</h3><p>In order to install the necessary packages you need Android SDK which contains the basic tools and allows you to install more packages.</p><h4>Windows</h4><p>The easiest way is to install Android SDK on Windows is with the help of the Choco package manager. If you don’t have Choco, here you will find instructions how to install it. <a href="https://chocolatey.org/install">https://chocolatey.org/install</a></p><ul><li>Open PowerShell with administrator rights and run the following command: choco install android-sdk -y</li></ul><p>This command will also automatically install Java JDK 1.8.</p><h4>Mac Os</h4><p>In the case of Mac Os, there are a few more steps. The easiest way is to install android-SDK on Mac Os is with the help of the Brew package manager. If you don’t have Brew, here you will find instructions how to install it. <a href="https://brew.sh/">https://brew.sh/</a></p><p>Open terminal and run the following commands:</p><ul><li>Install android-sdk brew install android-sdk</li><li>Install Java brew cask install homebrew/cask-versions/adoptopenjdk8</li></ul><p>After these steps, you should be able to run sdkmanager --help in your terminal.</p><p>You can also download android-sdk from the Android Studio website, but you will have to manually configure all environment variables additionally. In case of an update you will have to copy it manually again, so I recommend using package managers.</p><h3>2. Install required packages with sdkmanager.</h3><p>In this step, we will install packages needed to run an emulator. SDKManager is basically the same tool as in Android Studio, but here in the command-line interface.</p><h4>Windows:</h4><ul><li>Open terminal and run the command:</li></ul><pre>sdkmanager &quot;system-images;android-28;default;x86&quot; &quot;platforms;android-28&quot; &quot;platforms;android-28&quot; &quot;extras;intel;Hardware_Accelerated_Execution_Manager&quot;</pre><ul><li>Go to directory C:\Android\android-sdk\extras\intel\Hardware_Accelerated_Execution_Manager and install HAXM by running intelhaxm-android.exe</li><li>Add C:\Android\android-sdk\emulator to system PATH environment variable, it should be placed before other android-sdk variables. It will allow to run emulator in terminal regardless current directory.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*lbcmUC3dVqXDe-CHsptUlg.png" /><figcaption>PATH environment variable</figcaption></figure><h4>Mac Os</h4><ul><li>Open terminal and run the command:</li></ul><pre>sdkmanager &quot;emulator&quot; &quot;platform-tools&quot; &quot;platforms;android-30&quot; &quot;system-images;android-28;default;x86&quot; &quot;tools&quot;</pre><ul><li>Edit the file ~/.zshrc (for ex. with nano) and insert the below lines. Similarly to Windows the emulator in the PATH variable will allow you to run it anywhere.</li></ul><pre># Android-sdk<br>export ANDROID_HOME=/usr/local/share/android-sdk<br>export ANDROID_SDK_ROOT=$ANDROID_HOME<br>export ANDROID_SDK_HOME=$ANDROID_HOME<br>export PATH=$ANDROID_HOME/emulator:$PATH</pre><pre># Java<br>export JAVA_HOME=&quot;/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home&quot;</pre><p>I chose the package versions above, but you can change them. Remember that the above packages are necessary to run the emulator.</p><p>You can also install other packages depending on what you need. Check the list with the command sdkmanager --list and then install in the same way as above, remember about the double quotes.</p><p>If you need build tools on Mac you can also install it with sdkmanager &quot;build-tools;30.0.2&quot;, but after you have to add environment variable manually with specific version, for ex. export PATH=$ANDROID_HOME/build-tools/30.0.2:$PATH.</p><h3>3. Create virtual device with avdmanager.</h3><p>Here commands are the same on Windows and Mac Os.</p><p>To create virtual device use the command:</p><pre>avdmanager create avd -n VirtualDeviceName -k &quot;system-images;android-28;default;x86&quot; -d &quot;7in WSVGA (Tablet)&quot;</pre><p>Where:</p><ul><li>-n is the device name, you can set whatever you want</li><li>-k is system package installed with sdkmanager</li><li>-d is target device, you can list available devices with avdmanager list devices</li></ul><h3>4. Run the device with the emulator program.</h3><p>It’s time to start the created machine by running command:</p><pre>emulator -avd VirtualDeviceName</pre><p>or</p><pre>emulator @VirtualDeviceName</pre><p>Where VirtualDeviceName, is the name of created machine in step 3.</p><p>If the emulator doesn’t run on Mac Os, you need to provide access into System Preferences — Security &amp; Privacy</p><h3>Summary</h3><p>I hope that it will be easier for you to setup your AndroidSDK with this tutorial and you will get the basics about required things. In many cases, the use of command line is better because of the ease of automation and speed of operations.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88a3bb1d80eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to hack WiFi networks with mobile Raspberry Pi set?]]></title>
            <link>https://secabit.medium.com/how-to-hack-wifi-networks-with-mobile-raspberry-pi-set-9feb2b43a49?source=rss-deeec2234f87------2</link>
            <guid isPermaLink="false">https://medium.com/p/9feb2b43a49</guid>
            <category><![CDATA[raspberry-pi]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[wifi]]></category>
            <category><![CDATA[kali-linux]]></category>
            <category><![CDATA[mobile-phone]]></category>
            <dc:creator><![CDATA[secabit]]></dc:creator>
            <pubDate>Wed, 13 May 2020 17:05:13 GMT</pubDate>
            <atom:updated>2020-05-13T17:05:13.379Z</atom:updated>
            <content:encoded><![CDATA[<p>This article is for people experienced with wireless hacking. It is not written to show the hacking from the basics. I assume you have some knowledge about it. If not, please google the phrase ‘wireless hacking’ and come back! Unless you’re just curious about the methodology.</p><p>Hacking of wireless networks requires being close to the target. Of course you can use a strong antenna, but anyway someone can easily spot you sitting with your notebook with strange things on your screen. To solve this problem I came up with the Raspberry Pi setup which can be hidden in your pocket.</p><figure><img alt="Scheme of Raspberry Pi mobile hacking environment" src="https://cdn-images-1.medium.com/max/712/1*bIK9FtblXKJwS4KAtC-nrA.png" /><figcaption>Scheme of Raspberry Pi mobile hacking environment</figcaption></figure><p>The idea is Raspberry Pi powered from a power bank with an external WiFi antenna attached. But how to control it? With help comes the internal WiFi interface which can be configured as Access Point. Then we can simply connect to this network using a smartphone with SSH or VNC client installed. The below picture is showing the concept.</p><p>Kali Linux is needed, if you do not know how to install it on Raspberry, check <a href="https://pimylifeup.com/raspberry-pi-kali-linux/">this tutorial</a>. I will skip this process.</p><h3>Rasrpberry Pi configuration</h3><h4>Configuration of built-in network interface</h4><p>The first thing we have to do is to set the static IP address of Raspberry. Connecting through SSH will be easier when we know the IP address. To do it edit the file /etc/network/interfaces.</p><pre>nano /etc/network/interfaces</pre><p>And edit the content as below.</p><pre>auto wlan0<br>iface wlan0 inet static<br>address 192.168.200.1/24<br>gateway 192.168.200.1</pre><p>As you can see I’ve set the subnet to 192.168.200.0, because I don’t want to have and collision with the victim’s network. The probability that someone has also set that network is low.</p><h4>Raspberry as Access Point</h4><p>Secondly we need to configure interface wlan0 as Access Point. We need to install and configure <strong>hostapd</strong></p><pre>apt-get install hostapd</pre><p>When package is downloaded create the file<strong> /etc/hostapd/hostapd.conf </strong>and pase the below text. If you know the channel of the victim’s network, change the channel in the file to different, which is further to avoid the same frequency band. For example if the attacked network uses the 3’rd channel, set it to 11’th. Set <strong>SSID </strong>and <strong>wpa_passphrase </strong>as you want. SSID is the name of the network which you will connect from mobile phone and wpa_passphrase is the password to this network. I’ve set the name to AndroidAP to make it unsuspected (looks like default network name when using a phone as a Wi-Fi router).</p><pre># Wifi interface and driver to be used<br>interface=wlan0<br>driver=nl80211</pre><pre># WiFi settings<br>hw_mode=g<br>channel=6<br>ieee80211n=1<br>wmm_enabled=1<br>ht_capab=[HT40][SHORT-GI-20][DSSS_CCK-40]<br>macaddr_acl=0<br>ignore_broadcast_ssid=0</pre><pre># Use WPA authentication and a pre-shared key<br>auth_algs=1<br>wpa=2<br>wpa_key_mgmt=WPA-PSK<br>rsn_pairwise=CCMP</pre><pre># Network Name<br>ssid=AndroidAP</pre><pre># Network password<br>wpa_passphrase=strong_pass</pre><p>Set default config of hostapd by editing the file<strong> /etc/default/hostapd</strong> and set the DAEMON_CONF variable.</p><pre>DAEMON_CONF=”/etc/hostapd/hostapd.conf”</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*XH5MsrbmN-2MBCCDsJGOgw.png" /></figure><p>Enable hostapd service to start it automatically when Raspberry is turning on (I had to unmask hostapd).</p><pre>systemctl unmask hostapd<br>systemctl enable hostapd<br>systemctl start hostapd</pre><h4>DHCP Server</h4><p>To make life easier and avoid setting static IP of the mobile phone when connecting with the network, we have to set up the DHCP server.</p><pre>apt-get install dnsmasq<br>mv /etc/dnsmasq.conf /etc/dnsmasq.conf.orig</pre><p>Create file /etc/dnsmasq.conf and paste the below text.</p><pre># DHCP server active for WLAN interface<br>interface = wlan0</pre><pre># DHCP server not active for existing network<br>no-dhcp-interface = eth0</pre><pre># IPv4 address range and lease time<br>dhcp-range = 192.168.200.100,192.168.200.150,24h</pre><p>Before commissioning, it is recommended to test the configuration.</p><pre>dnsmasq --test -C /etc/dnsmasq.conf</pre><p>The syntax check should succeed with “OK”.</p><p>Enable IP forwarding to make Raspberry function as a router and connect different networks together. Edit file /etc/sysctl.conf and uncomment the below line.</p><pre>net.ipv4.ip_forward=1</pre><p>Enable dnsmasq service.</p><pre>systemctl restart dnsmasq<br>systemctl enable dnsmasq</pre><p>After the upper instructions you should be able to connect with the AndroidAP Wi-Fi network, have assigned IP address and connect to the RaspberryPi through SSH.</p><p>I would recommend installing some hacking automation tools (ex. Wifite).</p><pre>apt-get install wifite</pre><p>Of course you can do it just with aircrack-ng tools, but it will be faster and simpler to do it for example with Wifite. Using this tool you will not need to open more terminal windows and type complicated commands in your smartphone that are not comfortable.</p><h3>Hacking</h3><p>When we have configured the Raspberry Pi, we have to connect the rest of the parts. I’m using the power bank with a capacity of 10 000 mAh, that should be enough for many hours of work. As an external WiFi adapter I’m using TP-LINK TL-WN722N which supports monitor mode and frames injection, and is one of the most popular adapters for that work. After joining the parts, we can connect to Raspberry from the phone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yj_5BxDgc6EravE1ysrSHg.jpeg" /><figcaption>Mobile Raspberry Pi Hacking Set</figcaption></figure><h4>Configuration of the connection</h4><p>When Raspberry is turned on we should be able to notice the AndroidAP wireless network and to connect. Of course, the internet will not be available.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*uy96oFmHVLs6phjs0BjTPw.jpeg" /></figure><p>We can use the JuiceSSH app for Android to connect through SSH to the Raspberry Pi. After the installation configure the app as below and add the identity for the root user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*8l-D9p79rQJEI_EiBCtFMQ.jpeg" /><figcaption>SSH connection configuration in JuiceSSH</figcaption></figure><h3>Attack</h3><p>When the connection is added, we can switch to the Connections tab and tap the created connection to initialize it. Accept the host verification and after a while you will be connected and able to execute commands on the Raspberry Pi. To initiate the attack with Wifite use the below command.</p><pre>wifite --showb</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ECmzw5bpZmBKrI3DkFjfIg.jpeg" /><figcaption>Wifite —list of wireless networks</figcaption></figure><p>Wifite will scan for the nearby networks. When you will notice the target network of the victim, press CTRL+C and enter the number of that network to start the attack. Wifite will automatically perform a deauthentication attack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y7poZhGlKL35WQ0lGlwvIA.jpeg" /><figcaption>The capture of the handshake</figcaption></figure><p>After capturing the handshake Wifite will try to crack it with a simple passwords dictionary. Otherwise you can later copy the handshake from Raspberry Pi and try to crack on a more powerful machine with Hashcat.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pLss_-f8s-6a91PNfwau-g.jpeg" /><figcaption>Handshake cracked with Wifite</figcaption></figure><h3>Summary</h3><p>The article was created to show the possibilities of hacking with the Raspberry Pi. The set allows being stealth because it can hide in a pocket or under a jacket. A malicious person who could perform an attack would look like any other person with a smartphone. Anyone will think that person is checking social media and not conducting an attack on a WiFi network. Remember that performing such tests it is illegal without written permission. I hope the article made you curious and you have enjoyed it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9feb2b43a49" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>