Remote Exploit Forums

Go Back   Remote Exploit Forums > Archives > BackTrack 3 Final > BackTrack3 Howtos


BackTrack3 Howtos Add your howto articles / tutorials here.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-24-2008, 11:33 PM
Just burned his ISO
 
Join Date: Oct 2008
Posts: 1
Default Howto: Compile TrueCrypt 6.1 on BT3-Final

/offtopic:

First of all, as this is my first post on the forum, I want to thank all the people involved in this community and of course all the guys from remote-exploit for putting together this great distro!
Thanks to you people I've been learning a great deal in the past few weeks and I have a feeling there is lots more to come! Once again, thanks.

And now to the topic.


/ontopic:

Since I am using quite a lot of external hard drives which are all crypted using TrueCrypt 6.1, I wanted to be able to use them on BT3 too. unfortunately, BT3-Final still comes with an outdated version of TrueCrypt. So I sat down and learned how to compile the current TrueCrypt 6.1.

It wasn't really that hard, basically some reading of and thinking about the right information that comes along with the downloads.

First of all, we will need the sourcefiles of Truecrypt, which can be downloaded here:


Code:
hxxp://www(dot)truecrypt(dot)org/downloads2.php

See that you the Linux/Mac OS tar.gz file AND the corresponding PGP signature file, just so we can make sure we got the "real deal" here... This we will do by taking a look at "gpg" to verify the source code we just got is valid and not tempered with.

Now if you don't know what gpg is, feel free to search google, because to explain all the features and their usage of gpg would be far beyond my little tutorial here. Just so much: Me just found out that messing with it might be a Pretty-Good-Precaution for future communication... On the other hand, if you are the trustworthy and "I-don't-think-the-world-is-bad-cause-everyone-is-full-of-good-intentions" kind of person, feel free to skip this part (and maybe consider doing a reboot into the M$-world)

Otherwise, you will need to fire up a terminal and do a:


Code:
wgex hxxp://truecrypt(dot)sourceforge(dot)net/TrueCrypt-Foundation-Public-Key.asc

to get the public key, which we will than import into gpg:


Code:
gpg --import TrueCrypt-Foundation-Public-Key.asc

Now we can finally verify that we got the correct source files by typing:


Code:
gpg --verify TrueCrypt\ 6.1\ Source.tar.gz.sig TrueCrypt\ 6.1\ Source.tar.gz

After that we should get a good signature message in return from gpg, telling us that our downloaded file is the original, unmodified source code given out by the authors.

Next would be to untar the source and change the pwd to the new directory:


Code:
tar -zxvf TrueCrypt\ 6.1\ Source.tar.gz
cd truecrypt-6.1-source

To actually compile the binaries of TrueCrypt 6.1, a


Code:
less Readme.txt

tells us we will need the RSA Security Inc. PKCS #11 Cryptographic Token Interface (Cryptoki) 2.20 header files and where we can get them. So we will do a


Code:
wgex fxp://ftp(dot)rsasecurity(dot)com/pub/pkcs/pkcs-11/v2-20/cryptoki.h
wgex fxp://ftp(dot)rsasecurity(dot)com/pub/pkcs/pkcs-11/v2-20/ct-kip.h
wgex fxp://ftp(dot)rsasecurity(dot)com/pub/pkcs/pkcs-11/v2-20/opt-pkcs11.h
wgex fxp://ftp(fot)rsasecurity(dot)com/pub/pkcs/pkcs-11/v2-20/pkcs-11v2-20a3.h
wgex fxp://ftp(dot)rsasecurity(dot)com/pub/pkcs/pkcs-11/v2-20/pkcs-11v2-20a3d3.h
wgex fxp://ftp(dot)rsasecurity(dot)com/pub/pkcs/pkcs-11/v2-20/pkcs11.h
wgex fxp://ftp(dot)rsasecurity(dot)com/pub/pkcs/pkcs-11/v2-20/pkcs11f.h
wgex fxp://ftp(dot)rsasecurity(dot)com/pub/pkcs/pkcs-11/v2-20/pkcs11t-consolidated-d1.h
wgex fxp://ftp(dot)rsasecurity(dot)com/pub/pkcs/pkcs-11/v2-20/pkcs11t.h
wgex fxp://ftp(dot)rsasecurity(dot)com/pub/pkcs/pkcs-11/v2-20/pkcs11t.h.org
which should provide us with the needed files now being stored in the source code directory. After that we should be ready to create a working binary from the source by including the PKCS header files by typing:


Code:
make PKCS11_INC=/root/truecrypt-6.1-source

Of course you would have to adjust the code of the PKCS11_INC variable to your needs, if you happen to work in a different directory structure. Just make sure it points to the PKCS files we got earlier.

If everything goes well, we should end up with a nice working binary of TrueCrypt 6.1 in the "/root/truecrypt-6.1-source/Main" directory. We can now change into this directory, copy the compiled file to "/usr/bin" and thus overwriting the old binary of TrueCrypt 4.3a (I think it was). To keep things clean, we can also delete the directory with the source code as we don't need it anymore.


Code:
cd /root/truecrypt-6.1-source/Main
cp truecrypt /usr/bin/
cd /root
rm -rf truecrypt-6.1-source

