Index

  • Installing Demon Linux in VMWare
  • Up and Running with Armitage
  • Adding New Screen Resolutions
  • Mounting VMWare Shared Drives
  • VLC as "root"
  • Installing Demon Linux for VMWare Player

    The Default root password is "weaknet" without quotes.

    Before installation, you will have to obtain and install VMWare Player (free) 12+ from the VMWare website

    Download the Demon Linux ISO

    Download the Demon Linux ISO from demonlinux.com.

    Once downloaded, create the new Virtual Machine by starting VMWare Player and clicking the "Create a New Virtual Machine" on the left-hand side of the window pane. Follow the on screen directions to make sure that you have 2 Processors and at least 4GB of RAM.

    If booting from a LIVE ISO with no intention to install the software, you can make the hard disk 1GB in size and delete it later.

    If you plan to install the OS on a virtual disk (recommended), chosoe at least 30GB disk space as you will need room for the OS and all of your personal files.

    Up and Running with Armitage

    Set up and run PostGRESQL

    The commands are already cached in the posgres user's history. You can just hit the up arrow to get to them, but first we must set up the user and database with the follwing commands:

    [email protected]:/infosec/exploitation/metasploit-framework# su postgres
    [email protected]:/infosec/exploitation/metasploit-framework$ createuser msf -P -S -R -D
    Enter password for new role:
    Enter it again:
    [email protected]:/infosec/exploitation/metasploit-framework$ createdb -O msf msf
    [email protected]:/infosec/exploitation/metasploit-framework$ exit
    exit
    [email protected]:/infosec/exploitation/metasploit-framework# /etc/init.d/postgresql start
    [ ok ] Starting postgresql (via systemctl): postgresql.service.
    [email protected]:/infosec/exploitation/metasploit-framework#


    Then, simply update the file, /infosec/exploitation/metasploit-framework/config/database.yml With the following lines: (The tabs/indentation are important)

    production: &pgsql
      adapter: postgresql
      database: msf
      username: msf
      password: msf
      host: localhost
      port: 5432
      pool: 200
      timeout: 5

    Adding New Screen Resolutions

    To add new screen resolutions, we will use the xrandr command. In this exam,ple, I will be adding "1920x1080" as a custom resolution to my installed Demon. [email protected]:~# xrandr
    Screen 0: minimum 1 x 1, current 1680 x 1050, maximum 16384 x 16384
    Virtual1 connected primary 1680x1050+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
    800x600 60.00 + 60.32
    2560x1600 59.99
    1920x1440 60.00
    1856x1392 60.00
    1792x1344 60.00
    1920x1200 59.88
    1600x1200 60.00
    1680x1050 59.95*
    1400x1050 59.98
    1280x1024 60.02
    1440x900 59.89
    1280x960 60.00
    1360x768 60.02
    1280x800 59.81
    1152x864 75.00
    1280x768 59.87
    1024x768 60.00
    640x480 59.94
    Virtual2 disconnected (normal left inverted right x axis y axis)
    Virtual3 disconnected (normal left inverted right x axis y axis)
    Virtual4 disconnected (normal left inverted right x axis y axis)
    Virtual5 disconnected (normal left inverted right x axis y axis)
    Virtual6 disconnected (normal left inverted right x axis y axis)
    Virtual7 disconnected (normal left inverted right x axis y axis)
    Virtual8 disconnected (normal left inverted right x axis y axis)
    [email protected]:~# cvt 1920 1080
    # 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
    Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
    [email protected]:~# xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
    [email protected]:~# xrandr --addmode Virtual1 "1920x1080_60.00"

    Mounting Shared Drives in VMWare Tools

    First, VMToolsd will need to be installed from the VMware software. Boot up Demon Linux in VMWare and then click on "Player->Manage->Install VMWare Tools" in the top left drop-down menu. This will mount the CDROM of VMWare Tools. Simply copy the tarball for the VMwareTools into /tmp and extract it. Then run through the installer script. Finally create a new mount point fo rthe Host->Guest share as /mnt/vmware/

    Next, we can use the following script to mount the share,
    [email protected]:~# vmware-shared-mount

    VLC as "root"

    To run VLC as user root, we must first install VLC like so,
    [email protected]:~# apt install vlc
    Then, we simply need to run the following sed command to allow VLC execution as user "root",
    [email protected]:~# sed -i 's/geteuid/getppid/' /usr/bin/vlc
    2019 | [email protected] | Douglas Berdeaux