How to install lemon in termux | Termux tutorial Uk2blogger

January 23, 2022
In this blog, I'm going to teach you

How to install L3MON/LEMON in Termux (lemon rat android)

Before moving further we must know what is Lemon or L3MON?
Lemon is an APK builder RAT (Remote Access Trojan) for android. This blog is only for educational purposes. I never suggest someone to use Lemon Rat in an unethical way. EFX Tv may not be responsible for any kind of consequences. You can use L3mon to check your security measures and fix them accordingly. Lemon GitHub termux links have some dependency error we will talk about that after a while.
The topic we are going to talk about is listed below.
  • Requirements for Lemon in termux?
  • How to install Lemon in termux Black?
  • How to configure the Lemon in termux?
  • How to build Lemon APK in termux?
  • How to fix lemon error in termux (Sub-process /data/data/com.termux...)?
  • How to fix lemon error in termux (There was a problem while parsing the package)
  • Download Lemon/L3mon debina file for termux
  • L3MON Builds of and utilizes several open-source software and is highly inspired by for AhMyth RAT project. We are going to talk about how to install LEMON in termux. For the desktop version, you can click here. Also, visit our official partner who use to publish ListOfCommands for tools/hacks/ethical hacking tricks and error fixes on Kali Linux, Termux, and some other Linux distributions. We will also fix the lemon error in Termux Sub-process /data/ data/ com.termux/ files/ usr/bin/ dpkg returned an error code (1).
    Requirements for Lemon in Metasploit?
    1. Latest version of termux and termux API (f-droid)
    To install the latest version of Termux and Termux API you have to visit termux.com. Download the f-droid app store, search for Termux and Termux API one by one and install them read more...
    or you can click on the image embedded below to watch the full video where I've explained everything in a detailed way.
    Install Metasploit in termux
    pkg update; pkg upgrade
    pkg install wget curl
    cd $HOME;wget https://raw.githubusercontent.com/efxtv/Metasploit-in-termux/main/metasploit-6-termux.sh -q;bash metasploit-6-termux.sh 
    rm -rf /data/data/com.termux/files/usr/bin/msfvenom
    cd;cd metasploit-framework;ln -s $HOME/metasploit-framework/msfvenom /data/data/com.termux/files/usr/bin/
    cd metasploit-framework;
    sed -i '13,15 {s/^/#/}' /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/transport/encryption_algorithm/functionable.rb; sed -i '14 {s/^/#/}' /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/transport/server_host_key_algorithm/ecdsa_sha2_nistp256.rb; sed -i '14 {s/^/#/}' /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/transport/server_host_key_algorithm/ecdsa_sha2_nistp384.rb; sed -i '14 {s/^/#/}' /data/data/com.termux/files/usr/lib/ruby/gems/3.1.0/gems/hrr_rb_ssh-0.4.2/lib/hrr_rb_ssh/transport/server_host_key_algorithm/ecdsa_sha2_nistp521.rb;
    clear;echo "Done...."
    
    
    2. Install Termux black by Hax4us
    Once you are done with the above steps now install the Termux Black. Termux Black maintained by Hax4us. The repository has, haxRat, l3mon, beef-xss, ssh-honeypot. Here is the termux black install command read more... Again we already have explained everything in a separate article. The video is embedded below.
    3. Install apkmod
    What is APKMOD? This is another well-known tool part of termux black repositories. It helps in binding msfvenom and lemon rat with another legit APK without root. APKMOD will be one of the most required repositories for Lemon as it helps to generate the APK using the nodejs server.
    To install the APKMOD in your termux to fulfill the requirements for lemon RAT follow the steps written below:

    Step 1. Run the command to download apkmod binary.
    cd $HOME
    wget https://raw.githubusercontent.com/Hax4us/Apkmod/master/setup.sh
    

    Step 2. Execute the binary file you have just downloaded. Install apkmod in termux
    bash setup.sh

    Step 3. Run the command to install apkmod2
    apt install apkmod2
    How to install Lemon in termux Black?
    To install the lemon in termux all you need to do is fulfill the requirements listed above and run the command written below:
    (if you get the error
    Sub-process /data /data/ com.termux/files/usr/ bin/dpkg returned an error code (1)
    move to the 2nd last question after an update and upgrade)
    apt update
    apt upgrade
    apt install nodejs && npm install -g npm@6.14.10
    

    How to configure the Lemon in termux?
    Follow the steps carefully:
    Step 1. Type command is written below
    lemon
    Step 2. Press ctrl +c to close the session.
    We run the command to start and generate maindb.json file we need to edit.

    Step 3. Edit the maindb.json file
    Go to google and type md5 hash generator or click here . Type a password you want to keep (in the box) and hit generate as shown in the image below. Password should have upper and lower case alphabets only (no special characters and numbers). Example Lovelinux, subsCribeEFXtv,Errorfixed or type the command mentioned below to generate md5 hash
    echo -n "installLemon" | md5sum|awk '{print $1}'
    Step 4. Copy and paste md5 hash to lemon maindb.json file
    Run the command to edit the lemon maindb.json file and paste the hash at the same place shown in the image below. Make sure you should not remove anything apart from the text I've removed.
    nano ../usr/share/lemon/server/maindb.json
    How to build Lemon APK in termux?
    To build the lemon APK you need to follow the steps written below: Step 1. Type command
    lemon

    Step 2. Open your favorite browser and paste everything in the URL bar to visit l3mon login page
    http://127.0.0.1:22533

    Step 3. Type username and password
    user = admin
    password = you changed

    Step 4: See the image below and type IP and port
    IP 127.0.0.1
    Port 22222
    How to fix lemon error in termux (Sub-process /data/data/com.termux...)?
    The error

    Sub-process /data /data /com.termux /files /usr/bin/ dpkg returned an error code (1)

    while installing the lemom is common. There is some dependency in the default lemon repository by termux black. To avoid or fix this you need to download the custom Debian file lemon_2.1-2_all.deb which has been created on the old npm 6.14.10 to fix the lemon error in termux.

    I've faced the same error and managed to fix it with the help of commands written below:
    Run the command to install nodejs and npm version 6.14.10.
    apt install nodejs && npm install -g npm@6.14.10

    >This link will redirect you to the Telegram zip file. To view, the files click on the link below. If you don't know about Telegram it is one of the fastest-growing social media apps has lots of features compared to other social media apps. There are lots of groups and pages that Teach Ethical hacking and cyber security. Install and find them all.

    Click below and download
    lemon_2.1-2_all.deb

    Install lemon_2.1-2_all.deb by using command
    dpkg -i lemon_2.1-2_all.deb

    Ignore all the errors. Now you are set to go with Lemon in termux
    Follow the steps How to configure and build Lemon apk in termux?
    How to fix lemon error in termux (There was a problem while parsing the package)
    After installing the Lemon. Generate the payload and click on download you will see the error "There was a problem while parsing the package". To fix APK parsing error in termux you please run the command.
    cd $HOME
    cd lemon
    cp build.apk /sdcard
    Now open your device file manager and install the build.apk. If it fails to execute. Fix the APK using APK Editor. Edit the APK as shown in the article. Cheers !!! you are free to use Lemon on your android device for ethical purposes only. You can also bind the Lemon APK with a legit APK in termux.

    We have successfully installed the lemon in termux. If you have any questions on that just let me know in the telegram group or Instagram. This was it for the day. If you find it helpful. Please subscribe to my channel and consider following me on GitHub and Instagram.

    Full video will be uploaded soon

    Uk2blogger