Archive for the ‘docker’ Category

In this tutorial, I will explain how to install gdb (gnu debugger) in Docker container. If you are using ubuntu, you can install it using below command (don’t try, this is for sample only):

darklinux@darklinuxpc:~$ sudo docker run -it --name ubuntu-gdb ubuntu:bionic /bin/bash
root@55e461812aff:/# apt-get update
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Get:3 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [8815 B]
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:5 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [59.3 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:7 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [930 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]
Get:9 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [852 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
Get:12 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1385 kB]
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [1226 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [73.6 kB]
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [20.1 kB]
Get:17 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [8158 B]
Get:18 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [8286 B]
Fetched 17.9 MB in 19s (933 kB/s)
Reading package lists... Done

Read Full Post »

What is DVWA?

DVWA is web application that is designed to be hacked. It was written using PHP and use MYSQL as its database. There are few level of difficulties for you to test your hacking skill in a legal environtment. It will help web developers, teachers, students or any one who are interested in learning web security application. In Indonesia, 8 years in jail for hacking penalty. So, dvwa is a good option.

Before we start, I assume that you are already has and familiar with Docker Container and XAMPP server. If not, you can read my article about how to install xampp in docker.

Lets start. First, you have to download the dvwa application and xampp from its source:

In this tutorial, I use xubuntu 18.04 64bit as host, Docker 18.09.9, i386/ubuntu:bionic for docker image and XAMPP for Linux 7.1.32 for php/mysql server.

Step 1. Copy dvwa files to opt/lampp/htdocs directory in docker container

First, you have to extract the file DVWA-master.zip
darklinux@darklinuxpc:~$ ls -l DVWA-master.zip
-rw-rw-r-- 1 darklinux darklinux 1350473 Mei 11 15:20 DVWA-master.zip
darklinux@darklinuxpc:~$ unzip DVWA-master.zip



Read Full Post »

Xampp is a free and open source croos-platform web server developed by Apache Friends. The term of Xampp are come from:
X → meaning cross platform
a → apache server
m → mariaDB database (formly MySQL)
p → PHP language
p → PERL language
MariaDB replaced MySQL starting 19 October 2015 (xampp version 5.5.30 & 5.6.14).
You can download new version of xampp from:

In this tutorial, I use xubuntu 18.04 64bit as host, Docker 18.09.9, i386/ubuntu:bionic for docker image and XAMPP for Linux 7.1.32 for php/mysql server.

You can download docker image that already has Xampp but the size is very big (1.4GB).
See below:
docker-xampp02If we use minimum ubuntu (64MB), the size will be much smaller.

Step 1. Download the docker image.
Open your Linux terminal and type the command below:

darklinux@darklinuxpc:~$ sudo docker pull ubuntu:bionic
[sudo] password for darklinux:
bionic: Pulling from library/ubuntu
23884877105a: Pull complete
bc38caa0f5b9: Pull complete
2910811b6c42: Pull complete
36505266dcc6: Pull complete
Digest: sha256:3235326357dfb65f1781dbc4df3b834546d8bf914e82cce58e6e6b676e23ce8f
Status: Downloaded newer image for ubuntu:bionic

It will download the ubuntu:bionic image from the docker repository.


Read Full Post »

Before we start, it’s better I will explain about Virtualization first. Virtualization is a technique to run any application in different environment. The idea of virtualization is to run any software in any hardware.

Is Virtualization the same with Emulation?
I will try to explain in simple english.
For example, I run Play Station game on PC. Is it Virtualization or Emulation?
Well, it’s emulation.

So, what is the different?
Although, both virtualization and emulation have similarities (create virtual hard disk, memory, and other hardwares), the different is, emulation is dedicated only to run a specific application.
For example, Play station emulator for PC. This emulator is designed to run play station game only. You can’t run SEGA game on this emulator.

And also, the other different is, there is no interaction between emulator and host (pc system). Meanwhile with virtualization, you can install any application on it and interact with the host.

Below are few well known virtualization software (virtual machine):
-Parallel Desktop
-Citrix Hypervisor
-Xen Project
-Microsoft Hyper-V


Read Full Post »