Zenmap Installation in Debian using ALIEN package converter

If you are familiar with Security tools or Penetration testing, you definitely must have heard of Nmap.

Zenmap is a GUI of Nmap.

However it is no longer included in later version of Security testing OSs.
Below is an instruction on how to install it on Debian machines.

1) Download the latest RPM package at https://nmap.org/download.html
Optional Zenmap GUI (all platforms): zenmap-7.91-1.noarch.rpm

2) Note it is RPM package, so you will need to convert it to install on Debian. For that, you will need a package converter called ALIEN.

man alien >> alien is a program that converts between Red Hat rpm, Debian deb, Stampede slp, Slackware tgz, and Solaris pkg file formats. If you want to use a package from another linux distribution than the one you have installed on your system, you can use alien to convert it to your preferred package format and install it.

3) Latest version of alien (alien_8.95) seems to have a glitch when installing so, if you happened to have installed that, you will need to uninstall and downgrade to alien_8.90.

Download link below.
http://archive.ubuntu.com/ubuntu/pool/main/a/alien/alien_8.90_all.deb

4) Install using your package manager or command line below.
dpkg -i alien_8.90_all.deb

5) Convert your Zenmap RPM package that you downloaded to .deb
sudo alien zenmap-7.91-1.noarch.rpm

6) Now you will get the .deb package. Install it.
sudo dpkg -i zenmapconvertedfile.deb

7) Thats it. Now you can run your Zenmap on your Debian.







E: Package aptitude has no installation candidate

sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse"
sudo add-apt-repository deb http://archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse 
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse" 
sudo add-apt-repository  "deb http://archive.ubuntu.com/ubuntu/ trusty-proposed main restricted universe multiverse" 
sudo add-apt-repository  "deb http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse" 

# Then install

sudo apt-get install aptitude

Installing Minikube on Linux

To put in a simplest way, Minikube is a compact version of Kubernetes. Minikube -> Mini Kubernetes
Instead of having Master – Slave nodes set up in Kubernetes, Minikube will have all components installed in one single node cluster.
Due to limitation of your infrastructure and resources or if you just want to trial out your Kubernetes clusters, Minikube is the way to go.

Minikube will have Kubernetes Features such as –
– Config Maps, Secrets
– Container Runtime : Docker
– CNI for pod networking
– Ingress
– Dashboard

Below is a set up guide for Minikube on MX Linux.

$ uname -a
Linux mx 5.10.0-5mx-amd64 #1 SMP Debian 5.10.26-1~mx19+1 (2021-04-01) x86_64 GNU/Linux

1. Update Linux
Sudo apt update

2. Install KVM ( any kind of Hypervisor, or you can also install on docker)
Link on how to install KVM
https://tutorialforlinux.com/2020/05/19/step-by-step-kvm-mx-linux-19-installation-guide/4/

3. Download and install Minikube (Minikube has Kubectl dependency, so you will need to install kubectl first)
Minikube reference : https://minikube.sigs.k8s.io/docs/

4. Install Kubectl command line
https://kubernetes.io/docs/tasks/tools/

After all components are installed, you can now start Minikube ..
Simply use the command : minikube start
or just type in the command line minikube and it will give you the list of available commands.

To run minikube in hypervisor –
minikube start –vm-driver=kvm
In my case, KVM or any hypervisor you are going to use.

List of available drivers –
https://minikube.sigs.k8s.io/docs/drivers/

Useful commands –
kubectl cluster-info
kubectl config view
kubectl get nodes
kubectl get pod -o wide to get more information of the pods
kubectl version
minikube status
minikube dashboard –url to access Kubernetes dashboard

You will need minikube commands only at the beginning. The rest is the same as using normal kubernetes, you just need to use kubectl command.

Regards

Teza

USB drive shrink in size how to fix

Recently I have had some USB sticks which volumes shrank.
These are some of the snapshots of how my USB drive looks like.
It is actually supposed to be 16 GB drive, however showing wrong size.
If you have similar issue, read on.

Below is how it shows on My PC.


Below is how it shows on disk management.



Below is a fix to USB drives showing wrong size.

1) Open Command Prompt as an administrator. Once DISKPART is opened, type in below commands colored in RED.
2) diskpart
3) list disk you will see a list of disks currently attached. Its very important you have to make sure you select the right disk.
4) in my case I had to type : select Disk 2
5) clean
6) create partition primary
7) list partition
8) format fs=NTFS (let it complete formatting, it normally takes a few minutes)
Once done, it will show correct disk size of your USB.

โŒ Exiting due to MK_ENABLE: run callbacks: running callbacks: [waiting for app.kubernetes.io/name=ingress-nginx pods: timed out waiting for the condition]

Apparently there seems to be an issue with creating Ingress controller in Minikube version 1.21

when you try to run – minikube addons enable ingress, it will be stuck at Verifying ingress addon and will come up with time out error. So far, doesnt seem like there is a fix for it. Edit: apparently if you stop / start and re run minikube addons enable ingress, it seems to be fixed.

$ minikube addons enable ingress
๐Ÿ”Ž Verifying ingress addonโ€ฆ

โŒ Exiting due to MK_ENABLE: run callbacks: running callbacks: [waiting for app.kubernetes.io/name=ingress-nginx pods: timed out waiting for the condition]

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ โ”‚
โ”‚ ๐Ÿ˜ฟ If the above advice does not help, please let us know: โ”‚
โ”‚ ๐Ÿ‘‰ https://github.com/kubernetes/minikube/issues/new/choose โ”‚
โ”‚ โ”‚
โ”‚ Please attach the following file to the GitHub issue: โ”‚
โ”‚ – /tmp/minikube_addons_b9d409a27fb1ea07e9f9f77a8866bd7b473d6d28_0.log