Wednesday, February 16, 2011

Ubuntu 10.10 Install Foca to Capture Metadata

You can Find out more about Foca by watching the following two presentations 1 - 2 or HERE.


Before you install FOCA your gonna need two applications.
1: Wine
2: Unrar


To install Wine just throw the following into Terminal
sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.3


To install Unrar just throw the following into Terminal
sudo apt-get install unrar

Now we move on to download Foca and the Dll's package it needs to run. Your going to have to supply an Email address at the following link to be giving a link to the actual file, but it's literally that simple. You should get a response mail back right away
http://www.informatica64.com/DownloadFOCA/

Now download the Dll package in order to make Foca run properly
https://sites.google.com/site/h4ckpl4y3s/DllsFOCA.rar

Now your ready to install Foca :)

1) Extract FOCA_Free_2.5.6.zip and Double click Setup.msi (Wine Begins)

2) Copy and paste this into Terminal:
winetricks dotnet20 fontfix gdiplus

3) Browse to: Start -> Wine -> Browse C: Drive -> Program Files -> Informatica64 -> FOCA free and move DllsFOCA.rar into this folder.

4) Your going to need to rename (take out the space) DllsFOCA.rar to unrar this file, afterwards Open a Terminal and copy and paste this:
unrar e DllsFOCA.rar

You should now have a Foca Free Icon on your desktop, just double click it and enjoy.

Source

Monday, February 14, 2011

PLAY /TMP FILE VIDEOS AND CACHED FILES

Over HERE I wrote a simple script using Virchanza's walk-through to grab Videos from Firefox's  cache folder. Normally if I seen a video I liked it was as easy as going to the /tmp folder and retrieving it, however something got broke somewhere using this method.

Andrew over at www.webupd8.org wrote a really cool script that solves this problem, and what makes his script even better, is the capability of saving those dreaded _CACHE_001_ files. You can find Andrew's script HERE. Below is his script using SMplayer replacing vlc.


#!/bin/bash

FLASH_TMP=`ls /tmp | grep Flash*`

if [[ $FLASH_TMP ]]; then
     mplayer /tmp/Flash*
else
     if [[ `ps x | awk '/libgcflashplayer.so\ /{print $1}'` ]]; then
          flashvids() { lsof -p `ps x | awk '/libgcflashplayer.so\ /{print $1}'` -n 2>/dev/null | perl -lne '@F = split(/ +/, $_, 9); print "/proc/$F[1]/fd/${\($F[3] =~ /(^\d+)/)[0]}" if $F[4] eq "REG" && $F[8] =~ /\(deleted\)$/'; }
     else
          flashvids() { lsof -p `ps x | awk '/libflashplayer.so\ /{print $1}'` -n 2>/dev/null | perl -lne '@F = split(/ +/, $_, 9); print "/proc/$F[1]/fd/${\($F[3] =~ /(^\d+)/)[0]}" if $F[4] eq "REG" && $F[8] =~ /\(deleted\)$/'; }
     fi

     cp $(flashvids) ~/Desktop/flashvideo.flv

fi

Another thing I normally would do is pause what ever video I'm watching from various sites and open it up from the /tmp folder with SMplayer. Luckily  Andrew covered that area as well, its as easy as changing the last line from.

cp $(flashvids) ~/Desktop/flashvideo.flv   to   smplayer $(flashvids)

Just create a Launcher for instant fun.

Thankyou Andrew for this great script, it has been really helpful to me and I'm sure an overwhelming amount of others. Please visit http://www.webupd8.org

 Source

Tuesday, October 19, 2010

Ubuntu 10.10 WebSite Information Collecter

Just a simple Bash Script to Collect a little Information from Websites: I might update this Script at a later time....


#!/bin/bash

echo
echo -n -e "\e[1;34mWhat is the Host Address? \033[0m"
read IPLOOKUP
clear
echo
echo
echo -e "\e[1;34mInformation Collected: \033[0m"
IPADDRESS=$(dig $IP | sed -nr 's/^[^;].*?\s([.0-9]{7,15})$/\1/ p')

