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

    1. Move to the MSF directory in /infosec/
    [email protected]:~# cd /infosec/exploit/metasploit-framework/
    2. examine the contents of msfdb_notbroken_run_as_postgres. These command will need run by the user postgres as so,
    
    [email protected]:/infosec/exploit/metasploit-framework# cat msfdb_notbroken_run_as_postgres 
    #!/bin/bash # run this as postgres user
    createuser msf -P
    createdb --owner=msf msf
    [email protected]:/infosec/exploit/metasploit-framework# su postgres
    [email protected]:/infosec/exploit/metasploit-framework$ createuser msf -P
    Enter password for new role: 
    Enter it again: 
    [email protected]:/infosec/exploit/metasploit-framework$ createdb --owner=msf msf
    [email protected]:/infosec/exploit/metasploit-framework$ exit
    exit
    
    
    3. Whatever password you chose for the msf user must match that in the ./config/database.yml file.
    
    [email protected]:/infosec/exploit/metasploit-framework# cat config/database.yml
    production:
        adapter: postgresql
        database: msf
        username: msf
        password: msf
        host: 127.0.0.1
        port: 5432
        pool: 75
        timeout: 5
    [email protected]:/infosec/exploit/metasploit-framework# 
    
    

    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-mount-shared
    2019 | [email protected] | Douglas Berdeaux