Brute-Force Truecrypt Password

Did you forget your Truecrypt password?

Not to worry, using simple search in Google I found a script in this site, and I adapt it for my needs, I post it  here because it could be helpful to other.

To succesful run the script you will required to install AutoITscript, that is AutoIt v3 is a freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting. It uses a combination of simulated keystrokes, mouse movement and window/control manipulation in order to automate tasks in a way not possible or reliable with other languages (e.g. VBScript and SendKeys). AutoIt is also very small, self-contained and will run on all versions of Windows out-of-the-box with no annoying “runtimes” required!

The script will use all the character or words that in the variable $Array, to run on all the possibilities and combination of any order, from 2 combination to 7 combination and try to open the container. The script will run until it will find a match or it will exhaust any of your given possibilities.

Note:

  • $truecryptPath is the path of your TrueCrypt program
  • $containerPath is the path to the container that you wont to open
  • If the script find the right password it automatically mount the container to one of the free drive letters and open explorer to it.
  • The path to the TrueCrypt program and to your container MUST be in DOS-8 characters format, to get it you need to use “dir /x” and CMD.
  • you also can save time by eliminate character that you absolutely sure that you didn’t use in your password oryou can change every place in the array to possible combination of your passwordfor example: if I have same patterns for my password and I am using only combination of it
    • date of my child = 1308200
    • ID number = 123456789
    • name of the neighbor = moshe
    • family name = ofnick

Add  those to the $Array  and run all combination of your favorites password to save you time by running the script only on your your combination password

AutoIt v3 is a freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting. It uses a combination of simulated keystrokes, mouse movement and window/control manipulation in order to automate tasks in a way not possible or reliable with other languages (e.g. VBScript and SendKeys). AutoIt is also very small, self-contained and will run on all versions of Windows out-of-the-box with no annoying “runtimes” required!

So here is the script:

dim $one, $two, $three, $four, $five, $six, $seven, $eight, $pw, $pp, $count, $truecryptPath, $containerPath
 $truecryptPath = "C:PROGRA~1TrueCryptTrueCrypt.exe /q background /s "
 $containerPath = "d:cscs2.tre"
 dim $numberOfCharacters = 92
 dim $Array[$numberOfCharacters+1]
 $Array[0]="a"
 $Array[1]="b"
 $Array[2]="c"
 $Array[3]="d"
 $Array[4]="e"
 $Array[5]="f"
 $Array[6]="g"
 $Array[7]="h"
 $Array[8]="i"
 $Array[9]="j"
 $Array[10]="k"
 $Array[11]="l"
 $Array[12]="m"
 $Array[13]="n"
 $Array[14]="o"
 $Array[15]="p"
 $Array[16]="q"
 $Array[17]="r"
 $Array[18]="s"
 $Array[19]="t"
 $Array[20]="u"
 $Array[21]="v"
 $Array[22]="w"
 $Array[23]="x"
 $Array[24]="y"
 $Array[25]="z"
 $Array[26]="A"
 $Array[27]="B"
 $Array[28]="C"
 $Array[29]="D"
 $Array[30]="E"
 $Array[31]="F"
 $Array[32]="G"
 $Array[33]="H"
 $Array[34]="I"
 $Array[35]="J"
 $Array[36]="K"
 $Array[37]="L"
 $Array[38]="M"
 $Array[39]="N"
 $Array[40]="O"
 $Array[41]="P"
 $Array[42]="Q"
 $Array[43]="R"
 $Array[44]="S"
 $Array[45]="T"
 $Array[46]="U"
 $Array[47]="V"
 $Array[48]="W"
 $Array[49]="X"
 $Array[50]="Y"
 $Array[51]="Z"
 $Array[52]="!"
 $Array[53]="@"
 $Array[54]="#"
 $Array[55]="$"
 $Array[56]="%"
 $Array[57]="^"
 $Array[58]="&"
 $Array[59]="*"
 $Array[60]="("
 $Array[61]=")"
 $Array[62]="_"
 $Array[63]="+"
 $Array[64]="~"
 $Array[65]="`"
 $Array[66]="1"
 $Array[67]="2"
 $Array[68]="3"
 $Array[69]="4"
 $Array[70]="5"
 $Array[71]="6"
 $Array[72]="7"
 $Array[73]="8"
 $Array[74]="9"
 $Array[75]="0"
 $Array[76]="-"
 $Array[77]="="
 $Array[78]="["
 $Array[79]="]"
 $Array[80]=""
 $Array[81]="{"
 $Array[82]="}"
 $Array[83]="|"
 $Array[84]=";"
 $Array[85]=":"
 $Array[86]="'"
 $Array[87]=""""
 $Array[88]=","
 $Array[89]="."
 $Array[90]="/"
 $Array[91]="?"
$count = 0
 for $two = 0 to $numberOfCharacters
 for $one = 0 to $numberOfCharacters
 $pw = $Array[$one]
 $pw &= $Array[$two]
 $count = $count+1
 $pp  = Run(@COMSPEC & " /c " & $truecryptPath & " /p "& $pw & " /e /m ro /m rm /v " &$containerPath )
 ProcessSetPriority($pp, 0)
if $count>25 then
 While ProcessExists($pp)>0
 Wend
 EndIf
Next
 Next
While ProcessExists($pp)>0
 Wend
$count = 0
 for $three = 0 to $numberOfCharacters
 for $two = 0 to $numberOfCharacters
 for $one = 0 to $numberOfCharacters
 $pw = $Array[$one]
 $pw &= $Array[$two]
 $pw &= $Array[$three]
 $count = $count+1
 $pp  = Run(@COMSPEC & " /c " & $truecryptPath & " /p "& $pw & " /e /m ro /m rm /v " &$containerPath )
 ProcessSetPriority($pp, 0)
if $count>25 then
 While ProcessExists($pp)>0
 $count = 0
 Wend
 EndIf
Next
 Next
 Next
While ProcessExists($pp)>0
 Wend
$count = 0
 for $four = 0 to $numberOfCharacters
 for $three = 0 to $numberOfCharacters
 for $two = 0 to $numberOfCharacters
 for $one = 0 to $numberOfCharacters
 $pw = $Array[$one]
 $pw &= $Array[$two]
 $pw &= $Array[$three]
 $pw &= $Array[$four]
 $count = $count+1
 $pp  = Run(@COMSPEC & " /c " & $truecryptPath & " /p "& $pw & " /e /m ro /m rm /v " &$containerPath )
 ProcessSetPriority($pp, 0)
if $count>25 then
 While ProcessExists($pp)>0
 $count = 0
 Wend
 EndIf
Next
 Next
 Next
 Next
While ProcessExists($pp)>0
 Wend
$count = 0
 for $five = 0 to $numberOfCharacters
 for $four = 0 to $numberOfCharacters
 for $three = 0 to $numberOfCharacters
 for $two = 0 to $numberOfCharacters
 for $one = 0 to $numberOfCharacters
 $pw = $Array[$one]
 $pw &= $Array[$two]
 $pw &= $Array[$three]
 $pw &= $Array[$four]
 $pw &= $Array[$five]
 $count = $count+1
 $pp  = Run(@COMSPEC & " /c " & $truecryptPath & " /p "& $pw & " /e /m ro /m rm /v " &$containerPath )
 ProcessSetPriority($pp, 0)
if $count>25 then
 While ProcessExists($pp)>0
 Wend
 $count = 0
 EndIf
Next
 Next
 Next
 Next
 Next
While ProcessExists($pp)>0
 Wend
$count = 0
 FOR $six = 0 to $numberOfCharacters
 for $five = 0 to $numberOfCharacters
 for $four = 0 to $numberOfCharacters
 for $three = 0 to $numberOfCharacters
 for $two = 0 to $numberOfCharacters
 for $one = 0 to $numberOfCharacters
 $pw = $Array[$one]
 $pw &= $Array[$two]
 $pw &= $Array[$three]
 $pw &= $Array[$four]
 $pw &= $Array[$five]
 $pw &= $Array[$six]
 $count = $count+1
 $pp  = Run(@COMSPEC & " /c " & $truecryptPath & " /p "& $pw & " /e /m ro /m rm /v " &$containerPath )
 ProcessSetPriority($pp, 0)
if $count>25 then
 While ProcessExists($pp)>0
 Wend
 $count = 0
 EndIf
Next
 Next
 Next
 Next
 Next
 Next
While ProcessExists($pp)>0
 Wend
$count = 0
 for $seven = 0 to $numberOfCharacters
 FOR $six = 0 to $numberOfCharacters
 for $five = 0 to $numberOfCharacters
 for $four = 0 to $numberOfCharacters
 for $three = 0 to $numberOfCharacters
 for $two = 0 to $numberOfCharacters
 for $one = 0 to $numberOfCharacters
 $pw = $Array[$one]
 $pw &= $Array[$two]
 $pw &= $Array[$three]
 $pw &= $Array[$four]
 $pw &= $Array[$five]
 $pw &= $Array[$six]
 $pw &= $Array[$seven]
 $count = $count+1
 $pp  = Run(@COMSPEC & " /c " & $truecryptPath & " /p "& $pw & " /e /m ro /m rm /v " &$containerPath )
 ProcessSetPriority($pp, 0)
if $count>25 then
 While ProcessExists($pp)>0
 Wend
 $count = 0
 EndIf
Next
 Next
 Next
 Next
 Next
 Next
 Next
While ProcessExists($pp)>0
 Wend
for $eight = 0 to $numberOfCharacters
 for $seven = 0 to $numberOfCharacters
 FOR $six = 0 to $numberOfCharacters
 for $five = 0 to $numberOfCharacters
 for $four = 0 to $numberOfCharacters
 for $three = 0 to $numberOfCharacters
 for $two = 0 to $numberOfCharacters
 for $one = 0 to $numberOfCharacters
 $pw = $Array[$one]
 $pw &= $Array[$two]
 $pw &= $Array[$three]
 $pw &= $Array[$four]
 $pw &= $Array[$five]
 $pw &= $Array[$six]
 $pw &= $Array[$seven]
 $pw &= $Array[$eight]
 $count = $count+1
 $pp  = Run(@COMSPEC & " /c " & $truecryptPath & " /p "& $pw & " /e /m ro /m rm /v " &$containerPath )
 ProcessSetPriority($pp, 0)
if $count>25 then
 While ProcessExists($pp)>0
 Wend
 $count = 0
 EndIf
Next
 Next
 Next
 Next
 Next
 Next
 Next
 Next

נגמר בהמקום ב-רום של המכשיר?

מי שיש את המכשיר הזה בטח שם לב לחיסרון היחיד שלו, זיכרון פנימי נמוך
ראיתי משהו בפורום של XDA בלינק הבא : http://forum.xda-developers.com/showthread.php?t=1025610
שים לב!!! רק אם אתה יודע מה אתה עושה תמשיך לקרוא!!! על אחריותך בלבד!!!

FOTA זה קיצור דרך של firmware over the air וזה לא רלוונטי לנו הישראלים שהבאנו המכשיר הנ”ל מחול…..
אז למה לנו בערך 300 מגה של שטות גמורה, ביחוד ואנו מחליפים רומים על ימין ושמאל…
אז להלן התרגום,
ליפני הכל! הטלפון חייב להיות עם יכולת לעבוד עם ROOT

1. תוריד את הקובץ שצרפתי שזה בעצם קבצי מחזיקי מקום
2. התקן תוכנת סייר קבצים שיודעת לראות ולכתוב על הרום כלומר שיש לה הרשאת מנהל (ROOT) לפעול!
3. פתח את הקובץ זיפ שמצורף להודעה הזאת לתוך סיפרית

/data/fota

ודרוס את הקבצים שהיו שם!
4. אתחל מחדש את המכשיר
5. בדוק כמה זיכרון פנימי פנוי יש לך…

______________________
אני לא לוקח שום אחריות על תוצאות של הנאמר פה!! גם ישירין וגם בעקיפון.
מה שנכתב פה נעשה על המכשיר שלי וזה עבד מעולה.

How to make more space in ROM of Samsung Galaxy S 4GS

How to Delete Fota files

Step 1: Download the files to your computer and upload them to your your phone.

Step 2: Install any ROOT File Expert

Step 3:  Make sure that the File Explorer can mount and write on the ROM system files.

Step 4: Extract fota.zip file and select Unzipped fota files (fota_delta_dp1 and fota_delta_dp2) to /data/fota or paste the 2 files in this folder

Step 5: Reboot phone

WALLA!!

Now check your free space in the ROM.

SimFree – Samsung Galaxy == סים פרי לטלפון סמסונג גלקסי

אם ברשותכם מכשיר מסוג Sumsung Galaxy S  מדגם 4G שנקנה בארץ או בחו”ל ואתם רוצים לממש את זכותכם בתור בעלי המכשיר לנייד אותו בין מפעילים בארץ, ללא צורך לשלם לחברות הסלולר (סלקום, אורנג’,פלאפון)

להלן מדריך לשחרור נעילת סים (Sim-Free) ללא צורך בתשלום לחברת הסלולר.

המדריך הנ”ל נוסה בהצלחה על מכשיר Sumsung Galaxy S  מדגם 4G.

ראשית, אתם חייבים להיות מנהלי המכשיר! כלומר משתמש בשם ROOT, לשם כך עליכם להתקין על המחשב שלכם תוכנה root בנוסף עליכם להוריד תוכנה לעריכת Hex לדוגמה

עכשיו לחלק הטכני.

בכדי לבדוק בכלל האם המכשיר שברשותכם נעול? עליכם לפתוח את החיגן במכשיר ולהקיש: #7465625#*   אם אחד מהתשובות שהמכשיר כותב הוא ON אזי המכשיר שלכם נעול ואתם צריכים להמשיך במדריך!

צעד ראשון:
הורד את הקובץ nv_data.bin  מהמכשיר, השתמש בתוכנה ” adb shell” שנמצאת SuperOneClick   והכנס את הסקריפט הנ”ל

su
cat /efs/root/afs/settings/nv_data.bin >> /sdcard/nv_data.bin

 כעת הקובץ nv_data.bin נימצא בכרטיס זיכרון.

צעד שני:
חבר את הסמסונג למחשב והעלה את הכרטיס זיכרון של הסמסונג מהמחשב.

צעד שלישי:
בצע גיבוי לקובץ nv_data.bin

צעד רביעי:
פתח לעריכה את הקובץ nv_data.bin  בעזרת תוכנת עריכה Hex לדוגמה,
קפוץ למקום 0x1469  שם צריך להיות משהו שניראה כך  ff ff 01 00 00 00 00
יש חמישה סוגי נעילות

ff ff 01 00 00 00 00

לא לגעת

נעילת רשת

נעילת תת רשת

נעילת SP

נעילת CP

נעילת נתונים

 שנה כל ערך0x01  ל 0x00 או אם כולם 0x00 אז שנה ל0x01

שמור את הקובץ

שחרר מהמחשב את החיבור לטלפון סמסונג.

 צעד חמישי:
בצע את הסקריפט הבא:

su
rm /efs/root/afs/settings/nv_data.bin
cat /sdcard/nv_data.bin >> /efs/root/afs/settings/nv_data.bin
chmod 755 /efs/root/afs/settings/nv_data.bin
chown radio.radio /efs/root/afs/settings/nv_data.bin || chown 1001.1001 /efs/root/afs/settings/nv_data.bin
reboot

ברכותי! הטלפון שלך חופשי מהגבלת סים

איני לוקח אחריות על כל נזק שנגרם למכשירכם ע”י שימוש בנאמר לעיל

לעוד פרטים ומדריכים כדאי לעיין בפורומים

Sumsung S 4G – Sim Free

Sim-Free for Samsung S – 4G

This method was developed by XDA forums

First : 

I am taking no responsibility on any damage that happen to you phone!  This method works on my Vibrant 4G.

Requirments :

  • hex editor
  • Rooted phone

Before you must be root on your phone! If you are not root on your phone go be a root!

Step 1: Check if you are root already in your phone
Step 2: Go to dial program and enter *#7465625# , if one of the parameters is “on” continue with the instructions to have sim-free.
Step 3: Retrieve nv_data.bin file from the phone

  • use the “adb shell” from the SuperOneClickand write the folowing
    su
    cat /efs/root/afs/settings/nv_data.bin >> /sdcard/nv_data.bin

Step 4: Mount the internal SD Card on your computer.

Step 5: Make a backup copy of the nv_data.bin file on your computer

Step 6: using your favorite HEX editor open the nv_data.bin on the sdcard jump to address 0x1469 , you should see a string: ff ff 01 00 00 00 00 there are 5 different types of locks

ff ff 01 00 00 00 00
should be left alone network lock network subset lock sp lock cp lock data lock.

Change any 0x01 to 0x00 (or 0x00 to 0x01 to lock for warranty)
save and close file

Step 7: unmount SD Card

Step 8: fetch back the file to the phone using “adb shell”:

su
rm /efs/root/afs/settings/nv_data.bin
cat /sdcard/nv_data.bin >> /efs/root/afs/settings/nv_data.bin
chmod 755 /efs/root/afs/settings/nv_data.bin
chown radio.radio /efs/root/afs/settings/nv_data.bin || chown 1001.1001 /efs/root/afs/settings/nv_data.bin
reboot

Congratulation!! Now your phone is Sim – Free