#var_url="http://ipinfodb.com/ip_query2.php
#var_url="http://ipinfodb.com/ip_query2.php?ip=$address

if [ "$IPLOOKUP" == "" ]; then
     var_url="http://ipinfodb.com/ip_query2.php"
else
     var_url="http://ipinfodb.com/ip_query2.php?ip=$IPLOOKUP"
fi

var_xml=`wget -q $var_url -O -`

var_ip=`echo $var_xml | grep -o "<Ip>[0-9 \.]*<\/Ip>" | \
     sed -e 's/<Ip>//' -e 's/<\/Ip>//'`

var_country=`echo $var_xml | grep -o "<CountryName>[A-Z a-z \s]*<\/CountryName>" | \
     sed -e 's/<CountryName>//' -e 's/<\/CountryName>//'`

var_state=`echo $var_xml | grep -o "<RegionName>[A-Z a-z \s]*<\/RegionName>" | \
     sed -e 's/<RegionName>//' -e 's/<\/RegionName>//'`

var_city=`echo $var_xml | grep -o "<City>[A-Z a-z \s]*<\/City>" | \
     sed -e 's/<City>//' -e 's/<\/City>//'`

host=$(host $var_ip | cut -d' ' -f5)

case "$IPLOOKUP" in
 www.*|WWW.*) echo "Domain Name:  $IPLOOKUP";;

 *) echo "Domain Name:  www.$IPLOOKUP";;
esac

echo "IP Address:   $var_ip"
echo "Host Name:    $host"
echo "Country:      $var_country"
echo "State/Region: $var_state"
echo "City:         $var_city"
echo "Map it:       http://ipinfodb.com/ip_locator.php?ip=$var_ip"
echo "All Domains:  http://www.my-ip-neighbors.com/?domain=$var_ip"
echo
echo
echo -e "\e[1;34mAlternative IP Addresses:\033[0m"
dig $IPLOOKUP | sed -nr 's/^[^;].*?\s([.0-9]{7,15})$/\1/ p'
echo
echo
echo -e "\e[1;34mGrabbing Banner:\033[0m"
sleep 2
printf "HEAD / HTTP/0.1\r\n\r\n" |nc -v -n -i2 $var_ip 80
echo
echo -en "\033[s\e[1;34mDigging Mail Servers: "
echo -en "\033[u\033[0m"
prefix1=www.${IPLOOKUP#www.}
dig $prefix1 MX +noall +answer
prefix2=${IPLOOKUP#www.}
dig $prefix2 MX +noall +answer
echo
echo
echo -en "\033[s\e[1;34mStarting Nmap: "
echo -en "\033[u\033[0m"
nmap -sV $var_ip
echo
echo
echo -e "\e[1;34mHost Scanned:\033[0m"
case "$IPLOOKUP" in
 www.*|WWW.*) echo "Domain Name:  $IPLOOKUP";;

 *) echo "Domain Name:  www.$IPLOOKUP";;
esac
echo "IP Address:   $var_ip"
echo
echo -e "\e[1;34m-END-\033[0m"
echo

echo
echo
echo -n "Gather Info form another Host? ";setterm -cursor off
while read -n 1 yourinput ;setterm -cursor on
do
echo
 case "$yourinput"
 in
 y)
clear
cd /HackScripts/WebAnalyzers/NetHostSearch/
  ./NetHostSearch.sh
  ;;
 *)
 echo Quiting....
 echo
bash
  ;;
 esac

done
bash

-END-

Source1
Source2
Source3 

Monday, October 18, 2010

Ubuntu 10.10 Let me Google that for you

Google is king, any question you want answered most likely has been answered a million times over. Somewhere lyes the answer, seek and you shall find. But why not just take a short cut and ask again :) And maybe you'll get a response like this one HERE

Link your own search term:
http://lmgtfy.com/