Using 2 LAN interface at the same time

By default, Kali Linux does not enable all connected interfaces e.g. dmz, intranet. You can enable it, using this steps:

This is my example and configuration steps for a VM with eth0 and eth1 adapters :

  1. First of all, open your Network Manager and remove all the profiles. By default you should have Wired Connection 1. Remove it. "/etc/NetworkManager/system-connnections" folder should be empty !

  2. Be sure you have no remaining configuration in your adapters. Open eth0, eth1 and choose to "forget" the configurations.

  3. Click on eth0 and then Add Profile. Then choose a name (can be anything) "eth0" in the profile identity.

  4. IMPORTANT STEP : choose the eth0 adapter Mac address in the @mac list. This step is important because this is the link between the profile and the adapter

  5. Configure your networks settings and then click Add to finish the Profile Configuration

  6. Follow step 3/4/5 again for eth1 and of course choose eth1 @mac when needed.

That's it ! You now have your 2 adapters with a Profile for each adapter with specific configurations and you can use them simultaneously

source-can-be-active-at-a-time)

Also, do not forget to configure via /etc/network/interfaces and make sure your preferred interface match with mac address in your VMware settings.

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# dmz
allow-hotplug eth1
iface eth1 inet static
        address 192.168.2.101/24
        gateway 192.168.2.1
        dns-nameservers 8.8.8.8

# Add route to internal network
# up route add -net 10.13.37.0/24 gw 192.168.2.1 dev eth1

# By default, kali does not enable support for using two interfaces at the same time

# intranet
allow-hotplug eth0
iface eth0 inet static
        address 10.13.37.231/24
        gateway 10.13.37.1

post-up ip route add 10.0.0.0/8 dev eth0 src 10.13.37.231 table rt2
post-up ip route add default via 10.13.37.1 dev eth0 table rt2
post-up ip rule add from 10.13.37.231/8 table rt2
post-up ip rule add to 10.13.37.231/8 table rt2

Enable SSH on Kali Linux

Install SSH via apt package manager.

apt install ssh

Add user to avoid root usage for SSH.

adduser user

Add new user into sudoers

adduser user sudo

Edit /etc/ssh/sshd_config to disable root and enable port 22.

Port 22
...
PermitRootLogin no

Things to do after installing Kali Linux

After installing Kali Linux, do not forget add this repository.

deb http://http.kali.org/kali kali-rolling main contrib non-free
deb http://security.kali.org/kali-security kali-rolling/updates main contrib non-free

If error do this.

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys

Sharing files on Kali Box

Upload your files into Dropbox, then share it. Don't forget to shorten it first (e.g. bit.ly).

```

# Installing Android Studio

Download zip files from official site.

Extract it.

Run via `bin/studio.sh`.

Wait until installation finished.

# Installing Jadx-GUI

Jadx-GUI is tool for reading reversed APK. By default doesn't exist on Kali.

Install it via https://github.com/skylot/jadx
cd jadx
./gradlew dist


# Installing KVM for Android Emulator supports

Check if `/dev/kvm` exists, install this packages:

sudo apt install -y qemu-kvm libvirt0 virt-manager bridge-utils sudo reboot


If you use VMware, enable hardware virtualization in CPU section.

![](/assets/enable-kvm.PNG)

# Installing ADB

sudo apt install adb ```

Things to do after install Android Studio

Install ARM Emulator Install x86 Emulator

results matching ""

    No results matching ""