Results 1 to 2 of 2

Thread: How To send a command automatically through the Kaliboot terminal HELP

  1. #1

    How To send a command automatically through the Kaliboot terminal HELP

    Hi guys,

    Firstly I would like to say congratulations on the Nethunter suite for the Nexus 7 it works perfect. I have a question if I may that has stumped me for quite a while;

    I have written a script that I would like to excite from a app icon, I have managed to do this fine but as I need root permissions to I call the command "su -c bootkali" this enables me to change to the root@kali from my app but now I need want to run a script .sh file but I can't seem to pass any commands through to the root@kali.
    If I type the command in it works perfect but I would like to automate it on the app launch.

    I thought something like this would work;

    su- c bootkali /r ./test.sh

    But it does not! so to summarise all I want to do it click a icon and have it load the kali root permission and run my test.sh script.

    Any ideas?

    Kind Regards

    Keith

  2. #2
    Join Date
    2014-Sep
    Posts
    176
    Hi Keith,

    You need to modify the bootkali file to take in test.sh as an argument like this "update" section I highlighted:
    https://github.com/offensive-securit.../bootkali#L249

    Right now bootkali doesn't take "any" argument and run it so you can't just pass a script to it. To modify the bootkali file to take a script as an argument you will need to mount rw the /system folder on your device. From terminal on device run:

    mount -o remount,rw /system /system

    You can then edit /system/bin/bootkali.

    If you need any help I'm also available on freenode in #nethunter.

Similar Threads

  1. Monitor-mode automatically disabled after Reaver/Wifite command
    By hypergolicBifi in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2016-12-16, 11:12
  2. Replies: 4
    Last Post: 2016-12-16, 00:30
  3. Command completion on terminal
    By freeroute in forum NetHunter General Questions
    Replies: 1
    Last Post: 2016-08-11, 00:04
  4. * Execute a command automatically when Kali Live starts
    By To.8bits in forum General Archive
    Replies: 0
    Last Post: 2015-05-28, 16:40

Posting Permissions

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