Results 1 to 8 of 8

Thread: Howto: Compile TrueCrypt 6.1 on BT3-Final

  1. #1
    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) = .

  2. #2
    Banned
    Join Date
    Jan 2010
    Posts
    26

    Default

    Thanks for such a nice HOWTO

  3. #3
    Junior Member
    Join Date
    Mar 2010
    Posts
    43

    Default

    Am I correct in assuming this installation with work the same with BT4?

  4. #4
    Super Moderator Archangel-Amael's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere
    Posts
    8,012

    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.
    To be successful here you should read all of the following.
    ForumRules
    ForumFAQ
    If you are new to Back|Track
    Back|Track Wiki
    Failure to do so will probably get your threads deleted or worse.

  5. #5
    Junior Member
    Join Date
    Mar 2010
    Posts
    43

    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...

  6. #6
    Super Moderator Archangel-Amael's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere
    Posts
    8,012

    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.
    To be successful here you should read all of the following.
    ForumRules
    ForumFAQ
    If you are new to Back|Track
    Back|Track Wiki
    Failure to do so will probably get your threads deleted or worse.

  7. #7
    Junior Member
    Join Date
    Mar 2010
    Posts
    43

    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.

  8. #8
    Super Moderator Archangel-Amael's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere
    Posts
    8,012

    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.
    To be successful here you should read all of the following.
    ForumRules
    ForumFAQ
    If you are new to Back|Track
    Back|Track Wiki
    Failure to do so will probably get your threads deleted or worse.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •