Monthly Archives: July 2015

Eclipse – Add Java Gradle Project to existing Eclipse Project

How to add a java Gradle Project into an existing Eclipse project

Start by importing your required Java Gradle projects into Eclipse’s Project Explorer.

Highlight your main project in Project Explorer.

This is the project you want to add a Gradle java project to (so you can use import statements on packages found in the other Gradle project).

On the Main toolbar menu go to

Project > Properties > Java Build Path > Projects (tab) > Add (button)

A list of projects in the current Project Explorer will show up in a window.

Select the java project that you wish to use within your main project, that is not already on the Build Path.

Click OK.

Eclipse should refresh / rebuild automatically and check for import statements for references to the newly added project from your main project.

Kill Tomcat on Mac

How To Kill Tomcat on Mac when IntelliJ IDEA or Eclipse has crashed or you forgot to stop Tomcat before closing Eclipse.

Step 1: find which java process is Tomcat

  • Start Activity Monitor (Applications > Utilities), then order list by Process name
  • Scroll to find java processes
  • Note the PID #’s (process ID’s)

Step 2: Pause java processes while checking Tomcat address

  • From a browser load your normal Tomcat address, e.g. http://localhost:8080/
  • You should get some sort of response, perhaps a Whitelabel Error page if using Spring
  • repeat below until Tomcat stops responding:
    • pause java PID using: kill -STOP <PID>
      • replace <PID> with the actual process ID # you found from Activity Monitor
      • example: kill -STOP 25532
    • reload Tomcat web address
    • if web page no longer responds (just continues to load), you’ve found Tomcat
      • otherwise (wasn’t Tomcat), unpause process: kill -CONT <PID>
      • example: kill -CONT 25532
    • move to next process ID number in Activity Monitor with name “java” and repeat steps

Step 3: Kill Tomcat on Mac

  • kill the Tomcat java process in Terminal using command: kill -9 <PID>
    • example: kill -9 25532
  • Check: Reload Tomcat webpage in browser.  Should show “This webpage is not available”

Android Security Fix MMS Flaw

Android security fix MMS flaw – Turn Off MMS Message Auto retrieve.

Below is only a workaround for Android’s MMS Security Flaw (aka Stagefright)

Please update your Android phone ASAP.  There are several other flaws related to Stagefright that this workaround will not help!

Android Security Fix Steps

Step 1 – Hangouts or Messaging

If you’re using Google Hangouts for SMS/MMS, open Hangouts app. (For Messaging app?)

Step 2 – Settings

Click on Settings

Step 3 – SMS

Click on SMS

Step 4 – Multimedia (MMS) Messages > Auto retrieve MMS = OFF

(Click to) remove the checkbox from Auto retrieve MMS.  You’re done.

 

Stagefright flaw in Android exploits how Android’s MMS (Multimedia Messages) system automatically downloads MMS content (e.g. video) to be read / cached locally, without any user interaction.  This automatic reading of the MMS content allows attackers to embed their virus / trojan payload into a video which will automatically be run by Android’s Content Provider / Stagefright system.

This Google Android Vulnerability MMS Flaw was found by Joshua Drake (twitter) of Zimperium.

More info links on Android MMS Flaw & Stagefright

http://blog.zimperium.com/experts-found-a-unicorn-in-the-heart-of-android/

http://www.forbes.com/sites/thomasbrewster/2015/07/27/android-text-attacks/

Android Media / Stagefright

Android Messaging MMS Security Flaw Fix

If you’re using Android Messaging app, instead of Google Android Hangouts, follow these steps…

Step 1 – Open Messaging app & Messaging Settings

Step 2 – Multimedia (MMS) Messages – Auto-retrieve OFF

Scroll down to Multimedia (MMS) Messages.

Uncheck Auto-retrieve.  You’re done.