Monday, October 22, 2012

How to Update Java Plugin

Taken from java.com website.


Enable and Configure
Firefox or Mozilla
To configure the Java Plugin follow these steps:
  1. Exit Firefox browser if it is already running.
  2. Uninstall any previous installations of Java Plugin.
    Only one Java Plugin can be used at a time. When you want to use a different plugin, or version of a plugin, remove the symbolic links to any other versions and create a fresh symbolic link to the new one.
  3. Create a symbolic link to the libnpjp2.so file in the browser plugins directory
    • Go to the plugins sub-directory under the Firefox installation directory
      cd <Firefox installation directory>/plugins
    • Create the symbolic link
      ln -s <Java installation directory>/lib/i386/libnpjp2.so

    Note: If you are upgrading your Java version then before creating new symbolic link you should remove old symbolic link to enable latest downloaded Java.

    To remove old symbolic link:
    type cd <Firefox installation directory>/plugins
    rm libjavaplugin_oji.so

    Example
    • If Firefox is installed at this directory:
      /usr/lib/<Firefox installation directory>
    • And if the Java is installed at this directory:
      /usr/java/<Java installation directory>
    • Then type in the terminal window to go to the browser plug-in directory:
      /usr/lib/mozilla/plugins#
    • Enter the following command to create a symbolic link to the Java Plug-in for the Mozilla browser.
      ln -s /home/Pretorians/Documents/Installer/jre1.7.0_25/lib/i386/libnpjp2.so


  4. Start the Firefox browser, or restart it if it is already up.

    In Firefox, type about:plugins in the Location bar to confirm that the Java Plugin is loaded. You can also click the Tools menu to confirm that Java Console is there.

Friday, October 12, 2012

Uniscan Web vulnerability scanner

I recently install Uniscan for a web vulnerability scanner.Below is the step to install Uniscan.

Requirements:
Perl v5.12.3 or later installed on the operating system where the uniscan runs.
you need the following perl modules:
  • Moose
  • threads
  • threads::shared
  • Thread::Queue
  • HTTP::Response
  • HTTP::Request
  • LWP::UserAgent
  • Net::SSLeay
  • Getopt::Std
To install this modules you need use command cpan -i .
Example:


# cpan -i Moose
# cpan -i threads
# cpan -i threads::shared
# cpan -i Thread::Queue
# cpan -i HTTP::Response
# cpan -i HTTP::Request
# cpan -i LWP::UserAgent
# cpan -i Net::SSLeay
# cpan -i Getopt::Std
 
How to use the uniscan:

The uniscan must be run from the command line.

Example: perl uniscan.pl -u http://www.example.com/ -d

OPTIONS:
        -h      help
        -u       example: https://www.example.com/
        -f       list of url's
        -b      Uniscan go to background
        -q      Enable Directory checks
        -w      Enable File checks
        -e      Enable robots.txt check
        -d      Enable Dynamic checks
        -s      Enable Static checks
        -r      Enable Stress checks
        -i       Bing search
        -o       Google search
 
You can get the installer at Uniscan Installer