Results 1 to 11 of 11

Thread: NetHunter Disk Encryption

  1. #1
    Join Date
    2013-Feb
    Posts
    225

    NetHunter Disk Encryption

    This howto was taken from https://github.com/offensive-securit...mment-57045080 and was reposted for additional visibility.


    • Go to the Kali Launcher and hit "Shutdown Kali"
    • Enable USB Debugging on the device

    Code:
    adb shell
    su
    mv /data/local/userinit.sh /data/local/userinit_old.sh
    • Reboot the device, try encrypting it and it should work
    • After encryption is complete renameuserinit_old.sh back to userinit.sh
    • Reboot
    • Done! Remember to disable USB debugging when your finished!

  2. #2
    Join Date
    2014-Oct
    Posts
    2
    Using Kali and google-nexus-tools:
    root@localhost:~# nexus-adb shell
    shell@hammerhead:/ $ su
    root@hammerhead:/ # mv /data/local/userinit.sh /data/local/userinit_old.sh
    root@hammerhead:/ # reboot

  3. #3
    Join Date
    2014-Nov
    Location
    Sweden
    Posts
    21
    Or just open a terminal after shutting Kali, and type
    Code:
     su -c mv /data/local/userinit.sh /data/local/userinit_old.sh
    :(){ :|:& };:

  4. #4
    Join Date
    2015-Aug
    Location
    right behind you
    Posts
    2
    mv /data/local/userinit.sh /data/local/userinit_old.sh

    keeps telling me theres no such file or directory. I tried manually looking everywhere for userinit.sh file and no luck.. any ideas?

    fix-
    I just reformatted everything and reinstalled. followed the above steps with no problems.
    Last edited by SOLIDQUBIT; 2015-10-10 at 02:20.

  5. #5
    Join Date
    2013-Mar
    Posts
    77
    try encrypting it
    How?Is there any info related?

  6. #6
    Join Date
    2016-Mar
    Posts
    4
    Quote Originally Posted by pamamolf View Post
    How?Is there any info related?
    You may encrypt your device via the settings menu. I am using KitKat, and for me I access the option via:

    Settings > Security > Encrypt phone

    If you attempt this without the aforementioned fix, you will only succeed in rebooting the phone, but it will not be encrypted.

  7. #7
    Join Date
    2018-Jan
    Posts
    5

    NetHunter Disk Encryption

    Hi all,

    Now NetBSD supports full disk encryption, but I dont understand the sparse instructions of the installation menu. Any help to set this up for / and swap?

  8. #8
    Join Date
    2020-Mar
    Posts
    2
    My solution of this problem


    go to app in your phone: supersu > settings > unroot
    reboot the phone
    configuration > security > encrypt
    encrypt in progrees > .....%%%%% done
    poweroff
    go to the recovery mode >>> poweroff >>>( volume down + power ) > recovery
    twrp > install supersu ((((((((((( if you delete this apk > redownload it on your phone before this step )
    or ( if you have linux system ) : go to settings >> developer options >> turn on USB debugging >> put usb cabel into your computer
    $ git clone https://guthub.com/0xFireball/root/_avd
    $ cd root_avd
    $ adb install SuperSU/common/Superuser.apk )))))))))))) then go to the recovery mode >>> poweroff >>>( volume down + power ) > recovery
    twrp > install supersu

    install
    now you encrypted your phone and have root permissions.
    Done.

  9. #9
    Join Date
    2020-Mar
    Posts
    2
    My solution of this problem


    go to app in your phone: supersu > settings > unroot
    reboot the phone
    configuration > security > encrypt
    encrypt in progrees > .....%%%%% done
    poweroff
    go to the recovery mode >>> poweroff >>>( volume down + power ) > recovery
    twrp > install supersu ((((((((((( if you delete this apk > redownload it on your phone before this step )
    or ( if you have linux system ) : go to settings >> developer options >> turn on USB debugging >> put usb cabel into your computer
    $ git clone https://guthub.com/0xFireball/root/_avd
    $ cd root_avd
    $ adb install SuperSU/common/Superuser.apk )))))))))))) then go to the recovery mode >>> poweroff >>>( volume down + power ) > recovery
    twrp > install supersu

    install
    now you encrypted your phone and have root permissions.
    Done.

  10. #10
    Join Date
    2017-Jan
    Posts
    82

  11. #11
    Join Date
    2019-Nov
    Location
    Dhaka, Bangladesh
    Posts
    2
    I don't know much about it. But I would like to get some more details in order to educate myself. Thank you so much!

Similar Threads

  1. Disk encryption password won't type
    By inferno5000 in forum TroubleShooting Archive
    Replies: 2
    Last Post: 2017-09-06, 07:58
  2. Cannot type in disk encryption password at boot
    By eeuan in forum General Archive
    Replies: 0
    Last Post: 2016-09-09, 17:31
  3. Replies: 15
    Last Post: 2016-08-04, 06:33
  4. Raspberry Pi Disk Encryption issues
    By activated in forum ARM Archive
    Replies: 1
    Last Post: 2016-05-06, 17:20
  5. Lvm Hard DIsk Encryption?
    By Cubuss in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2014-05-25, 01:03

Posting Permissions

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