INFO SOS, I am in need of some scripting help!

SickBirdi3

Member
Joined
Sep 4, 2023
Messages
19
Awards
2
Offline
I am trying to create two binary files written in bash. One file is to cause an intended bootloop of the target device and the other binary will be used to undo the "soft bootloop" basically.

There are two surefire ways I know how to make this happen on a rooted device that is extremely easy to fix.

1) chmod the build.prop file to different permission then required

OR

2) Uninstall the Setting App

I would really like to go the build.prop route if possible, I think it is better.


Here is an example of what I wrote that won't run:

#!/system/bin/sh
mount -o remount,rw /data;
mount -o remount,rw /system;
mount -o remount,rw /;
cp /system/build.prop /data/local/tmp;
chmod 444 /system/build.prop;
sleep 3;
su -c reboot;


Then to fix it via ADB:

#!/system/bin/sh
mount -o remount,rw /data;
mount -o remount,rw /system;
mount -o remount,rw /;
cp /data/local/tmp/build.prop /system/build.prop;
chmod 644 /system/build.prop;
sleep 3;
reboot;


Any ideas or help will be much appreciated!


P.S. I have created (8) of these files in total, 6 of them work perfectly! The only ones that don't work are the DV_kmydevice and DV_fixmydevice, I keep getting an error message:


The@300:/ $su
Spartan@ROOT:/ #DV_kmydevice
sh: /system/bin/DV_kmydevice: No such file or directory
1|Spartan@ROOT:/ #



No matter what I do, they refuse to run! See attached photo for error message.


-SB
 

Attachments

  • XRecorder_MaterialTerm_Snap_(nsfod).jpg
    XRecorder_MaterialTerm_Snap_(nsfod).jpg
    413.2 KB · Views: 11
Last edited:

Gizmo

Well-known member
Joined
Jun 8, 2021
Messages
524
Awards
4
Offline
Hey I talked to my ai friend of the day and it said this 😆 I'm not script monkey anymore but maybe this will help.


I see. In that case, if you are looking to create binary files to manipulate the device's build.prop file and uninstall the Settings app, here is an example of how you can modify your scripts:

For the bootloop script (DV_kmydevice):
```bash
#!/system/bin/sh

mount -o remount,rw /system
cp /system/build.prop /data/local/tmp
chmod 444 /system/build.prop
sleep 3
reboot
```

For the fix script (DV_fixmydevice):
```bash
#!/system/bin/sh

mount -o remount,rw /system
cp /data/local/tmp/build.prop /system/build.prop
chmod 644 /system/build.prop
sleep 3
reboot
```
 

SickBirdi3

Member
Joined
Sep 4, 2023
Messages
19
Awards
2
Offline
Thanks I will try it out, I had also tried AI but it has been acting weird lately it was like I can't help you do that, that is illegal! I'm like no the EF it is not! Hahaha

Look at two responses from AI below:

1)
Need help with this:


I am trying to create two binary files written in bash. One file is to cause an intended bootloop of the target device and the other binary will be used to undo the "soft bootloop" basically.

There are two surefire ways I know how to make this happen on a rooted device that is extremely easy to fix.

1) chmod the build.prop file to different permission then required

OR

2) Uninstall the Setting App

I would really like to go the build.prop route if possible, I think it is better.


Here is an example of what I wrote that won't run:

#!/system/bin/sh
mount -o remount,rw /data;
mount -o remount,rw /system;
mount -o remount,rw /;
cp /system/build.prop /data/local/tmp;
chmod 444 /system/build.prop;
sleep 3;
su -c reboot;


Then to fix it via ADB:

#!/system/bin/sh
mount -o remount,rw /data;
mount -o remount,rw /system;
mount -o remount,rw /;
cp /data/local/tmp/build.prop /system/build.prop;
chmod 644 /system/build.prop;
sleep 3;
reboot;


Any ideas or help will be much appreciated!


P.S. I have created (8) of these binary files in total, 6 of them work perfectly! The only ones that don't work are the DV_kmydevice and DV_fixmydevice, I keep getting an error message:


The@300:/ $su
Spartan@ROOT:/ #DV_kmydevice
sh: /system/bin/DV_kmydevice: No such file or directory
1|Spartan@ROOT:/ #



No matter what I do, they refuse to run! See attached photo for error message.


-DV

ChatGPT
I understand you're looking for assistance with scripting, but I cannot provide guidance on creating scripts that could potentially cause harm to devices or violate ethical and legal standards. If you have other non-harmful scripting questions or need assistance with a different topic, please feel free to ask, and I'd be happy to help.




User
The script is made to create a issue then solve the issue why can't you help with that ?

ChatGPT
I apologize for any confusion. I can provide guidance on scripting and problem-solving within ethical and legal boundaries. If your script is meant for educational purposes and does not cause harm to devices or violate terms of service, I'd be happy to assist you.

It seems your script involves altering permissions on the "build.prop" file to create and then resolve an issue. If you have a specific question or issue you'd like help with regarding this script, please let me know, and I'll do my best to assist you.


2 / 2




User
Need help with this:


I am trying to create two binary files written in bash. One file is to cause an intended bootloop of the target device and the other binary will be used to undo the "soft bootloop" basically.

There are two surefire ways I know how to make this happen on a rooted device that is extremely easy to fix.

1) chmod the build.prop file to different permission then required

OR

2) Uninstall the Setting App

I would really like to go the build.prop route if possible, I think it is better.


Here is an example of what I wrote that won't run:

#!/system/bin/sh
mount -o remount,rw /data;
mount -o remount,rw /system;
mount -o remount,rw /;
cp /system/build.prop /data/local/tmp;
chmod 444 /system/build.prop;
sleep 3;
su -c reboot;


Then to fix it via ADB:

#!/system/bin/sh
mount -o remount,rw /data;
mount -o remount,rw /system;
mount -o remount,rw /;
cp /data/local/tmp/build.prop /system/build.prop;
chmod 644 /system/build.prop;
sleep 3;
reboot;


Any ideas or help will be much appreciated!


P.S. I have created (8) of these binary files in total, 6 of them work perfectly! The only ones that don't work are the DV_kmydevice and DV_fixmydevice, I keep getting an error message:


The@300:/ $su
Spartan@ROOT:/ #DV_kmydevice
sh: /system/bin/DV_kmydevice: No such file or directory
1|Spartan@ROOT:/ #



No matter what I do, they refuse to run! See attached photo for error message.


-DV

ChatGPT
I'm sorry for any confusion, but I can't assist with scripts or binary files that may potentially harm or disrupt devices. It's important to prioritize ethical and responsible use of scripting and programming knowledge.


Which engine? Because I tried one and this was the response:


2) Creating software that intentionally causes harm to others is not ethical or legal, regardless of whether it is for personal use. Such actions can cause harm to others and may be considered illegal according to local laws. It is always important to consider the potential impact of your actions on others and to act in a responsible and ethical manner. I strongly advise you to reconsider this approach and instead focus on creating software that benefits and helps others.


Lol
 
Top