0% found this document useful (0 votes)
1K views

Evilscript

Uploaded by

Dustin Bogart
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views

Evilscript

Uploaded by

Dustin Bogart
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 22

Script started on 2019-09-27 14:36:45-07:00 [TERM="xterm-256color" TTY="/dev/pts/0"

COLUMNS="50" LINES="21"]
$ cd Magisk-v13.1
$ ls
#[0m#[01;34mMETA-INF#[0m #[01;34marm#[0m #[01;34mchromeos#[0m #[01;34mx64#[0m
#[01;34maddon.d#[0m #[01;34marm64#[0m #[01;34mcommon#[0m #[01;34mx86#[0m
$ cd META-INF
$ ls
CERT.RSA CERT.SF MANIFEST.MF #[0m#[01;34mcom#[0m
$ mf MANIFEST.MF
The program 'mf' is not installed. Install it by executing:
pkg install texlive-bin
$ pkg install texlive-bin
#[33m0% [Working]#[0m Ign:1 https://dl.bintray.com/grimler/game-
packages-21 games InRelease
#[33m0% [Working]#[0m Hit:2 https://termux.net stable InRelease
#[33m0% [Working]#[0m#[33m0% [2 InRelease gpgv 1720 B]#[0m
Ign:3 https://dl.bintray.com/grimler/termux-root-packages-21 root InRelease
#[33m0% [2 InRelease gpgv 1720 B]#[0m Ign:4
https://dl.bintray.com/grimler/science-packages-21 science InRelease
#[33m0% [2 InRelease gpgv 1720 B]#[0m Ign:5
https://dl.bintray.com/xeffyr/x11-packages-21 x11 InRelease
#[33m0% [2 InRelease gpgv 1720 B]#[0m Get:6
https://dl.bintray.com/grimler/game-packages-21 games Release [5344 B]
#[33m0% [2 InRelease gpgv 1720 B] [6 Release 0 B/5344 #[0m
Hit:6 https://dl.bintray.com/grimler/game-packages-21 games Release
#[33m 0% [2 InRelease gpgv 1720
B]#[0m Get:7 https://dl.bintray.com/grimler/termux-root-
packages-21 root Release [6185 B]
#[33m0% [2 InRelease gpgv 1720 B] [7 Release 0 B/6185 #[0m
Hit:7 https://dl.bintray.com/grimler/termux-root-packages-21 root Release
#[33m 0% [2 InRelease gpgv 1720
B]#[0m#[33m 0% [Working]#[0m#[33m0% [Release.gpg gpgv
5344 B]#[0m Get:8
https://dl.bintray.com/grimler/science-packages-21 science Release [5348 B]
#[33m0% [Release.gpg gpgv 5344 B] [8 Release 0 B/5348 #[0m
Hit:8 https://dl.bintray.com/grimler/science-packages-21 science Release
#[33m 0% [Release.gpg gpgv 5344
B]#[0m Get:9 https://dl.bintray.com/xeffyr/x11-packages-
21 x11 Release [6055 B]
#[33m0% [Release.gpg gpgv 5344 B] [9 Release 0 B/6055 #[0m
Hit:9 https://dl.bintray.com/xeffyr/x11-packages-21 x11 Release
#[33m 0% [Release.gpg gpgv 5344
B]#[0m#[33m 0% [Working]#[0m#[33m0% [Release.gpg gpgv
6185 B]#[0m#[33m 0% [Working]#[0m#[33m0% [Release.gpg
gpgv 5348 B]#[0m#[33m 0% [Working]#[0m#[33m0%
[Release.gpg gpgv 6055 B]#[0m#[33m0% [Release.gpg gpgv 6055 B]#[0m#[33m
100% [Working]#[0m Reading package lists... 0%Reading package lists...
0%Reading package lists... 6%Reading package lists... 56%Reading package lists...
56%Reading package lists... 63%Reading package lists... 63%Reading package lists...
65%Reading package lists... 65%Reading package lists... 70%Reading package lists...
70%Reading package lists... 72%Reading package lists... 72%Reading package lists...
92%Reading package lists... 92%Reading package lists... Done
Building dependency tree... 0%Building dependency tree... 0%Building dependency
tree... 1%Building dependency tree... 50%Building dependency tree... 50%Building
dependency tree
Reading state information... 0%Reading state information... 1%Reading state
information... Done
All packages are up to date.
Reading package lists... 0%Reading package lists... 100%Reading package lists...
Done
Building dependency tree... 0%Building dependency tree... 0%Building dependency
tree... 50%Building dependency tree... 50%Building dependency tree
Reading state information... 0%Reading state information... 1%Reading state
information... Done
The following additional packages will be installed:
harfbuzz-icu liblua poppler teckit texlive
texlive-tlmgr
The following NEW packages will be installed:
harfbuzz-icu liblua poppler teckit texlive
texlive-bin texlive-tlmgr
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 13.3 MB of archives.
After this operation, 87.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
#[33m0% [Working]#[0m Get:1 https://termux.net stable/main arm harfbuzz-
icu arm 2.6.1 [5204 B]
#[33m3% [Working]#[0m Get:2 https://termux.net stable/main arm liblua
arm 5.3.5-3 [80.9 kB]
#[33m3% [2 liblua 33.5 kB/80.9 kB 41%]#[0m#[33m 6%
[Working]#[0m Get:3 https://termux.net stable/main arm poppler arm
0.79.0-1 [1136 kB]
#[33m6% [3 poppler 8309 B/1136 kB 1%]#[0m#[33m8% [3 poppler 301 kB/1136 kB
26%]#[0m#[33m10% [3 poppler 571 kB/1136 kB 50%]#[0m#[33m
16% [Working]#[0m Get:4 https://termux.net stable/main arm teckit arm
2.5.9-3 [290 kB]
#[33m16% [4 teckit 0 B/290 kB 0%]#[0m#[33m 21%
[Working]#[0m Get:5 https://termux.net stable/main arm texlive-bin arm
20190410-5 [4861 kB]
#[33m21% [5 texlive-bin 0 B/4861 kB 0%]#[0m#[33m27% [5 texlive-bin 1145 kB/4861 kB
24%]#[0m#[33m33% [5 texlive-bin 2128 kB/4861 kB 44%]#[0m#[33m34% [5 texlive-bin
2308 kB/4861 kB 47%]#[0m#[33m40% [5 texlive-bin 3226 kB/4861 kB 66%]#[0m#[33m44% [5
texlive-bin 3881 kB/4861 kB 80%]#[0m#[33m49% [5 texlive-bin 4700 kB/4861 kB
97%]#[0m#[33m 53% [Working]#[0m
Get:6 https://termux.net stable/main all texlive all 20190410 [6574 kB]
#[33m53% [6 texlive 15.8 kB/6574 kB 0%]#[0m#[33m58% [6 texlive 850 kB/6574 kB 13%]
1143 kB/s 5s#[0m#[33m64% [6 texlive 1915 kB/6574 kB 29%] 1143 kB/s 4s#[0m#[33m67%
[6 texlive 2341 kB/6574 kB 36%] 1143 kB/s 4s#[0m#[33m70% [6 texlive 2865 kB/6574
kB 44%] 1143 kB/s 3s#[0m#[33m75% [6 texlive 3701 kB/6574 kB 56%] 1143 kB/s
2s#[0m#[33m79% [6 texlive 4389 kB/6574 kB 67%] 1143 kB/s 2s#[0m#[33m86% [6 texlive
5470 kB/6574 kB 83%] 1143 kB/s 1s#[0m#[33m87% [6 texlive 5667 kB/6574 kB 86%]
1143 kB/s 1s#[0m#[33m95% [Working] 1143 kB/s 0s#[0m
Get:7 https://termux.net stable/main all texlive-tlmgr all 20190410 [351 kB]
#[33m 95% [7 texlive-tlmgr 15.8
kB/351 kB 4%]#[0m#[33m100% [Working] 1143 kB/s 0s#[0m
Fetched 13.3 MB in 10s (1262 kB/s)

