Archive
SSH Config
If you use ssh a lot and you’re not in a Windows environment to use PuTTY, create a file – .ssh/config – with the following information:
Host myHost HostName x.x.x.x User userName Host myHost2 HostName y.y.y.y User userName2
LibreOffice Base to View Access DB
This is a summary of a post found on askubuntu.com. Useful for opening up an acquired accdb file on Debian/Ubuntu.
One-time setup:
- Make sure LibreOffice Base is installed – sudo apt-get install libreoffice-base
- Download UCanAccess and extract it – http://ucanaccess.sourceforge.net/site.html
- Launch LibreOffice (not Base, just the main launcher)
- Tools > Options > Advanced > Class Path
- Add Archive: /root/Downloads/UCanAccess-3.0.7-bin/loader/ucanload.jar
- Close LibreOffice Launcher
Per-Database setup:
- Launch Base
- Connect to an existing DB (JDBC)
- Datasource URL – jdbc:ucanaccess:///path/to/.accdb/file
- JDBC driver class – net.ucanaccess.jdbc.UcanloadDriver
- Next, leave blank
- Finish/Save
PowerShell Empire on AWS
I ran into quite a few issues setting up PowerShell Empire on an amazon ec2 server in the free tier. The following commands took quite a bit of research to figure out. Hopefully they will be usefull to others in the near future.
sudo pip install flask sudo pip install --upgrade pip (beware, this broke pip, had to then use easy_install) sudo yum install python27-pyOpenSSL.x86_64 sudo easy_install pyopengl* (not sure if necessary, but came across it on a post and things started working) sudo easy_install pydispatcher sudo easy_install iptools git clone https://github.com/Hypernode/M2Crypto.git sudo yum install swig sudo yum install openssl-devel sudo yum install gcc ./fedora_setup.sh build sudo python setup.py install sudo ./empire
Install Bare-bones Debian 5 (Lenny) on VMWare Workstation
I’m just getting started with creating my own virtual environment so that I can start figuring out Nessus, WebInspect, Nmap, and several other scanning tools. This is the process I followed to setup a bare-bones (no GUI) Debian 5 linux system.
Download ISO
- Download the 8MB .iso image – mini.iso
Create and Configure VM
- File > New > Virtual Machine
- Custom, Next
- Choose desired workstation compatibility (e.g., Workstation 5)
- Installer disc image file (.iso), locate downloaded .iso from step 1
- Guest OS – Linux
- Version – Other 2.6.x kernel, Next
- Enter desired VM name and location for VM
- Select number of processors (e.g., 1)
- Select memory to allocate, 256MB should be plenty, Next
- Choose desired network connection (because of my location on my network I chose NAT), Next
- I/O Adapter type, leave default (LSI Logic), Next
- Create a new virtual disk, Next
- Virtual Disk Type – SCSI
- Max disk size 8GB (I chose to split into 2GB chunks, but it’s up to you), Next
- Name disk file or leave default, Next
- Check ‘Power on this virtual machine when finished’, Finish
Install and Configure OS
- You must be connected to the internet for this installation
- Choose Advanced options, hit enter
- Choose Expert install, hit enter
- Choose language – default (highlighted), enter
- Choose country – default (highlighted), enter
- Choose locale – default (highlighted), enter
- Choose other locales – hit ‘tab’, and then enter
- Choose keyboard – default (highlighted), enter
- Choose keymap – default (highlighted), enter
- Detect network hardware – default (highlighted)
- Start PC card – default (highlighted)
- PCMCIA (should be blank) – tab and then enter
- Detect network hardware – default (highlighted)
- Config network – default (highlighted)
- Primary network – default (highlighted)
- Auto DHCP – choose YES
- Hostname – name it what ever you like, tab and then enter
- Domain name (should be blank) – hit tab then enter
- Choose mirror – default (highlighted)
- Protocol for file download – default (highlighted)
- Debian archive mirror country – default (highlighted)
- Debain archive mirror – choose whatever one is possibly closest to you
- HTTP Proxy (should be blank, unless you’re behind a proxy) – tab then enter
- Debian version to install – default (highlighted)
- Download installer components – default (highlighted)
- Installer components to load (choose nothing, should be default) – tab then enter
- Configure the clock – default (highlighted)
- Set clock using NTP – default (highlighted)
- NTP server to use – default, hit tab then enter
- Select your timezone, enter
- Detect disks – default (highlighted), enter
- Partition disks – default (highlighted), enter
- Partition method – choose ‘Guided – use entire disk’, enter
- Select disk to partition – default (highlighted), enter
- Partitioning scheme – default (highlighted, unless you’d prefer something else), enter
- Partition overview – default (highlighted), enter
- Write changes to disks – choose yes
- Install base system – default (highlighted)
- Kernel to install – choose linux-image desired (at the time of this I’ve chosen -2.6.26-2-686)
- Drivers to include in the intitrd – default (highlighted)
- Setup users and pass – default (highlighted)
- Enable shadow pass – default (highlighted)
- Allow login as root – default (highlighted)
- Root pass, tab and then enter
- Confirm root pass, tab and then enter
- Normal user account – choose no and then enter
- Configure the pack manager – default (highlighted)
- Use non-free software – default (highlighted)
- Use contrib software – default (highlighted)
- Services to use – default, tab then enter
- Select and install software – default (highlighted)
- participate in package usage – default (highlighted)
- Choose software to install – choose nothing (deselect selected), tab and then enter
- Install the Grub boot loader – default (highlighted)
- Install Grub 2 – default (highlighted)
- Install the Grub boot loader to master boot record – default (highlighted)
- Grub password (should be blank) – tab and then enter
- Finish the installation – default (highlighted)
- System clock set to UTC – default (highlighted)
- Installation is complete – default (highlighted)
- System reboots