Common Greetings

German English Transaction
Guten Tag Good day
Guten morgen Good morning
Gute Nacht Good night
Gutend Abend Good evening
wie geht’s How are you
Mir geht’s gut I am doing well
Bitte Please
In Ordnung Alright
Leider Unfortunately
Danke Thank you
danke schön Thank you very much
Wilkommen Welcome Welcome to our home.
Gern geschehen You are welcome The response to Thank you (formal)
Kein Problem no problem Very informal way of you’re welcome
Herzlich Willkommen Whole hearted welcome to _______ Welcome to our home/country/anything else
Keine Ahnung No idea
Alles Klar Alright
Bis Morgen See you tomorrow
Bis später See you later
Bis Bald See you soon
Es tut mir leid sorry
Entschuldigung I am sorry
entschuldigung sie Excuse me

Repackaging apk file with smali and baksmali

We may require to repack an apk for the various reasons. One of the most common being to bypass SSL Pinning.

Source: https://reverseengineering.stackexchange.com/questions/8044/repackaging-apk-file-using-baksmali-and-smali

 

  • #!/bin/bash -e
    if ! [ "$1" ]; then
        echo "usage: $0 <file.apk>"
        exit -1
    fi
    
    fn=${1%.apk}
    target_apk=$fn.apk
    apktool d -f "$target_apk" -o smali
    echo "Done."
    
  • compile-apk
    #!/bin/bash -e
    if ! [ "$1" ]; then
        echo "usage: $0 <original.apk>"
        exit -1
    fi
    
    fn=${1%.apk}
    
    rm -f $fn.unaligned.apk $fn.smali.apk
    rm -rf smali/build
    
    apktool b -f smali/ -o $fn.unaligned.apk
    jarsigner -verbose -sigalg MD5withRSA -digestalg SHA1 -keystore ~/.android/debug.keystore  -storepass android  $fn.unaligned.apk  androiddebugkey
    zipalign -v 4 $fn.unaligned.apk $fn.smali.apk
    rm -rf smali/build
    

    Steps for manual approach

 

  • Unzip
    $ unzip test.apk
  • Baksmali
    $ baksmali classes.dex -o smaliClasses
  • Smali
    $ smali smaliClasses -o classes.dex
  • Zip -r
    $ zip -r test.apk AndroidManifest.xml classes.dex res/ resources.arsc
  • Jarsign
    $ java -jar signapk.jar testkey.x509.pem testkey.pk8 test.apk test-patched.apk
  • Zipalign
    $ zipalign -v 4 test-patched.apk final-apk.apk

 

 

Linux find command

The below videos demonstrate the common usage of the find command. For additional reading refer to the references after the two videos. Hope you enjoy the videos.

I have also listed the commands below for convenience. Make sure you make any necessary changes based on the folder structure you use.

find / -name “*.cpp”

find / root/Desktop/new -maxdepth 2 -name “*.txt”

find -type f |xargs grep -i “secret”|grep -i “config”

I would love to hear your feedback in the comments section.