RSS

Encrypt your Files with Truecrypt & Forcefield GUI

This post remains for archive purposes.
I have always been security conscious, in todays world privacy & security is a thing of the past unless we take matters into our own hands. I have used many types of encryption applications, dm-crypt, luks, cryptsetup, encfs, and truecrypt. personally I like truecrypt more than all the others simply because you can hide encrypted files in encrypted files. This is a form of steganography and is a better deterrant to law enforcement than full disk encryption, with that judges and juries seem to think you are indeed hiding something and you should be punished. I found this powefull little applet for gnome that complements truecrypt very nicely. I can simply right click & and create & mount truecrypt volumes.
This is all you do:

wget http://www.truecrypt.org/downloads/truecrypt-4.3a-ubuntu-7.04-x86.tar.gz
wget http://bockcay.de/stuff/programs/forcefield/forcefield_current_all.deb

sudo apt-get install python-crack python-pexpect cracklib2

tar xfz truecrypt-4.3a-ubuntu-7.04-x86.tar.gz
sudo dpkg -i truecrypt-4.3a/truecrypt_4.3a-0_i386.deb
rm -rf truecrypt-4.3a truecrypt-4.3a-ubuntu-7.04-x86.tar.gz

sudo dpkg -i forcefield_current_all.deb
 
Leave a comment

Posted by on January 15, 2012 in Uncategorized

 

Howto: Sniff or Hack someone’s username and password over an SSL encrypted connection with Ubuntu

1. Let’s assume your neighbour uses linux to crack your wep key. After cracking it, he installs ettercap (http://ettercap.sourceforge.net/) on his linux system. If you want to do this at home, I would recommend you to download BackTrack because it already has everything installed. If you want to install it on your own linux distribution, download the source and install it with the following commands:

$ tar -xzvf ettercap-version.tar.gz

$ make

$ make install

To install in Ubuntu simply click here within firefox or:

sudo apt-get install ettercap-gtk

2. After installing, you need to uncomment some code to enable SSL dissection. Open up a terminal window and type “nano /usr/local/etc/etter.conf”, without the quotes. Scroll down using your arrow keys until you find this piece of code:

if you use iptables:

*  # redir_command_on = “iptables -t nat -A PREROUTING -i %iface -p tcp -dport %port -j REDIRECT -to-port %rport”

*  # redir_command_off = “iptables -t nat -D PREROUTING -i %iface -p tcp -dport %port -j REDIRECT -to-port %rport”

You need to uncomment the last two lines.

*  redir_command_on = “iptables -t nat -A PREROUTING -i %iface -p tcp -dport %port -j REDIRECT -to-port %rport”

*  redir_command_off = “iptables -t nat -D PREROUTING -i %iface -p tcp -dport %port -j REDIRECT -to-port %rport”

3. Press CTRL+O, press enter to safe the file and then press CTRL+X.

4. Start Ettercap and click on Sniff > Unified Sniffing > type in your wireless interface and press ok.

5. Press CTRL+S to scan for hosts

6. Go to MITM > ARP poisoning, select sniff remote connections and press ok.

7. Now you (and your neighbour!) can start sniffing! Press start > start sniffing. Walk to another computer on your network and open up paypal or any other site where you need to type in an username/password (gmail, hotmail, digg.com, etc.). All credentials will appear on the computer running Ettercap!

8. When you’re done, don’t just close Ettercap, but go to Start > Stop Sniffing, and then go to MITM > Stop mitm attack(s).

But how does all this stuff work?

Look at the following scheme:

Normally when you type in a password, host 1 (your computer) directly connects to host 2 (your modem or router). But if someone launced Ettercap on your network, host 1 isn’t sending it’s passwords to host 2, but to the Attacking host, the host that’s running Ettercap! The attacking host sends everything to Host 2. This means that host 1 isn’t noticing anything! Exactly the same happens with everything that host 2 is sending. Host 2 doesn’t send packets directly to host 1, but forst to the attacking host.

 
Leave a comment

Posted by on January 15, 2012 in Uncategorized

 

Howto: Mount .ISO, .IMG, .BIN, .MDF, and .NRG in Ubuntu Linux The Easy way

I download .iso’s all the time, and wanted to be able to mount iso’s for winblows games on wine. What this does is map your iso to a filesystem directory. Here is what I did, and here is what you can do as well.

Open Terminal & type :

sudo apt-get install fuseiso

If you are in firefox and have apt-url installed click here to install with one click!

Then lets add ourselves to the fuse usergroup
sudo adduser myusename fuse
If you were not in the fuse group you will need to log off, then back in right now.
Now lets create ourselves a fuseiso folder to mount our iso
sudo mkdir /media/fuseiso
Now we just grabbed an iso off the net, so lets mount it!
sudo fuseiso myisofile.iso /media/fuseiso
Ok now the iso is mounted and we can use it like its a cd/dvd
Nautilus/cd your way to /media/fuseiso and the files from the iso will be mounted readonly.

More information on fuseiso can be found here

 
Leave a comment

Posted by on January 15, 2012 in Uncategorized

 

Install free and open source photo processor Photivo in Ubuntu

Photivo is a free and open source photo processor. It handles your RAW files as well as your bitmap files in a non-destructive 16 bit processing pipe with gimp workflow integration and batch mode.

Photivo tries to provide the best algorithms available; even if this implies some redundancy. So, to my knowledge, it offers the most flexible and powerful denoise, sharpen and local contrast (fake HDR) algorithms in the open source world. (If not, let’s port them ) Although, to get the desired results, there may be a quite steep learning curve .

Photivo is just a developer, no manager and no “Gimp”. It is intended to be used in a workflow together with digiKam/F-Spot/Shotwell and Gimp. It needs a quite strong computer and is not aimed at beginners.

Installation:

Dariusz Duma provides a PPA for Ubuntu with frequently updated that also includes Photivo’s dependences.
Using following commands to add PPA and install Photivo:

sudo add-apt-repository ppa:dhor/myway
sudo apt-get update
sudo apt-get install photivo

Features:
16-bit internal processing, color managed with LCMS2.
Gimp workflow integration (import and export)
Works with RAWs and Bitmaps (8 bit bitmaps are transformed and processed with 16 bit, which usually gives better results).
CA correction, Green equilibration, line denoise, badpixel reduction, wavelet denoise, median filters on RAW data.
Demosaicing: Bilinear, VNG, VNG4, PPG, AHD, DCB, mod. AHD, VCD, LMMSE, AMaZE (needs work!).
RGB, R, G, B, L*, a*, b*, Texture, Detail, Hue, Saturation, L* by Hue, Base curve.
Tonemapping (Reinhard 05 (RGB Brighten), Fattal et al. (Dynamic range compress)).
Several local contrast filters (HiRaLoAm (Local contrast), texture contrast, local contrast stretch).
Sharpen (Edge avoiding wavlets, USM, Highpass, Inverse diffusion, Wiener filter, Gradient sharpen).
Denoise, seperately on Luminance and Color (Edge avoiding wavlets, GreyCStoration, Wavelet, Masked bilateral, Pyramid).
Adaptive saturation.
Film grain simulation.
Black and white conversion.
(Split) Toning.
Cross processing.
Gradual overlay (like Cokin filters).
Vignetting.
Softglow / Orton.
Texture overlay (external texture)

 
Leave a comment

Posted by on January 9, 2012 in Uncategorized

 

FreeCAD – Free 3d CAD application for Linux

FreeCAD is an Open Source CAx RAD based on OpenCasCade, Qt and Python. It features some key concepts like macro recording, workbenches, ability to run as a server and dynamically loadable application extensions and it is designed to be platform independent.

Currently, FreeCAD can import and display CAD models in IGES, STEP, and BRep formats and meshes in STL, BMS, AST and Wavefront OBJ formats. Editing and modeling features are currently somewhat limited.

More about FreeCAD: http://sourceforge.net/apps/mediawiki/free-cad/index.php?title=Main_Page

FreeCAD is available in Ubuntu Software Center, but it may be old. Download latest version here

 
Leave a comment

Posted by on January 9, 2012 in Uncategorized

 

How to create soft link with ln command in linux

To make links between files you need to use ln command. A symbolic link (also known as a soft link or symlink) consists of a special type of file that serves as a reference to another file or directory. Unix/Linux like operating systems often uses symbolic links.
Two types of links

There are two types of links

symbolic links: Refer to a symbolic path indicating the abstract location of another file
hard links : Refer to the specific location of physical data.

How do I create soft link / symbolic link?

To create a symbolic link in Unix or Linux, at the shell prompt, enter the following command:
ln -s {target-filename} {symbolic-filename}

For example create softlink for /home/gurjot/Desktop/syllabi.pdf as /home/gurjot/study/syllabi1.pdf, enter the following command:
ln -s /home/gurjot/Desktop/syllabi.pdf  /home/gurjot/study/syllabi1.pdf
ls -l /home/gurjot/Desktop/syllabi.pd
f

Output:

lrwxrwxrwx 1 gurjot  gurjot   16 2011-08-12 22:53 syllabi1.pdf -> /home/gurjot/Desktop/syllabi.pdf

 
Leave a comment

Posted by on December 29, 2011 in Uncategorized

 

Controlling Bandwidth in ubuntu using Trickle

Trickle is a portable lightweight userspace bandwidth shaper. It can run in collaborative mode (together with trickled) or in stand alone mode.
trickle works by taking advantage of the unix loader preloading. Essentially it provides, to the application, a new version of the functionality that is required to send and receive data through sockets. It then limits traffic based on delaying the sending and receiving of data over a socket. trickle runs entirely in userspace and does not require root privileges.

To install trickle in Ubuntu:

sudo apt-get install trickle

To start Firefox with a limit to the amount of bandwidth it consumes all you have to do is type in the command line.

trickle -d 200 firefox
this would start Firefox with a download limit of 200KB/s.

 
Leave a comment

Posted by on December 29, 2011 in Uncategorized

 

How to type New Indian Rupee Symbol

To display the Indian rupee symbol , you must have a font—such as the Ubuntu Font Family—with support for the character.
Windows users may use the new Rupkara font which has the Unicode postion mapping for the symbol. For  downloading the font, please visit-http://blog.foradian.com/rupakara-first-font-with-indian-rupee-symbol

Ubuntu 10.10 is the first operating system to ship with out-of-the-box support for displaying the Indian Rupee Sign, and this happened on 10 October 2010 (2010-10-10).

To display the Indian rupee symbol for:

# Ubuntu 10.10:< Ctrl-Shift-u > 20b9 < enter >
# MS Windows: < Press-and-hold Alt > 20b9 < Release Alt >
# Kubuntu 10.10: Copy-and-paste ‘₹’
# HTML: insert & # x 2 0 b 9;

 
Leave a comment

Posted by on December 29, 2011 in Uncategorized

 

Super Mario in ubuntu(SuperTux)

Type following command in terminal:

sudo apt-get install supertux

 
Leave a comment

Posted by on December 29, 2011 in Uncategorized

 

Resource Standard Metrics

INTRODUCTION

Resource Standard Metrics, or RSM, is a source code metrics and quality analysis tool unlike any other on the market. RSM provides a standard method for analyzing C, ANSI C++, C# and Java source code across operating systems.  The unique ability of RSM to support virtually any operating system provides your enterprise with the ability to standardize the measurement of source code quality and metrics throughout your organization. RSM provides the fastest, most flexible and easy-to-use tool to assist in the measurement of code quality and metrics.

Why RSM is right for Enterprise

  • RSM is the fastest and most cost effective metrics and analysis tool commercially available
  • RSM complies with SEI-CMM definitions of software metrics
  • RSM is used around the World by leading companies, from Alcatel to Volvo (Export Control Statement)
  • Use this ONE tool across all operating systems – RSM Installation – including all Windows variants, Mac OS X, Linux and UNIX.
  • Use this ONE tool across all project languages for K&R and ANSI C, ANSI C++, C#, and Java 2.0+
  • RSM integrates with Visual Studio, .NET, JBuilder, Eclipse and other popular IDE’s.
  • NO limitations to the file length, number of files, or usage.
  • RSM has quickly processed projects consisting of over 10,000 files and 12,000,000 Lines of Code.
  • Clearly listed prices, easy online ordering with 24 hour or less order fulfillment, NO salespeople or arbitrary pricing!
  • Available as Single-User, Network, or Site License for Windows, Linux and UNIX – Order Form

RSM Metrics & Analysis Features

  • Collect 100′s of Source Code Metrics by the function, class, file, and project – RSM Metrics
  • Collect industry standard functional and object oriented metrics – RSM Metrics
  • Baseline Differentials – Perform metrics between two baselines of code using industry standard Longest Common Sequence Algorithm (LCS) that complies with GNU Diff yet extends the semantics to the specifc type of line modified to comment or line of code.
  • Create labor and cost estimation factors from the metrics – Estimation Factors
  • RSM Quality Analysis – Analyze source code for over 50+ latent programming errors which compilers miss
  • User Defined Quality Notices using Perl Compatible Regular Expressions for unlimted analysis capability
  • Analyze source code for code style enforcement – RSM Quality Analysis
  • Create an Inheritance tree directly from the code – Inheritance Tree
  • Analyze system class inheritance by depth and derivation
  • Interactive with Popular IDEs like Visual Studio and JBuilder – IDE Integration
  • Regenerate source code to remove tabs, and convert between DOS and Unix – De-Character Mode
  • RSM ideal for automatic code metrics collection from script routines – RSM Operation

RSM Report Features

  • Use one tool across all project languages for K&R and ANSI C, ANSI C++, C#, and Java 2.0+ – RSM Options and Reports
  • Determine exactly how RSM sees your code – Deterministic Report
  • Create reports in HTML with hyperlinks to the code – HTML Output Mode
  • Create reports in XML with user XSL translations for custom HTML reports
  • Create reports in CSV format for direct input to MS Excel Spreadsheets – CSV Reports
  • Create reports in Text format for screen, print and import into documents – Text Report
  • Simple command line operation with runtime options making – RSM Options and Reports
 
Leave a comment

Posted by on September 21, 2011 in Uncategorized

 
 
Follow

Get every new post delivered to your Inbox.