Graylog2 OVA appliance

Link

Usage

  • Download the image here
  • For VmWare Player/Fusion right click on the image and select ‘Run with VmWare’
  • For Virtualbox select File->Import Appliance
  • Login to the instance as user ubuntu with password ubuntu
  • Run sudo graylog2-ctl reconfigure
  • Get the IP address of your instance ifconfig eth0
  • Access Graylog2 by pointing your browser to the instance IP http://<instance ip>
  • Login with user admin, password admin

syslog-ng on OpenWrt

Install:

opkg install syslog-ng

Config:

vi /etc/syslog-ng/syslog-ng.conf

Sample (log to remote server):

options {
    chain_hostnames(off);
    sync(0);
    stats(0);
};

source src { unix-stream("/dev/log"); internal(); };
source kernel { file("/proc/kmsg" log_prefix("kernel: ")); };

destination d_udp { udp("192.168.1.214" port(514)); };

log {
    source(src);
    source(kernel);
    destination(d_udp);
};

Check and enable syslog-ng:

/etc/init.d/syslog-ng enable

Start syslog-ng:

/etc/init.d/syslog-ng start

Creating Custom Clean Persistence On a Live Kali Linux Distro

  • Clean, prepare USB Flash Drive fully (with gparted).
  • Create first partition, EXT4, min. cc. size 3Gb, and set boot flag.
  • Make second partition, format EXT4, (re)name ‘persistence’.
  • Install MBR:
    dd if=/usr/lib/extlinux/mbr.bin of=/dev/sda
  • Copy all files from Kali Linux ISO to first partition:
    mkdir /mnt/sr0 /mnt/kali
    mount -o loop /path/to/kali.iso /mnt/sr0/
    mount /dev/sda1 /mnt/kali/
    rsync -a /mnt/sr0/* /mnt/kali
  • Install extlinux:
    cp /mnt/kali/isolinux/isolinux.cfg /mnt/kali/isolinux/extlinux.conf
    extlinux --install /mnt/kali/isolinux/
    
  • Make config on persistence partition:
    mkdir /mnt/persist
    mount /dev/sda2 /mnt/persist/
    echo "/ union" > /mnt/persist/persistence.conf
    
  • Reboot, enyjoy.