That's it folks. For the looks and feels one might want to right-click on the K --> Menu-Editor, navigate to Backtrack --> Miscellaneous --> Truecrypt and uncheck the "Run in terminal" box. Also, in the "Command" text field, make sure truecrypt doesn't get any arguments passed on startup through the menu. Save the KDE Menu Editor, hit the X and off you go...

I hope this tutorial is of any use for someone. Shouldn't be to hard to walk through, as a rather beginning user as myself could figure this out and get it to compile.

Any comments, suggestions and critics are wellcome. Thanks again guys and have fun playing around with this info as I did.

Cheers
FreqVer

PS: x = t
(dot) = .
Reply With Quote
  #2 (permalink)  
Old 11-25-2008, 12:06 AM
HASSAN's Avatar
Junior Member
 
Join Date: Jan 2006
Location: Riyadh, Saudi Arabia
Posts: 26
Send a message via ICQ to HASSAN Send a message via MSN to HASSAN
Default

Thanks for such a nice HOWTO
__________________
Silence of the Soul
Reply With Quote
  #3 (permalink)  
Old 05-09-2009, 05:10 PM
Member
 
Join Date: Apr 2009
Posts: 42
Default

Am I correct in assuming this installation with work the same with BT4?
Reply With Quote
  #4 (permalink)  
Old 05-10-2009, 09:10 AM
archangel.amael's Avatar
Moderator
 
Join Date: Nov 2007
Location: I changed it for you.
Posts: 4,187
Default

Quote:
Originally Posted by cynicalpsycho View Post
Am I correct in assuming this installation with work the same with BT4?
Considering that it is posted in the bt3 sub-forum and the title is in regards to bt3 final. I would assume that your assumption may be incorrect.
But I do not like to assume. So it would be best to either try it out and see.
Or go to truecrypt website and do it your self.
They have a very nice and easy to follow set of instructions.
More than likely it will not work since you need the sources and you need to make symbolic links.
__________________
Please visit the new forums for any and all help with Back Track 4 Final.
BackTrack-Linux is the new home.
Reply With Quote
  #5 (permalink)  
Old 05-10-2009, 06:23 PM
Member
 
Join Date: Apr 2009
Posts: 42
Default

Quote:
Originally Posted by archangel.amael View Post
They have a very nice and easy to follow set of instructions.
have you been to their site? I've seen absolutely NO installation instructions... for linux that is... it's virtually dummy proof in windows... but I can't find anything on installing it on linux...

Edit: there does however seem to be a little documentation in the readme...

Last edited by cynicalpsycho; 05-10-2009 at 06:59 PM.
Reply With Quote
  #6 (permalink)  
Old 05-11-2009, 09:31 AM
archangel.amael's Avatar
Moderator
 
Join Date: Nov 2007
Location: I changed it for you.
Posts: 4,187
Default

Quote:
Originally Posted by cynicalpsycho View Post
have you been to their site? I've seen absolutely NO installation instructions... for linux that is... it's virtually dummy proof in windows... but I can't find anything on installing it on linux...

Edit: there does however seem to be a little documentation in the readme...
download is a .tar.gz containing an executable setup file with both a rpm or a deb package, embedded within.
That is standard practice to install a deb package. No need for anything special there.Then once installed it is command line with
truecrypt -h to see the options.
There is also a man page included.
Irongeek posted the man page on his site here
http://www.irongeek.com/i.php?page=b...-man/truecrypt
They also have a forum at truecrypt
http://forums.truecrypt.org/
you will need to register to view some things though
And yes I have seen the site and read all of the documentation they have available.
__________________
Please visit the new forums for any and all help with Back Track 4 Final.
BackTrack-Linux is the new home.

Last edited by archangel.amael; 05-11-2009 at 09:35 AM.
Reply With Quote
  #7 (permalink)  
Old 05-11-2009, 05:47 PM
Member
 
Join Date: Apr 2009
Posts: 42
Default

Quote:
Originally Posted by archangel.amael View Post
download is a .tar.gz containing an executable setup file with both a rpm or a deb package, embedded within.
That is standard practice to install a deb package. No need for anything special there.Then once installed it is command line with
truecrypt -h to see the options.
There is also a man page included.
Irongeek posted the man page on his site here
http://www.irongeek.com/i.php?page=b...-man/truecrypt
They also have a forum at truecrypt
http://forums.truecrypt.org/
you will need to register to view some things though
And yes I have seen the site and read all of the documentation they have available.
Thanks amael,
I had already registered for the forums, it's pretty unorganized with alot of questions and very few replies... I'll definitely look into irongeeks page. Thanks again.
Reply With Quote
  #8 (permalink)  
Old 05-11-2009, 08:18 PM
archangel.amael's Avatar
Moderator
 
Join Date: Nov 2007
Location: I changed it for you.
Posts: 4,187
Default

Quote:
Originally Posted by cynicalpsycho View Post
Thanks amael,
I had already registered for the forums, it's pretty unorganized with alot of questions and very few replies... I'll definitely look into irongeeks page. Thanks again.
No problem.
__________________
Please visit the new forums for any and all help with Back Track 4 Final.
BackTrack-Linux is the new home.
Reply With Quote
Reply

Bookmarks

Tags
6.1, compile, howto, truecrypt

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:39 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2