Linux

OSSIM has limited or no connectivity: Make sure your network connection is active and try again

OSSIM has limited or no connectivity: Make sure your network connection is active and try again

In the event that you receive this message “Limited or no connectivity: Make sure your network connection is active and try again.” while trying to link OSSIM to the Open Threat Exchange (OTX) it may be that your DNS entries need adjusting. Simply SSH to the OSSIM environment and in the menu go to System Preferences, then Configure Network and Name Server (DNS) where you can change the entry to your required DNS settings.

Ensure you go back to the main menu and select Apply all Changes, this should then update the configuration file and solve the issue. You may however find that this does not help, in which case, go to  Jailbreak System and using the usual Linux navigation edit the file /etc/network/interfaces  check your details and if needed, change the DNS entry. Once complete, save and type exit, you will be returned to the main menu.

At this point you might wish to reboot the device.

Vi, commands at a glance – basic

Vi can often be daunting, so here is my Vi commands at a glace list.
Inserting:
r            Replace character under cursor with next typed character.
R           Replace characters under cursor until esc is pressed.
i            Insert before cursor.
a           Append after cursor.
A           Append at the end of the line.
O          Open line above cursor and enter append mode.
Deleting:
x            Delete character under cursor.
dd          Delete line under cursor.
dw         Delete word under cursor.
db          Delete word before cursor.
Write File:
:w          Saves the current file without quitting.
Exiting vi:
:wq        Exit and save changes.
:q!         Exit without saving.
 

Installing VMware tools – Ubuntu

Installing VMware tools – Ubuntu requires you to navigate to the toolbar and find the option to Install VMware tools, click on it and download it if required. Once the button is pressed, it will mount the drive in Ubuntu, a folder will auto open but can also be found in the Devices section of Files. Double click VMwareTools-……..tar.gz then select vmware-tools-distrib and click Extract and choose your destination directory, in my case Desktop and then click extract. Close the Extractor and now the files exist in a usable state for you to install.

  1. Open up Terminal and type cd ./Desktop/ and hit Enter to get terminal to look at the Desktop, type ls (lima sierra) if you want to check the contents.
  2. Type cd vmware-tools-distrib and hit Enter then sudo ./vmware-install.pl and hit Enter then type in your password when prompted.
  3. Accept the /usr/bin directory as the default by hitting Enter unless you want to use another.
  4. Confirm the directory that contains the init directories by hitting Enter and repeat for the init scripts, daemon files and library files.
  5. On a first install, /usr/lib/vmware-tools won’t exist, the installer will ask for confirmation to create it so hit Enter.
  6. Confirm the documentation files directory by hitting  Enter and repeat for creating the folder.
  7. Now the final request to confirm you want to run the program, hit Enter or if you have done all of the above by mistake type no and hit Enter.

Subsequent requests for confirmation will be made and are detailed below.

  • Do you want to allow shared folders between the Guest OS and the Host? Hit Enter or type no and hit Enter.
  • /usr/bin/gcc appears valid, do you want to change it? Hit Enter or type yes and hit Enter.
  • Searching for a valid kernel header path, do you want to change it? Hit Enter or type yes and hit Enter.
  • Do you want to allow copy and paste and dragging between host and guest? Hit Enter or type no and hit Enter.
  • Would you like to enable VMware automatic kernel modules? Hit Enter or type yes and hit Enter.
  • Enable Thinprint printing? Hit Enter or type no and hit Enter.
  • Enable guest authentication? Hit Enter or type no and hit Enter.

Installation will complete and a reboot will be required for all features to become available. Type sudo reboot and hit Enter the system will then reboot and you can use Ubuntu happily.

Installing Ubuntu Server

Insert the bootable Media and ensure that the machine will read from it during boot. Select the Language you desire and then Install Ubuntu Server. Again you are prompted for language but this is the installation language rather than the page instructions, key up or down and then press Enter, select your country and then select Yes to detect the keyboard layout before following the instructions. Once you are happy that the correct keyboard layout has been generated, click Continue, give your server a name and click Continue. Enter the Name of the User you wish to create, followed by the Username and hit Continue for each. Enter a Password for the user and click Continue, then enter the Password again to confirm it and hit Continue, before selecting No for home directory encryption (this option is up to you). Next is the Time Zone setting, if you are happy with what is preset, select Yes, if not click no and correct it appropriately.

Next is the Partition configuration, press  Enter to continue with the default “Guided – use entire disk and set LVM”, select the partition you wish to use and press Enter. If you are happy to write the changes you have opted for, select Yes and then press Enter, confirm the amount of the disk you wish to use by pressing Enter. Confirm changes and write to disk by selecting Yes and pressing Enter. Enter your Proxy details if necessary or leave blank if you don’t need it and press Enter. Select how you want to keep your system up to date, in this guide I have opted for No automatic updates and press Enter.

Now the basic install is nearly over, you can select which elements you want to add to your Server but essentially you have a Server ready to install whatever you wish onto it. I personally like to add OpenSSH server so as to be able to work from a machine of my choice rather than from the device itself. Select all that you wish to by pressing spacebar and then pres Enter. Next choose Yes and press Enter to install the GRUB boot loader on the hard disk. Press Continue to finish and reboot the machine but make sure you remove the installation media before you do so.

Once booted, log in to the user you chose at the beginning of the installation and run sudo apt-get update, if you installed the most up to date distribution this should run without a hitch. For good measure, run sudo apt-get upgrade and the relevant software upgrades will now be installed. The server is now ready to be manipulated to whatever use you have planned for it, run ifconfig and note the IP address so that you can SSH into it from your desk.

Installing Raspbian OS

The minimum size for Raspbian OS is 4GB and is generally downloaded from http://www.raspberrypi.org/downloads/ before being installed to an SD card.

Windows

In order to prepare the SD card for installation from a Windows platform, download the following software http://fedoraproject.org/wiki/Fedora_ARM_Installer#Windows_Vista_.26_7.

  1. Extract the files to a folder of your choice
  2. Eject any devices or storage media
  3. Insert your chosen media
  4. Right click fedora-arm-installer.exe and select Run as Administrator
  5. Select your source image (downloaded from raspberypi)
  6. Select destination (ensuring it is correct as it will format it)
  7. Click Install (this may take a while)

Mac

A shell script is available to prepare the SD card from https://github.com/RayViljoen/Raspberry-PI-SD-Installer-OS-X

  1. Extract the files to a folder called Raspberry-PI-SD-Installer-OS-X-master
  2. Move the image file downloaded from raspberrypi to the folder specified in point 1.
  3. Open Terminal type cd and the full folder path of Raspberry-PI-SD-Installer-OS-X-master
  4. Eject any devices or storage media
  5. Type sudo ./install *name of file*.img and enter the Mac password
  6. Enter the number relating to the installation device

Your SD card should now be ready for running of setup here

Reference:
https://learn.adafruit.com/adafruit-raspberry-pi-lesson-1-preparing-and-sd-card-for-your-raspberry-pi

Patching Shellshock – Mac

In the event that you discover your Mac is vulnerable to Shellshock, the following action should be taken.

To check whether you are vulnerable see Identifying Shellshock for full details on how to identify it.