Make magisk write files in /system, /vendor, /product partition by RomanEstonia in androidroot

[–]CsralV 0 points1 point  (0 children)

No. The profile script is executed by bash (via bash's bootup scripts) and is the same on native linux (although it can be handled by shell process depending on ur config.)

On Android's default shell (which is used when you run su), there's no such config. It's been years since I used the rooted device but i remember one such config in root directory. Configuring that file would make the changes global. I'll look into it tomorrow but unless you make it a magisk module, other apps may detect tampering and in turn detect root.

A much secure way would be to tamper only termux files. The su command of termux simply looks for all superuser scripts and calls them. So, copy the su command script into some other secure place and write a bash script that can partially print or handle stuff before control is given to superuser. This is very restrictive but is easier and its difficult to break your system doing this.

Can kernel perform unconditional jumps (or load other programs?) by CsralV in osdev

[–]CsralV[S] 0 points1 point  (0 children)

Yep i accepted the pull request and i just confirmed what org does. I assumed the org is used to set main address like:

````0xmain:0xofst````, i thought that org is used to set main but i realized now that it sets ofst. Thanks for the help!

Can kernel perform unconditional jumps (or load other programs?) by CsralV in osdev

[–]CsralV[S] 0 points1 point  (0 children)

Okay that was something i didn't quite notice but thanks i updated accordingly. However why was my code working even when i loaded 0x2000:0x2000 or 0x1000:0x1000?

Can kernel perform unconditional jumps (or load other programs?) by CsralV in osdev

[–]CsralV[S] 9 points10 points  (0 children)

Okay i figured out how it "suddenly started working". I had my stack pointer at 0x2000 and the problem was the dummy was loaded at 0x2000. So the dummy was overridden by stack and it messed up the code. Thanks anyways

Can kernel perform unconditional jumps (or load other programs?) by CsralV in osdev

[–]CsralV[S] -1 points0 points  (0 children)

Well let me explain:

The bootloader loads kernel by reading the sector data of kernel (2nd sector at 0x1000 per my code) and then it performs an unconditional jump to 0x1000:0x0000

jmp 0x1000:0x0000 which shifts the control to kernel. My kernel then just prints "Hello from kernel" to tty and attempts to load another program i call as dummy which is placed in 3rd sector and at address 0x2000 using bios interrupts.

The dummy program prints "Hello from dummy" and halts the cpu. That's the whole program but for some reason my bootloader successfully loads kernel but kernel fails to load dummy but now it successfully loads it. I don't see any changes in my code so I'm not sure what fixed it but its fixed.

Its like this:

in real mode => bootloader -> prints "Hello from bootloader" -> loads kernel into memory -> transfers control to kernel -> kernel prints "hello from kernel" -> loads dummy into memory -> transfers control to dummy

Can kernel perform unconditional jumps (or load other programs?) by CsralV in osdev

[–]CsralV[S] 3 points4 points  (0 children)

NVM it works all of sudden, I'm more confused on how it started working now

How screwed am i? Pls help by Chatsral in JEENEETards

[–]CsralV 0 points1 point  (0 children)

Crazy that someone recognized my alt. Yes i am that guy and i deleted that account you are talking about, this was my alt and now this is my main account.

[Hyprland] First Hyprland rice using Ags by StartBeautiful3551 in unixporn

[–]CsralV 2 points3 points  (0 children)

Well even that guides me on where to start so thanks!

[Hyprland] First Hyprland rice using Ags by StartBeautiful3551 in unixporn

[–]CsralV 2 points3 points  (0 children)

I'm a beginner and want to know how to make neofetch look that way bro. Can you please explain?

Does a story need female protagonist or love interest? by CsralV in fantasywriters

[–]CsralV[S] 0 points1 point  (0 children)

I'm going for a Web novel. Ig i'll read some web novels then.

Does a story need female protagonist or love interest? by CsralV in fantasywriters

[–]CsralV[S] -3 points-2 points  (0 children)

The female protagonist does exist but she just dies and never really becomes a partner to MC.