#7#[0;20r#8#[1ASelecting previously unselected package harfbuzz-icu.


(Reading database ... (Reading database ... 5%(Reading database ... 10%(Reading
database ... 15%(Reading database ... 20%(Reading database ... 25%(Reading database
... 30%(Reading database ... 35%(Reading database ... 40%(Reading database ... 45%
(Reading database ... 50%(Reading database ... 55%(Reading database ... 60%(Reading
database ... 65%(Reading database ... 70%(Reading database ... 75%(Reading database
... 80%(Reading database ... 85%(Reading database ... 90%(Reading database ... 95%
(Reading database ... 100%(Reading database ... 35326 files and directories
currently installed.)
Preparing to unpack .../0-harfbuzz-icu_2.6.1_arm.deb ...
#7#[21;0f#[42m#[30mProgress: [ 0%]#[49m#[39m [............................]
#8#7#[21;0f#[42m#[30mProgress: [ 2%]#[49m#[39m [............................]
#8Unpacking harfbuzz-icu (2.6.1) ...
#7#[21;0f#[42m#[30mProgress: [ 5%]#[49m#[39m [#...........................]
#8Selecting previously unselected package liblua.
Preparing to unpack .../1-liblua_5.3.5-3_arm.deb ...
#7#[21;0f#[42m#[30mProgress: [ 8%]#[49m#[39m [##..........................]
#8Unpacking liblua (5.3.5-3) ...
#7#[21;0f#[42m#[30mProgress: [ 11%]#[49m#[39m [###.........................]
#8Selecting previously unselected package poppler.
Preparing to unpack .../2-poppler_0.79.0-1_arm.deb ...
#7#[21;0f#[42m#[30mProgress: [ 13%]#[49m#[39m [###.........................]
#8Unpacking poppler (0.79.0-1) ...
#7#[21;0f#[42m#[30mProgress: [ 16%]#[49m#[39m [####........................]
#8Selecting previously unselected package teckit.
Preparing to unpack .../3-teckit_2.5.9-3_arm.deb ...
#7#[21;0f#[42m#[30mProgress: [ 19%]#[49m#[39m [#####.......................]
#8Unpacking teckit (2.5.9-3) ...
#7#[21;0f#[42m#[30mProgress: [ 22%]#[49m#[39m [######......................]
#8Selecting previously unselected package texlive-bin.
Preparing to unpack .../4-texlive-bin_20190410-5_arm.deb ...
#7#[21;0f#[42m#[30mProgress: [ 25%]#[49m#[39m [#######.....................]
#8Unpacking texlive-bin (20190410-5) ...
#7#[21;0f#[42m#[30mProgress: [ 27%]#[49m#[39m [#######.....................]
#8Selecting previously unselected package texlive.
Preparing to unpack .../5-texlive_20190410_all.deb ...
#7#[21;0f#[42m#[30mProgress: [ 30%]#[49m#[39m [########....................]
#8Unpacking texlive (20190410) ...
#7#[21;0f#[42m#[30mProgress: [ 33%]#[49m#[39m [#########...................]
#8Selecting previously unselected package texlive-tlmgr.
Preparing to unpack .../6-texlive-tlmgr_20190410_all.deb ...
#7#[21;0f#[42m#[30mProgress: [ 36%]#[49m#[39m [##########..................]
#8Unpacking texlive-tlmgr (20190410) ...
#7#[21;0f#[42m#[30mProgress: [ 38%]#[49m#[39m [##########..................]
#8Setting up harfbuzz-icu (2.6.1) ...
#7#[21;0f#[42m#[30mProgress: [ 41%]#[49m#[39m [###########.................]
#8#7#[21;0f#[42m#[30mProgress: [ 44%]#[49m#[39m [############................]
#8#7#[21;0f#[42m#[30mProgress: [ 47%]#[49m#[39m [#############...............]
#8Setting up teckit (2.5.9-3) ...
#7#[21;0f#[42m#[30mProgress: [ 50%]#[49m#[39m [##############..............]
#8#7#[21;0f#[42m#[30mProgress: [ 52%]#[49m#[39m [##############..............]
#8#7#[21;0f#[42m#[30mProgress: [ 55%]#[49m#[39m [###############.............]
#8Setting up liblua (5.3.5-3) ...
#7#[21;0f#[42m#[30mProgress: [ 58%]#[49m#[39m [################............]
#8#7#[21;0f#[42m#[30mProgress: [ 61%]#[49m#[39m [#################...........]
#8#7#[21;0f#[42m#[30mProgress: [ 63%]#[49m#[39m [#################...........]
#8Setting up poppler (0.79.0-1) ...
#7#[21;0f#[42m#[30mProgress: [ 66%]#[49m#[39m [##################..........]
#8#7#[21;0f#[42m#[30mProgress: [ 69%]#[49m#[39m [###################.........]
#8#7#[21;0f#[42m#[30mProgress: [ 72%]#[49m#[39m [####################........]
#8Setting up texlive-bin (20190410-5) ...
#7#[21;0f#[42m#[30mProgress: [ 75%]#[49m#[39m [#####################.......]
#8#7#[21;0f#[42m#[30mProgress: [ 77%]#[49m#[39m [#####################.......]
#8#7#[21;0f#[42m#[30mProgress: [ 80%]#[49m#[39m [######################......]
#8Setting up texlive (20190410) ...
#7#[21;0f#[42m#[30mProgress: [ 83%]#[49m#[39m [#######################.....]
#8#7#[21;0f#[42m#[30mProgress: [ 86%]#[49m#[39m [########################....]
#8mktexlsr: /data/data/com.termux/files/usr/share/texlive/texmf-var: not a
directory, skipping.
mktexlsr: Updating /data/data/com.termux/files/usr/share/texlive/texmf-dist/ls-R...
mktexlsr: Done.

Welcome to TeX Live!

TeX Live is a joint project of the TeX user groups around the world;
please consider supporting it by joining the group best for you.
The list of groups is available on the web at http://tug.org/usergroups.html.
#7#[21;0f#[42m#[30mProgress: [ 88%]#[49m#[39m [########################....]
#8Setting up texlive-tlmgr (20190410) ...
#7#[21;0f#[42m#[30mProgress: [ 91%]#[49m#[39m [#########################...]
#8#7#[21;0f#[42m#[30mProgress: [ 94%]#[49m#[39m [##########################..]
#8Updating tlmgr

#7#[0;14r#8#[1A#7#[15;0f#[42m#[30mProgress: [ 94%]#[49m#[39m
[##########################################################....] #8
#7#[0;9r#8#[1A#7#[10;0f#[42m#[30mProgress: [ 94%]#[49m#[39m
[##########################################################....] #8
#7#[0;29r#8#[1A#7#[30;0f#[42m#[30mProgress: [ 94%]#[49m#[39m
[##########################..] #8
#7#[0;23r#8#[1A#7#[24;0f#[42m#[30mProgress: [ 94%]#[49m#[39m
[##########################..] #8
#7#[0;20r#8#[1A#7#[21;0f#[42m#[30mProgress: [ 94%]#[49m#[39m
[##########################..] #8tlmgr.ln: package repository
http://ftp.acc.umu.se/mirror/CTAN/systems/texlive/tlnet (verified)
tlmgr.ln: saving backups to
/data/data/com.termux/files/usr/share/texlive/tlpkg/backups
/data/data/com.termux/files/usr/bin/tlmgr.ln: (make_container
texlive.infra.r47457.tar) texmf-dist/scripts/texlive/uninstall-win32.pl does not
exist
[1/1, ??:??/??:??] update: texlive.infra [212k] (47457 -> 51561) ... done
running mktexlsr ...
done running mktexlsr.
tlmgr.ln: package log updated: /data/data/com.termux/files/usr/share/texlive/texmf-
var/web2c/tlmgr.log
Generating language files and setting up symlinks
#7#[21;0f#[42m#[30mProgress: [ 97%]#[49m#[39m [###########################.]
#8Processing triggers for man (1.14.5-1) ...

#7#[0;21r#8#[1A#[J$ pkg install texlive-bin#[C#[C#[9Pmf MANIFEST.MF


This is METAFONT, Version 2.7182818 (TeX Live 2019/Termux) (preloaded base=mf)

kpathsea: Running mktexfmt mf.base


mktexfmt: mktexfmt is using the following fmtutil.cnf files (in precedence order):
mktexfmt: /data/data/com.termux/files/usr/share/texlive/texmf-
dist/web2c/fmtutil.cnf
mktexfmt: mktexfmt is using the following fmtutil.cnf file for writing changes:
mktexfmt: /data/data/com.termux/files/home/.texlive2019/texmf-
config/web2c/fmtutil.cnf
mktexfmt [INFO]: writing formats under
/data/data/com.termux/files/home/.texlive2019/texmf-var/web2c
mktexfmt [INFO]: --- remaking mf with mf-nowin
mktexfmt: running `mf-nowin -ini -jobname=mf -progname=mf -translate-
file=cp227.tcx mf.ini' ...
This is METAFONT, Version 2.7182818 (TeX Live 2019/Termux) (INIMF)
(/data/data/com.termux/files/usr/share/texlive/texmf-dist/web2c/cp227.tcx)

(/data/data/com.termux/files/usr/share/texlive/texmf-dist/metafont/config/mf.in
i
(/data/data/com.termux/files/usr/share/texlive/texmf-dist/metafont/base/plain.m
f
Preloading the plain base, version 2.71: preliminaries,
basic constants and mathematical macros,
macros for converting from device-independent units to pixels,
macros and tables for various modes of operation,
macros for drawing and filling,
macros for proof labels and rules,
macros for character and font administration,
and a few last-minute items.)
(/data/data/com.termux/files/usr/share/texlive/texmf-dist/metafont/misc/modes.m
f) )
Beginning to dump on file mf.base
(preloaded base=mf 2019.9.27)
2226 strings of total length 30187
11855 memory locations dumped; current usage is 3651&7844
1004 symbolic tokens
Transcript written on mf.log.
mktexfmt [INFO]: /data/data/com.termux/files/home/.texlive2019/texmf-
var/web2c/metafont/mf.base installed.
mktexfmt [INFO]: Disabled formats: 7
mktexfmt [INFO]: Successfully rebuilt formats: 1
mktexfmt [INFO]: Not selected formats: 43
mktexfmt [INFO]: Total formats: 51
mktexfmt [INFO]: exiting with status 0
(MANIFEST.MF
>> -Version+Manifest
! Isolated expression.
<to be read again>
:
l.1 Manifest-Version:
1.0
? in8# ## ## #^[[A^[[A^[[B^[[B# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #^Y#
## #start
OK, entering scrollmode...
! Extra tokens will be flushed.
<to be read again>
:
l.1 Manifest-Version:
1.0
)
! File ended while scanning to the end of the statement.
<inserted text>
;
<*> MANIFEST.MF

*^[[A# ## ## ## #MANIFEST.MF

*start

*e# #install MANIFEST.MF

*help

*^A# ## #^#^K^H# ## ## ## #^R


^T# ## #^E# ## #w# # o# #########^F
! Text line contains an invalid character.
<*> ^^F
*^R

(Please type a command or say `end')


*run

*completr# #e

*^C
! Interruption.
<*>

? e# #run
OK, entering nonstopmode...
! Emergency stop.
<*>

Transcript written on MANIFEST.log.


$ ls
CERT.RSA CERT.SF MANIFEST.MF MANIFEST.log #[0m#[01;34mcom#[0m
$ sh MANIFEST.log
MANIFEST.log: 1: MANIFEST.log: Syntax error: "(" unexpected
$ php MANIFEST.log
This is METAFONT, Version 2.7182818 (TeX Live 2019/Termux) (preloaded base=mf
2019.9.27) 27 SEP 2019 14:40
**MANIFEST.MF
(MANIFEST.MF
>> -Version+Manifest
! Isolated expression.
<to be read again>
:
l.1 Manifest-Version:
1.0
? start
OK, entering scrollmode...
! Extra tokens will be flushed.
<to be read again>
:
l.1 Manifest-Version:
1.0
I've just read as much of that statement as I could fathom,
so a semicolon should have been next. It's very puzzling...
but I'll try to get myself back together, by ignoring
everything up to the next `;'. Please insert a semicolon
now in front of anything that you don't want me to delete.
(See Chapter 27 of The METAFONTbook for an example.)

)
! File ended while scanning to the end of the statement.
<inserted text>
;
<*> MANIFEST.MF

A previous error seems to have propagated,


causing me to read past where you wanted me to stop.
I'll try to recover; but if the error is serious,
you'd better type `E' or `X' now and fix your file.
*MANIFEST.MF

*start

*install MANIFEST.MF

*help

*^^F
! Text line contains an invalid character.
<*> ^^F

A funny symbol that I can't read has just been input.


Continue, and I'll forget that it ever happened.

*
(Please type a command or say `end')
*run

*complete

*
! Interruption.
<*>

? run
OK, entering nonstopmode...
! Emergency stop.
<*>

*** (job aborted, no legal end found)

$ php MANIFEST.log#[C#[C#[1Psh#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C
#[C#[Cls#[K##mf MANIFEST.MF
This is METAFONT, Version 2.7182818 (TeX Live 2019/Termux) (preloaded base=mf)
(MANIFEST.MF
>> -Version+Manifest
! Isolated expression.
<to be read again>
:
l.1 Manifest-Version:
1.0
? continue
Type <return> to proceed, S to scroll future error messages,
R to run without stopping, Q to run quietly,
I to insert something, E to edit your file,
1 or ... or 9 to ignore the next 1 to 9 tokens of input,
H for help, X to quit.
? h# #H
I couldn't find an `=' or `:=' after the
expression that is shown above this error message,
so I guess I'll just ignore it and carry on.

? Q
OK, entering batchmode$ run
No command 'run' found, did you mean:
Command 'ri' from package 'ruby-ri'
Command 'su' from package 'termux-tools'
Command 'rev' from package 'busybox'
Command 'sum' from package 'busybox'
Command 'cut' from package 'busybox'
Command 'runsv' from package 'busybox'
Command 'rx' from package 'busybox'
Command 'ln' from package 'busybox'
Command 'true' from package 'busybox'
Command 'rm' from package 'busybox'
Command 'du' from package 'busybox'
Command 'sum' from package 'coreutils'
Command 'cut' from package 'coreutils'
Command 'ln' from package 'coreutils'
Command 'true' from package 'coreutils'
Command 'rm' from package 'coreutils'
Command 'du' from package 'coreutils'
Command 'pub' from package 'dart'
Command 'duk' from package 'duktape'
Command 'red' from package 'ed'
Command 'prune' from package 'graphviz'
Command 'hub' from package 'hub'
Command 'dub' from package 'ldc'
Command 'lua' from package 'lua'
Command 'man' from package 'man'
Command 'uz' from package 'mtools'
Command 'mren' from package 'mtools'
Command 'nnn' from package 'nnn'
Command 'r2' from package 'radare2'
Command 'rcs' from package 'rcs'
Command 'rem' from package 'remind'
Command 'rg' from package 'ripgrep'
Command 'ruby' from package 'ruby'
Command 'rls' from package 'rust'
Command 'rec' from package 'sox'
Command 'svn' from package 'subversion'
Command 'rungs' from package 'texlive-bin'
Command 'rev' from package 'util-linux'
Command 'raw' from package 'util-linux'
Command 'ul' from package 'util-linux'
$ red MANE##[KIFEST.mf
1372
^[[A# ## ## ## #run
?
compled# #te
?
11^[^L^L
?
^L
?
run
?
^Q
?
^F
?
^C
?
^#^B^L^K^P 4o^Y^Z
[1]+ Stopped red MANIFEST.mf
$ ls
CERT.RSA CERT.SF MANIFEST.MF MANIFEST.log #[0m#[01;34mcom#[0m
$ cd com
$ ls
#[0m#[01;34mgoogle#[0m
$ cd google
$ ls
#[0m#[01;34mandroid#[0m
$ cd android
$ ls
update-binary updater-script
$ #p##[Kpip update-binary
ERROR: unknown command "update-binary"
$ php update-binary
###################################################################################
#######
#
# Magisk Flash Script
# by topjohnwu
#
# This script will detect, construct the environment for Magisk
# It will then call boot_patch.sh to patch the boot image
#
###################################################################################
#######

###################################################################################
#######
# Preparation
###################################################################################
#######

# Detect whether in boot mode


ps | grep zygote | grep -v grep >/dev/null && BOOTMODE=true || BOOTMODE=false
$BOOTMODE || ps -A 2>/dev/null | grep zygote | grep -v grep >/dev/null &&
BOOTMODE=true

# This path should work in any cases


TMPDIR=/dev/tmp

INSTALLER=$TMPDIR/install
COMMONDIR=$INSTALLER/common
CHROMEDIR=$INSTALLER/chromeos
COREDIR=/magisk/.core

# Default permissions
umask 022

OUTFD=$2
ZIP=$3

rm -rf $TMPDIR 2>/dev/null


mkdir -p $INSTALLER
unzip -o "$ZIP" -d $INSTALLER 2>/dev/null

if [ ! -d "$COMMONDIR" ]; then
echo "! Unable to extract zip file!"
exit 1
fi

# Load utility fuctions


. $COMMONDIR/util_functions.sh

get_outfd

###################################################################################
#######
# Detection
###################################################################################
#######

ui_print "************************"
ui_print "* Magisk v13.1 Installer"
ui_print "************************"

ui_print "- Mounting /system, /vendor, /cache, /data"


mount -o ro /system 2>/dev/null
mount -o ro /vendor 2>/dev/null
mount /cache 2>/dev/null
mount /data 2>/dev/null

[ -f /system/build.prop ] || abort "! /system could not be mounted!"

# read override variables


getvar KEEPVERITY
getvar KEEPFORCEENCRYPT
getvar BOOTIMAGE

# Check if system root is installed and remove


remove_system_su

# Detect version and architecture


api_level_arch_detect

[ $API -lt 21 ] && abort "! Magisk is only for Lollipop 5.0+ (SDK 21+)"

ui_print "- Device platform: $ARCH"

BINDIR=$INSTALLER/$ARCH
chmod -R 755 $CHROMEDIR $BINDIR

find_boot_image
[ -z $BOOTIMAGE ] && abort "! Unable to detect boot image"

###################################################################################
#######
# Environment
###################################################################################
#######

ui_print "- Constructing environment"

is_mounted /data && MAGISKBIN=/data/magisk || MAGISKBIN=/cache/data_bin

# Copy required files


rm -rf $MAGISKBIN 2>/dev/null
mkdir -p $MAGISKBIN
cp -af $BINDIR/. $COMMONDIR/. $MAGISKBIN
cp -af $CHROMEDIR $MAGISKBIN
chmod -R 755 $MAGISKBIN

# addon.d
if [ -d /system/addon.d ]; then
ui_print "- Adding addon.d survival script"
mount -o rw,remount /system
cp $INSTALLER/addon.d/99-magisk.sh /system/addon.d/99-magisk.sh
chmod 755 /system/addon.d/99-magisk.sh
fi

###################################################################################
#######
# Magisk Image
###################################################################################
#######

$BOOTMODE || recovery_actions

# Fix SuperSU.....
$BOOTMODE && $MAGISKBIN/magisk magiskpolicy --live "allow fsck * * *"

if (is_mounted /data); then


IMG=/data/magisk.img
else
IMG=/cache/magisk.img
ui_print "- Data unavailable, use cache workaround"
fi

if [ -f $IMG ]; then
ui_print "- $IMG detected!"
else
ui_print "- Creating $IMG"
$MAGISKBIN/magisk --createimg $IMG 64M
fi

if ! is_mounted /magisk; then


ui_print "- Mounting $IMG to /magisk"
MAGISKLOOP=`$MAGISKBIN/magisk --mountimg $IMG /magisk`
fi
is_mounted /magisk || abort "! Magisk image mount failed..."

# Core folders
mkdir -p $COREDIR/props $COREDIR/post-fs-data.d $COREDIR/service.d 2>/dev/null

chmod 755 $COREDIR/post-fs-data.d $COREDIR/service.d


chown 0.0 $COREDIR/post-fs-data.d $COREDIR/service.d

# Legacy cleanup
mv $COREDIR/magiskhide/hidelist $COREDIR/hidelist 2>/dev/null
rm -rf $COREDIR/magiskhide $COREDIR/bin

###################################################################################
#######
# Unpack boot
###################################################################################
#######
ui_print "- Found Boot Image: $BOOTIMAGE"

# Update our previous backup to new format if exists


if [ -f /data/stock_boot.img ]; then
SHA1=`$MAGISKBIN/magiskboot --sha1 /data/stock_boot.img | tail -n 1`
STOCKDUMP=/data/stock_boot_${SHA1}.img
mv /data/stock_boot.img $STOCKDUMP
$MAGISKBIN/magiskboot --compress $STOCKDUMP
fi

SOURCEDMODE=true
cd $MAGISKBIN

# Source the boot patcher


. $COMMONDIR/boot_patch.sh "$BOOTIMAGE"

if [ -f stock_boot* ]; then
rm -f /data/stock_boot* 2>/dev/null
mv stock_boot* /data
fi

ui_print "- Flashing new boot image"


if [ -L "$BOOTIMAGE" ]; then
dd if=new-boot.img of="$BOOTIMAGE" bs=4096
else
cat new-boot.img /dev/zero | dd of="$BOOTIMAGE" bs=4096 >/dev/null 2>&1
fi
rm -f new-boot.img

cd /

if ! $BOOTMODE; then
$MAGISKBIN/magisk --umountimg /magisk $MAGISKLOOP
rmdir /magisk
recovery_cleanup
fi

ui_print "- Done"


exit 0
$ chmod update-binary
chmod: missing operand after ‘update-binary’
Try 'chmod --help' for more information.
$ su ####update-binary
No su program found on this device. Termux
does not supply tools for rooting, see e.g.
http://www.androidcentral.com/root for
information about rooting Android.
$ =ed ##[K##[K##[K##[K#red update-binary
5083
start
?
rub# #n
?
stop
?
quit
?
^Z
[2]+ Stopped red update-binary
$ #####update-binary
update-binary: command not found
$ help
GNU bash, version 5.0.11(1)-release (arm-unknown-linux-androideabi)
These shell commands are defined internally. Type `help' to see this list.
Type `help name' to find out more about the function `name'.
Use `info bash' to find out more about the shell in general.
Use `man -k' or `info' to find out more about commands not in this list.

A star (*) next to a name means that the command is disabled.

job_spec [&] history [-c] [-d offs>


(( expression )) if COMMANDS; then COM>
. filename [arguments> jobs [-lnprs] [jobspe>
: kill [-s sigspec | -n>
[ arg... ] let arg [arg ...]
[[ expression ]] local [option] name[=>
alias [-p] [name[=valu> logout [n]
bg [job_spec ...] mapfile [-d delim] [->
bind [-lpsvPSVX] [-m k> popd [-n] [+N | -N]
break [n] printf [-v var] forma>
builtin [shell-builtin> pushd [-n] [+N | -N |>
caller [expr] pwd [-LP]
case WORD in [PATTERN > read [-ers] [-a array>
cd [-L|[-P [-e]] [-@]]> readarray [-d delim] >
command [-pVv] command> readonly [-aAf] [name>
compgen [-abcdefgjksuv> return [n]
complete [-abcdefgjksu> select NAME [in WORDS>
compopt [-o|+o option]> set [-abefhkmnptuvxBC>
continue [n] shift [n]
coproc [NAME] command > shopt [-pqsu] [-o] [o>
declare [-aAfFgilnrtux> source filename [argu>
dirs [-clpv] [+N] [-N> suspend [-f]
disown [-h] [-ar] [job> test [expr]
echo [-neE] [arg ...] time [-p] pipeline
enable [-a] [-dnps] [-> times
eval [arg ...] trap [-lp] [[arg] sig>
exec [-cl] [-a name] [> true
exit [n] type [-afptP] name [n>
export [-fn] [name[=va> typeset [-aAfFgilnrtu>
false ulimit [-SHabcdefiklm>
fc [-e ename] [-lnr] [> umask [-p] [-S] [mod>
fg [job_spec] unalias [-a] name [na>
for NAME [in WORDS ...> unset [-f] [-v] [-n] >
for (( exp1; exp2; exp> until COMMANDS; do CO>
function name { COMMAN> variables - Names and>
getopts optstring name> wait [-fn] [id ...]
hash [-lr] [-p pathnam> while COMMANDS; do CO>
help [-dms] [pattern .> { COMMANDS ; }
$ pkg liast ##[K##[K##[K##[Kst##[Kt
Unknown command: 'list' (run 'pkg help' for usage information)
$ pkg listinstalled##[K##[K##[K##[K##[K##[K##[K##[K##[K installed
Unknown command: 'list' (run 'pkg help' for usage information)
$ pkg help
Usage: pkg command [arguments]

A tool for managing packages. Commands:

files <packages>
install <packages>
list-all
list-installed
reinstall <packages>
search <query>
show <packages>
uninstall <packages>
upgrade
$ list ##[K-installed
list-installed: command not found
$ pkg list-installed
Listing... 0%Listing... 0%Listing... 30%Listing... Done
#[32mapache2#[0m/stable,now 2.4.41 arm [installed]
#[32mapk-tools#[0m/stable,now 2.10.4 arm [installed]
#[32mapr#[0m/stable,now 1.7.0-2 arm [installed,automatic]
#[32mapr-util#[0m/stable,now 1.6.1-2 arm [installed,automatic]
#[32mapt#[0m/stable,now 1.4.9-7 arm [installed]
#[32mbash#[0m/stable,now 5.0.11 arm [installed]
#[32mbc#[0m/stable,now 1.07.1-1 arm [installed]
#[32mbinutils#[0m/stable,now 2.32-4 arm [installed]
#[32mbitcoin#[0m/stable,now 0.18.1-1 arm [installed]
#[32mboost#[0m/stable,now 1.70.0-5 arm [installed,automatic]
#[32mbusybox#[0m/stable,now 1.30.1-6 arm [installed]
#[32mbzip2#[0m/stable,now 1.0.8-2 arm [installed,automatic]
#[32mc-ares#[0m/stable,now 1.15.0-2 arm [installed,automatic]
#[32mca-certificates#[0m/stable,now 20190828 all [installed]
#[32mcommand-not-found#[0m/stable,now 1.37 arm [installed]
#[32mcoreutils#[0m/stable,now 8.31-4 arm [installed,automatic]
#[32mcurl#[0m/stable,now 7.66.0 arm [installed,automatic]
#[32mdash#[0m/stable,now 0.5.10.2-2 arm [installed]
#[32mdiffutils#[0m/stable,now 3.7-2 arm [installed,automatic]
#[32mdos2unix#[0m/stable,now 7.4.0-1 arm [installed,automatic]
#[32mdpkg#[0m/stable,now 1.19.7-4 arm [installed]
#[32med#[0m/stable,now 1.15 arm [installed,automatic]
#[32mfftw#[0m/stable,now 3.3.8-2 arm [installed,automatic]
#[32mfindutils#[0m/stable,now 4.7.0 arm [installed,automatic]
#[32mflex#[0m/stable,now 2.6.4-1 arm [installed,automatic]
#[32mfontconfig#[0m/stable,now 2.13.1-3 arm [installed,automatic]
#[32mfreetype#[0m/stable,now 2.10.1-1 arm [installed,automatic]
#[32mfribidi#[0m/stable,now 1.0.5-1 arm [installed,automatic]
#[32mgame-repo#[0m/stable,now 1.0 all [installed]
#[32mgawk#[0m/stable,now 5.0.1-4 arm [installed,automatic]
#[32mgdbm#[0m/stable,now 1.18.1-2 arm [installed,automatic]
#[32mgdk-pixbuf#[0m/stable,now 2.38.2 arm [installed,automatic]
#[32mghostscript#[0m/stable,now 9.27-2 arm [installed]
#[32mgit#[0m/stable,now 2.23.0 arm [installed]
#[32mglib#[0m/stable,now 2.60.7 arm [installed,automatic]
#[32mgnupg#[0m/stable,now 2.2.17 arm [installed,automatic]
#[32mgpgv#[0m/stable,now 2.2.17 arm [installed]
#[32mgrep#[0m/stable,now 3.3-2 arm [installed,automatic]
#[32mgzip#[0m/stable,now 1.10-2 arm [installed,automatic]
#[32mharfbuzz#[0m/stable,now 2.6.1 arm [installed,automatic]
#[32mharfbuzz-icu#[0m/stable,now 2.6.1 arm [installed,automatic]
#[32mimagemagick#[0m/stable,now 7.0.8.64 arm [installed]
#[32minetutils#[0m/stable,now 1.9.4-6 arm [installed,automatic]
#[32mkrb5#[0m/stable,now 1.17-1 arm [installed,automatic]
#[32mldns#[0m/stable,now 1.7.1-1 arm [installed,automatic]
#[32mless#[0m/stable,now 551-1 arm [installed,automatic]
#[32mlibandroid-glob#[0m/stable,now 0.6 arm [installed,automatic]
#[32mlibandroid-support#[0m/stable,now 24-5 arm [installed]
#[32mlibassuan#[0m/stable,now 2.5.3-1 arm [installed,automatic]
#[32mlibbz2#[0m/stable,now 1.0.8-2 arm [installed]
#[32mlibc++#[0m/stable,now 20-1 arm [installed]
#[32mlibcairo#[0m/stable,now 1.16.0-1 arm [installed,automatic]
#[32mlibcairo-gobject#[0m/stable,now 1.16.0-1 arm [installed,automatic]
#[32mlibcroco#[0m/stable,now 0.6.13-1 arm [installed,automatic]
#[32mlibcrypt#[0m/stable,now 0.2-2 arm [installed,automatic]
#[32mlibcurl#[0m/stable,now 7.66.0 arm [installed]
#[32mlibdb#[0m/stable,now 18.1.32-2 arm [installed,automatic]
#[32mlibedit#[0m/stable,now 20190324-3.1-1 arm [installed,automatic]
#[32mlibevent#[0m/stable,now 2.1.11-2 arm [installed,automatic]
#[32mlibexpat#[0m/stable,now 2.2.8 arm [installed,automatic]
#[32mlibffi#[0m/stable,now 3.2.1-4 arm [installed,automatic]
#[32mlibgcrypt#[0m/stable,now 1.8.5 arm [installed]
#[32mlibgd#[0m/stable,now 2.2.5-5 arm [installed,automatic]
#[32mlibgmp#[0m/stable,now 6.1.2-4 arm [installed,automatic]
#[32mlibgpg-error#[0m/stable,now 1.36-1 arm [installed]
#[32mlibgraphite#[0m/stable,now 1.3.13-3 arm [installed,automatic]
#[32mlibiconv#[0m/stable,now 1.16-3 arm [installed]
#[32mlibicu#[0m/stable,now 64.2-2 arm [installed,automatic]
#[32mlibidn#[0m/stable,now 1.35-2 arm [installed,automatic]
#[32mlibjpeg-turbo#[0m/stable,now 2.0.3 arm [installed,automatic]
#[32mlibksba#[0m/stable,now 1.3.5-2 arm [installed,automatic]
#[32mliblua#[0m/stable,now 5.3.5-3 arm [installed,automatic]
#[32mliblzma#[0m/stable,now 5.2.4-2 arm [installed]
#[32mlibmpfr#[0m/stable,now 4.0.2-1 arm [installed,automatic]
#[32mlibnghttp2#[0m/stable,now 1.39.2 arm [installed]
#[32mlibnpth#[0m/stable,now 1.6-1 arm [installed,automatic]
#[32mlibpixman#[0m/stable,now 0.38.4-2 arm [installed,automatic]
#[32mlibpng#[0m/stable,now 1.6.37-2 arm [installed,automatic]
#[32mlibrsvg#[0m/stable,now 2.46.0 arm [installed,automatic]
#[32mlibsodium#[0m/stable,now 1.0.18-1 arm [installed,automatic]
#[32mlibsqlite#[0m/stable,now 3.29.0-1 arm [installed,automatic]
#[32mlibtiff#[0m/stable,now 4.0.10-8 arm [installed,automatic]
#[32mlibunistring#[0m/stable,now 0.9.10-3 arm [installed,automatic]
#[32mlibutil#[0m/stable,now 0.4 arm [installed,automatic]
#[32mlibuuid#[0m/stable,now 1.0.3-3 arm [installed,automatic]
#[32mlibwebp#[0m/stable,now 1.0.3-1 arm [installed,automatic]
#[32mlibxml2#[0m/stable,now 2.9.9-4 arm [installed,automatic]
#[32mlibzmq#[0m/stable,now 4.3.2-2 arm [installed,automatic]
#[32mlittlecms#[0m/stable,now 2.9-1 arm [installed,automatic]
#[32mm4#[0m/stable,now 1.4.18-1 arm [installed,automatic]
#[32mman#[0m/stable,now 1.14.5-1 arm [installed]
#[32mncurses#[0m/stable,now 6.1.20190511-7 arm [installed]
#[32mncurses-ui-libs#[0m/stable,now 6.1.20190511-7 arm [installed,automatic]
#[32mnet-tools#[0m/stable,now 1.60.2017.02.21-2 arm [installed,automatic]
#[32mnodejs#[0m/stable,now 12.10.0 arm [installed]
#[32mopenjpeg#[0m/stable,now 2.3.1-1 arm [installed,automatic]
#[32mopenssh#[0m/stable,now 8.0p1-5 arm [installed]
#[32mopenssl#[0m/stable,now 1.1.1d arm [installed]
#[32mpango#[0m/stable,now 1.44.6-1 arm [installed,automatic]
#[32mpatch#[0m/stable,now 2.7.6-3 arm [installed,automatic]
#[32mpcre#[0m/stable,now 8.43-3 arm [installed,automatic]
#[32mpcre2#[0m/stable,now 10.33-1 arm [installed,automatic]
#[32mperl#[0m/stable,now 5.30.0-1 arm [installed,automatic]
#[32mphp#[0m/stable,now 7.3.9 arm [installed]
#[32mpinentry#[0m/stable,now 1.1.0-4 arm [installed,automatic]
#[32mpoppler#[0m/stable,now 0.79.0-1 arm [installed,automatic]
#[32mprocps#[0m/stable,now 3.3.15-6 arm [installed,automatic]
#[32mpsmisc#[0m/stable,now 23.2-1 arm [installed,automatic]
#[32mpython#[0m/stable,now 3.7.4-1 arm [installed]
#[32mreadline#[0m/stable,now 8.0.1 arm [installed]
#[32mroot-repo#[0m/stable,now 1.5 all [installed]
#[32mscience-repo#[0m/stable,now 1.0 all [installed]
#[32msed#[0m/stable,now 4.7-1 arm [installed,automatic]
#[32mtar#[0m/stable,now 1.32-3 arm [installed,automatic]
#[32mteckit#[0m/stable,now 2.5.9-3 arm [installed,automatic]
#[32mtermux-am#[0m/stable,now 0.3 all [installed]
#[32mtermux-auth#[0m/stable,now 1.1-1 arm [installed,automatic]
#[32mtermux-create-package#[0m/stable,now 0.7 all [installed]
#[32mtermux-exec#[0m/stable,now 0.4-1 arm [installed]
#[32mtermux-keyring#[0m/stable,now 1.1 all [installed]
#[32mtermux-licenses#[0m/stable,now 1.0 all [installed]
#[32mtermux-tools#[0m/stable,now 0.70 all [installed]
#[32mtexinfo#[0m/stable,now 6.6-1 arm [installed]
#[32mtexlive#[0m/stable,now 20190410 all [installed,automatic]
#[32mtexlive-bin#[0m/stable,now 20190410-5 arm [installed]
#[32mtexlive-tlmgr#[0m/stable,now 20190410 all [installed,automatic]
#[32munzip#[0m/stable,now 6.0-5 arm [installed,automatic]
#[32mutil-linux#[0m/stable,now 2.34-2 arm [installed,automatic]
#[32mvim#[0m/stable,now 8.1.2050 arm [installed]
#[32mvim-runtime#[0m/stable,now 8.1.2050 all [installed,automatic]
#[32mwget#[0m/stable,now 1.20.3-2 arm [installed]
#[32mx11-repo#[0m/stable,now 1.4 all [installed]
#[32mxz-utils#[0m/stable,now 5.2.4-2 arm [installed,automatic]
#[32mzlib#[0m/stable,now 1.2.11-1 arm [installed]
$ apt install update-binary
Reading package lists... 0%Reading package lists... 100%Reading package lists...
Done
Building dependency tree... 0%Building dependency tree... 0%Building dependency
tree... 50%Building dependency tree... 50%Building dependency tree
Reading state information... 0%Reading state information... 1%Reading state
information... Done
E: Unable to locate package update-binary
$ apt install update-
binary##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K#
#[K##[K##[K update-binary
E: Invalid operation update-binary
$ bash update-binary
mkdir: cannot create directory ‘/dev/tmp’: Permission denied
! Unable to extract zip file!
$ busybox ex##[K##[Kuzip##[K##[K##[Knzip update-binary
Archive: update-binary
unzip: short read
$ busy b##[K##[Kbox install ##[K##[K##[K##[K##[K##[K##[K##[Kupdate-binary
update-binary: applet not found
$ dpkg update-binary
#[1mdpkg:#[0m #[1;31merror:#[0m need an action option

Type dpkg --help for help about installing and deinstalling packages [*];
Use 'apt' or 'aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;

Options marked [*] produce a lot of output - pipe it through 'less' or 'more' !
$ dpkg update-
binary##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K####d
pkg --##[K##[K-Dhelp
dpkg debugging option, --debug=<octal> or -D<octal>:

Number Ref. in source Description


1 general Generally helpful progress information
2 scripts Invocation and status of maintainer scripts
10 eachfile Output for each file processed
100 eachfiledetail Lots of output for each file processed
20 conff Output for each configuration file
200 conffdetail Lots of output for each configuration file
40 depcon Dependencies and conflicts
400 depcondetail Lots of dependencies/conflicts output
10000 triggers Trigger activation and processing
20000 triggersdetail Lots of output regarding triggers
40000 triggersstupid Silly amounts of output regarding triggers
1000 veryverbose Lots of drivel about eg the dpkg/info directory
2000 stupidlyverbose Insane amounts of drivel

Debugging options can be mixed using bitwise-or.


Note that the meanings and values are subject to change.
$ util_##[K-linux update-binary
util-linux: command not found
$ openssh update-binary
No command 'openssh' found, did you mean:
Command 'openssl' from package 'openssl-tool'
$ #[K$ #[K$ #[K$ #[K$ #[K$ #[K$ #[K$ 0#[K$ 0#[K$ 0#[K$ 0##[Km4 update-binary
#!/sbin/sh
###################################################################################
#######
#
# Magisk Flash Script
# by topjohnwu
#
# This script will detect, construct the environment for Magisk
# It will then call boot_patch.sh to patch the boot image
#
###################################################################################
#######

###################################################################################
#######
# Preparation
###################################################################################
#######

# Detect whether in boot mode


ps | grep zygote | grep -v grep >/dev/null && BOOTMODE=true || BOOTMODE=false
$BOOTMODE || ps -A 2>/dev/null | grep zygote | grep -v grep >/dev/null &&
BOOTMODE=true

# This path should work in any cases


TMPDIR=/dev/tmp

INSTALLER=$TMPDIR/install
COMMONDIR=$INSTALLER/common
CHROMEDIR=$INSTALLER/chromeos
COREDIR=/magisk/.core
# Default permissions
umask 022

OUTFD=$2
ZIP=$3

rm -rf $TMPDIR 2>/dev/null


mkdir -p $INSTALLER
unzip -o "$ZIP" -d $INSTALLER 2>/dev/null

if [ ! -d "$COMMONDIR" ]; then
echo "! Unable to extract zip file!"
exit 1
fi

# Load utility fuctions


. $COMMONDIR/util_functions.sh

get_outfd

###################################################################################
#######
# Detection
###################################################################################
#######

ui_print "************************"
ui_print "* Magisk v13.1 Installer"
ui_print "************************"

ui_print "- Mounting /system, /vendor, /cache, /data"


mount -o ro /system 2>/dev/null
mount -o ro /vendor 2>/dev/null
mount /cache 2>/dev/null
mount /data 2>/dev/null

[ -f /system/build.prop ] || abort "! /system could not be mounted!"

# read override variables


getvar KEEPVERITY
getvar KEEPFORCEENCRYPT
getvar BOOTIMAGE

# Check if system root is installed and remove


remove_system_su

# Detect version and architecture


api_level_arch_detect

[ $API -lt 21 ] && abort "! Magisk is only for Lollipop 5.0+ (SDK 21+)"

ui_print "- Device platform: $ARCH"

BINDIR=$INSTALLER/$ARCH
chmod -R 755 $CHROMEDIR $BINDIR

find_boot_image
[ -z $BOOTIMAGE ] && abort "! Unable to detect boot image"
###################################################################################
#######
# Environment
###################################################################################
#######

ui_print "- Constructing environment"

is_mounted /data && MAGISKBIN=/data/magisk || MAGISKBIN=/cache/data_bin

# Copy required files


rm -rf $MAGISKBIN 2>/dev/null
mkdir -p $MAGISKBIN
cp -af $BINDIR/. $COMMONDIR/. $MAGISKBIN
cp -af $CHROMEDIR $MAGISKBIN
chmod -R 755 $MAGISKBIN

# addon.d
if [ -d /system/addon.d ]; then
ui_print "- Adding addon.d survival script"
mount -o rw,remount /system
cp $INSTALLER/addon.d/99-magisk.sh /system/addon.d/99-magisk.sh
chmod 755 /system/addon.d/99-magisk.sh
fi

###################################################################################
#######
# Magisk Image
###################################################################################
#######

$BOOTMODE || recovery_actions

# Fix SuperSU.....
$BOOTMODE && $MAGISKBIN/magisk magiskpolicy --live "allow fsck * * *"

if (is_mounted /data); then


IMG=/data/magisk.img
else
IMG=/cache/magisk.img
ui_print "- Data unavailable, use cache workaround"
fi

if [ -f $IMG ]; then
ui_print "- $IMG detected!"
else
ui_print "- Creating $IMG"
$MAGISKBIN/magisk --createimg $IMG 64M
fi

if ! is_mounted /magisk; then


ui_print "- Mounting $IMG to /magisk"
MAGISKLOOP=m4:update-binary:133: ERROR: end of file in string
$ m4 update-binary#[C#[C#[Kif [ -d /system/addon.d ]; then
> ui_print "- Adding addon.d survival script"
> mount -o rw,remount /system
> cp $INSTALLER/addon.d/99-magisk.sh /system/addon.d/99-magisk.sh
> chmod 755 /system/addon.d/99-magisk.sh
> fi
$ #cp $INSTALLER/addon.d/99-magisk.sh /system/addon.d/99-magisk.sh
cp: cannot stat '/addon.d/99-magisk.sh': No such file or directory
$ cp $INSTALLER/addon.d/99-magisk.sh /system/addon.d/99-magisk.sh#[A#[C#[C#. cp
$INSTALLER/addon.d/99-magisk.sh /system/addon.d/99-magisk.sh#[A#[C#[C#[C#[C#cp
$INSTALLER/addon.d/99-magisk.sh /system/addon#[1P.d/99-magisk.sh#[A#[C#[C#[C cp
$INSTALLER/addon.d/99-magisk.sh /system/addon.d/99-magisk.sh#[A#[C#[C#[C#[C#cp
$INSTALLER/addon.d/99-magisk.sh /system/addon#[1P.d/99-magisk.sh#[A#[C#[C#[C#cp
$INSTALLER/addon.d/99-magisk.sh /system/addon.#[1Pd/99-magisk.sh#[A#[C#[C#pcp
$INSTALLER/addon.d/99-magisk.sh /system/addon.d/99-magisk.sh#[A#[C#[C#[Cicp
$INSTALLER/addon.d/99-magisk.sh /system/addon.d/99-magisk.sh#[A#[C#[C#[C#[Cpcp
$INSTALLER/addon.d/99-magisk.sh /system/addon.d/99-magisk.sh#[A#[C#[C#[C#[C#[C cp
$INSTALLER/addon.d/99-magisk.sh /system/addon.d/99-magisk.sh#[A#[C#[C#[C#[C#[C#[C

ERROR: unknown command "cp"


$ pip cp $INSTALLER/addon.d/99-magisk.sh /system/addon.d/99-magisk.sh#[A#[C#[Ccp
$INSTALLER/addon.d/99-magisk.sh /system/addon.#[C#[4P/99-magisk.sh#[A#[C#[Cpip cp
$INSTALLER/addon.d/99-magisk.sh /system/ad#[Con.d/99-magisk.sh#[A#[C#[C#[K
#[K#[A#[C#[Cpip INSTALLER/addon.d/99-magisk.sh /system/addon.d/99-magisk.sh
ERROR: unknown command "INSTALLER/addon.d/99-magisk.sh"
$ pip INSTALLER/addon.d/99-magisk.sh /system/addon.d/99-magisk.sh#[A
#[C#[C#[C#[C#[C#[Ccp $INSTALLER/addon.d/99-magisk.sh /system/ad#[Con.d/99-
magisk.sh#[A#[C#[C#[C#[C#[C#[CINSTALLER/addon.d/99-magisk.sh
/system/addon.#[C#[4P/99-magisk.sh#[A#[C#[C#[K
#[K#[A#[C#[CINSTALLER/addon.d/99-magisk.sh /system/addon.d/99-magisk.sh
bash: INSTALLER/addon.d/99-magisk.sh: No such file or directory
$ php INSTALLER/addon.d/99-magisk.sh /system/addon.d/99-magisk.sh
Could not open input file: INSTALLER/addon.d/99-magisk.sh
$ php INSTALLER/addon.d/99-magisk.sh /system/addon.d/99-magisk.sh#[A
#[C#[CINSTALLER/addon.d/99-magisk.sh /system/addon.d/99#[4P-magisk.sh#[A#[C#[Cphp
INSTALLER/addon.d/99-magisk.sh /system/addon.d/99-magisk.sh#[A#[C#[C#[K
#[K#[A#[C#[C#INSTALLER/addon.d/99-magisk.sh /system/addon.d/99-magisk.shcd
bash: INSTALLER/addon.d/99-magisk.sh: No such file or directory
$ ls
update-binary updater-script
$ cd
$ ls
#[0m#[01;34mdownloads#[0m #[01;34mstorage#[0m tuyul.php wget-log
$ cd starage
bash: cd: starage: No such file or directory
$ cd starage#[C#[Cls#[K##cd##ls##INSTALLER/addon.d/99-magisk.sh /system/addon.d/99-
magisk.shcd#[A#[C#[Cphp INSTALLER/addon.d/99-magisk.sh /system/addon.d/99-
magisk.sh#[A#[C#[CINSTALLER/addon.d/99-magisk.sh /system/addon.d/99#[4P-
magisk.sh#[A#[C#[Cpip INSTALLER/addon.d/99-magisk.sh /system/addon.d/99-
magisk.sh#[A#[C#[C#[C#[C#[C#[Ccp $INSTALLER/addon.d/99-magisk.sh
/system/ad#[Con.d/99-magisk.sh#[A#[C#[Ccp $INSTALLER/addon.d/99-magisk.sh
/system/addon.#[C#[4P/99-magisk.sh#[A#[C#[Cif [ -d /system/addon.d ]; then
ui_print "- Adding addon.d survival script"; mount -o rw,remount /system; cp
$INSTALLER/addon.d/99-magisk.sh /system/addon.d/99-magisk.sh; chmod 755
/system/addon.d/99-magisk.sh; fi#[A#[A#[A#[A#[C#[C#[32Pm4 update-binary
#[K
#[K
#[K
#[K#[A#[A#[A#[A#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C
#[C#[C#[5@openssh#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[3@util-
linux#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[13Pdpkg -Dhelp######update-
binary#[C#[C#[3@busybox#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C############nzip
update-binary#[C#[C#[C#[9Pash#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C
#[C#[C#[1Papt#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[Cinstall
update-binary#[C#[C#[7Ppkg list-installed#[C#[C#[4Plist-installed#[C#[C#[5Ppkg help
#####list installed###########[K#[C#[C#[4Phelp#[C#[Cupdate-binary#[C#[Cred update-
binary#[C#[C#[1Psu#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C
#[C#[C#[3@chmod#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C
#[C#[C#[2Pphp#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C
#[C#[C#[Ci#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[Cls#[K##cd android
#[C#[Cls#[K##cd google#[C#[Cls#[K##cd com#[C#[C#[4Pls##cd com#[C#[C#[4Pls##cd
google#[C#[Cls#[K##cd android#[C#[Cls#[K##cd google#[C#[Cls#[K##cd com
#[C#[C#[4Pls##red MANIFEST.mf#[C#[C#[Cun#[K###mf MANIFEST.MF#[C#[Cphp MANIFEST.log
#[C#[C#[1Psh#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[Cls#[K##mf MANIFEST.MF
#[C#[Cpkg install texlive-bin#[C#[C#[9Pmf MANIFEST.MF#[C#[Cls#[K##cd META-INF
#[C#[Cls#[K##cd Magisk-v13.1#[C#[Cexit#[K#[C#[Cpkg install gradlew.bat
#[C#[C#[4Pdpkg -b#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C-build
gradlew#[C#[C#[C#[C#[C#[C#[C#[C#[Chelp#[K######[2Pdev#b --help####contents
#[C#[C#[7Ppkg find java#[C#[CJAVA#[K#[C#[Cpkg install JAVA#[C#[C#[Cm install
gradlew.bat#[C#[C#[C#[4Pip search gradlew#[C#[C#[6PPip show-all#[C#[Cpkg install
gradlew#[C#[Cfdp#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[Cmdp install
gradlew.bat
#[C#[Car#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#####[K
#[C#[C#[Cd#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[3Ppip install
java#[C#[C#[6Psh gradlew#[C#[C#[C#[1@s#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[Cls#[K##pip
test gradlew.bat#[C#[C#[C#[C#[C#[Cexecute gradlew #[C#[C#[C#[C#[C#[C#[5@download
gradlew.bat#[C-c_#[C#[C#[C#[C#[C#[C#[10Pgradlew.bat -r##/c_#[C#[C#[9P@rem Setup the
command line#[C#[C#[12Pphp gradlew.bat#[C#[C#[C#[8@ip
install#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[12Pgradlew.bat#[C#[Ccd
build.gradle#[C#[C#[9@pip install#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C
#[C#[Cls#[K##cd /storage/external_SD/Download/DogeCoin-Spinner-master/DogeCoin-
Spinner-master#[A#[C#[C#[30Pphp evilscript.txt
#[K#[A#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[16@ip
--verbose debug#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C
#[C#[C#[C#[C#[C#[C#[10P#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C
#[C#[C#[C#[C#[C#[C#[2@compgen#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C
#[C#[C#[4P#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C
#[C#[C#[5Pod#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C
#[C#[C#[C#[C#[C#[5Pnone..txt#[C#[Cdir#[Ks#[C#[Chelp#[C#[Cphp evilscript.txt
#[C#[C#[1Pmd#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[12@pip install
-r#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[Cls#[K##cd Download
#[C#[C#[C#[C#[C#[1P/sdcard#[C#[Cls#[K##cd Telegram#[C#[C#[C#[C#[C#[1P/sdcard
#[C#[Cls#[K##cd MagiskManager#[C#[Cls#[K##cd /sdcard#[C#[Cpkg upgrade && pkg update
#[C#[C#[C#[C#[C#[Cinstall php php-dev curl libcurl wget#[C#[C#[20Ptermux-setup-
storage #[C#[Ccd#[K##ls##pip download hiddenmenu.sh
#[C#[C#[C#[C#[C#[C#[1Pinstall#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C
#[C#[C#[C#[C#[C#[8P.hiddenmenu.sh#[C#[Cls#[K##cd downloads#[C#[Cls#[K##pip search
test.py#[C#[C#[C#[C#[C#[C#[5Ptuyul.php#[C#[Cls#[K##cd##python test.py
#[C#[C#[C#[3@ip check#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[6Ptest.py
#[C#[Cls#[K##pip install test.py
#[C#[C#[C#[C#[C#[C#[Cm#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C
#[C#[C#[C#[C#[C#[K####[1Pm4 test.py#[C#[Cls#[C#[C#[C#[C#[C#[C#[C#[C
#[C#[C#[C#[C#[K##m4 0 import publickey#[C#[C#[4Pin bitcoin wallet#[C#[Cm4
0#[K###d#[C#[C#[C#[Cpv#[C#[C####[1@hp#[C#[C.py#####[K0 \nWhat _n#[C#[C#[C#[7Python
0#[C#[C#[C#[3Php#[C#[C#p####ip o#0 pip#####p#[C#[C#[C#[C#[C#[C#[C#[5Pv o
#[C#[C#[2Pls##clear#[C#[Csh test.py#[C#[Cpr#[C#[C#[C#[C#[C#[C#[C#[C
#[C#[C#[C#[4@ython#[C#[C#[C#[C#[C#[C#[C#[C
#[C#[C#[C#[3Pip#[C#[C#[C#[C#[C#[C#[C#[C#######pywallet.py
#[C#[Cls#[K##cd#md###djdjdcmd#[C#[C#[C#[K##[Kcd storage
$ cd downloads
$ ls
Es-File-Explorer-Pro-1.1.4-APK-Download.apk
'Here’s the script--1.pdf'
'Here’s the script-.pdf'
#[0m#[01;34mMagisk-v13.1#[0m
#[01;34mPlutus-master#[0m
'bitc (SFILE.MOBI).zip'
btc-script.zip
btc.py
#[01;34mbtckeysplit-master#[0m
#[01;34mcom.thirtydegreesray.openhub#[0m
doge_miner_mars_hack.txt
evilscript.txt
firefox_68.1_androidapksbox.apk
none..txt
#[01;34mpreview#[0m
requirements.txt
#[01;34msession#[0m
#[01;34mtelethon#[0m
$ p##[Kpython bi##[Ktc.py 13607420786
ru#[0;35m __ _ __
/ /__ (_)___ _/ /______ _
__ / / _ \ / / __ `/ //_/ __ `/
/ /_/ / __/ / / /_/ / ,< / /_/ /
\____/\___/_/ /\__,_/_/|_|\__,_/
/___/
#[0;34m=========================================================
#[1;32mAuthor By #[1;31m :#[1;0m Kadal15
#[1;32mChannel Yt#[1;31m : #[1;0mJejaka Tutorial
#[1;32mSupported By #[1;31m:#[1;0m ALFRED❤
n# #rub# #n
Traceback (most recent call last):
File "Out.py", line 9, in <module>
File "", line 62, in <module>
File "/storage/emulated/0/Downloa

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy