Mb120 root

hosbulduk Çevrimdışı

hosbulduk 

TFC Team
9 Kas 2018
3,721
Yönlendirme yaparsanız sevinirim fikojinin bir metnini beyenmeye calisiyorum
linkteki konuda 1. mesaji begenin linkler acilir,aciklamalari inceleyin yüklemek icin gerekli bilgiler mevcut.eger sorunuz var ise o konu altinda sorularinizi sorun lütfen
 
teraspy Çevrimdışı

teraspy 

TFC Team
26 Kas 2018
21,320
64
teraspy teraspy :)

#!/bin/sh

operation=$1

#Sleep 3 seconds to wait U-disk discoveryed by Kernel
sleep 3

if [ ! -d /sdcard ]; then
mkdir /sdcard
fi

time_sec=1
while [ $time_sec -le 10 ];do

fdisk -l /dev/sda | grep /dev/sda1
#The u-disk has partition
if [ $? -eq 0 ]; then
fdisk -l /dev/sda | grep NTFS
if [ $? -eq 0 ]; then
ntfs-3g -o big_writes /dev/sda1 /sdcard
if [ $? -eq 0 ]; then
echo "mount /dev/sda1 success!"
break
fi
else
#Directly mount U-disk
mount /dev/sda1 /sdcard
if [ $? -eq 0 ]; then
echo "mount /dev/sda1 success!"
break
fi
fi
else
#The u-disk has no partition
fdisk -l /dev/sda | grep NTFS
if [ $? -eq 0 ]; then
ntfs-3g -o big_writes /dev/sda /sdcard
if [ $? -eq 0 ]; then
echo "mount /dev/sda success!"
break
fi
else
#Directly mount u-disk
mount /dev/sda /sdcard
if [ $? -eq 0 ]; then
echo "mount /dev/sda success!"
break
fi
fi
fi

echo "$time_sec"
sleep 2
time_sec=$(($time_sec+1))
done

if [ $time_sec -gt 10 ]; then
echo "Mount U-disk timeout, quit..."
return
fi

if [ $operation == "dump" ]; then
#dump

dd if=/dev/mmcblk0boot0 of=/sdcard/boot1.bin
if [ $? -eq 0 ]; then
echo "Dump boot 1 area success!"
else
echo "Dump boot 1 area failed!"
fi

dd if=/dev/mmcblk0boot1 of=/sdcard/boot2.bin
if [ $? -eq 0 ]; then
echo "Dump boot 2 area success!"
else
echo "Dump boot 2 area failed!"
fi

echo "Dumping user area, please wait..."
dd if=/dev/mmcblk0 of=/sdcard/user.bin bs=64k
if [ $? -eq 0 ]; then
echo "Dump user area success!"
else
echo "Dump user area failed!"
fi

elif [ $operation == "restore" ]; then

#restore
echo 0 > /sys/block/mmcblk0boot0/force_ro
dd if=/sdcard/boot1.bin of=/dev/mmcblk0boot0
if [ $? -eq 0 ]; then
echo "Restore boot 1 area success!"
else
echo "Restore boot 1 area failed!"
fi

echo 0 > /sys/block/mmcblk0boot1/force_ro
dd if=/sdcard/boot2.bin of=/dev/mmcblk0boot1
if [ $? -eq 0 ]; then
echo "Restore boot 2 area success!"
else
echo "Restore boot 2 area failed!"
fi

#first uncompress the emmc partition, then write to emmc
echo "Restoring user area, please wait..."
dd if=/sdcard/user.bin of=/dev/mmcblk0 bs=64k
if [ $? -eq 0 ]; then
echo "Restore user area success!"
else
echo "Restore user area failed!"
fi

elif [ $operation == "eupm" ]; then

#eupm
echo "Starting dump upm file"
upm_tool
echo "upm file dump finished !"

else
echo "Wrong operation!"
fi

#Determine all data write to destination
sync

umount /sdcard

# send signal to inform init process
#kill -SIGUSR1 1


#!/bin/sh
#Prepare all env for dump&restore mode
#mount -t ext4 /dev/mmcblk0p13 /mnt

#if [ ! -f /mnt/modules/usb-common.ko ];
#then
# umount /mnt
# mount -t ext4 /dev/mmcblk0p10 /mnt
#fi
#
#if [ ! -f /mnt/modules/usb-common.ko ];
#then
# umount /mnt
# mount -t ext4 /dev/mmcblk0p11 /mnt
#fi


#insmod all usb driver
insmod /usbdrivers/usb-common.ko
insmod /usbdrivers/usbcore.ko
insmod /usbdrivers/xhci-hcd.ko
insmod /usbdrivers/ehci-hcd.ko
insmod /usbdrivers/usb-storage.ko
insmod /usbdrivers/nvt-crypt.ko

umount /mnt

#Check command in MISC partition
dd if=/dev/mmcblk0p6 of=/tmp/strings.txt bs=20 count=1
command=`sed -n '1p' /tmp/strings.txt`
echo "command = ${command}" > /dev/console

#Run command
if [ ${command:0:9} = "emmc-dump" ]; then
#First wipe MISC partition
echo boot-normal > /dev/mmcblk0p6 && sync

sh /etc/emmc.sh dump 1>/dev/console
# send signal to inform init process
#kill -SIGUSR1 1
elif [ ${command:0:12} = "emmc-restore" ]; then
#First wipe MISC partition
echo boot-normal > /dev/mmcblk0p6 && sync

sh /etc/emmc.sh restore 1>/dev/console
# send signal to inform init process
#kill -SIGUSR1 1

elif [ ${command:0:9} = "emmc-eupm" ]; then
#First wipe MISC partition
echo boot-normal > /dev/mmcblk0p6 && sync

sh /etc/emmc.sh eupm 1>/dev/console
# send signal to inform init process
#kill -SIGUSR1 1

else
echo "Normal boot command: ${command}" > /dev/console
# send signal to inform init process
#kill -SIGUSR1 1
fi
Mesaj otomatik olarak birleştirildi:

F fikoloji hosbulduk hosbulduk teraspy teraspy

MMC read: dev # 0, block # 14209, count 1 ... 1 blocks read: OK

MMC read: dev # 0, block # 14209, count 1398 ... 1398 blocks read: OK

MMC read: dev # 0, block # 186368, count 3 ... 3 blocks read: OK
command=emmc-dump

MMC read: dev # 0, block # 34816, count 4 ... 4 blocks read: OK

MMC read: dev # 0, block # 34820, count 31252 ... 31252 blocks read: OK
Checking for NFSK image.
NFSK image verified.
Checking for NFSK image.
NFSK image verified.
## Booting androtavsiye from Legacy Image at 04407fc0 ...
Image Name: 668-tk-kernel
Image Type: ARM androtavsiye Image (uncompressed)
Data Size: 8835437 Bytes = 8.4 MiB
Load Address: 04408000
Entry Point: 04408000
## Loading init Ramdisk from Legacy Image at 04e00000 ...
Image Name: Root Filesystem
Image Type: ARM androtavsiye RAMDisk Image (uncompressed)
Data Size: 7146369 Bytes = 6.8 MiB
Load Address: 04e00000
Entry Point: 04e00000
XIP androtavsiye Image ... OK
OK

Starting androtavsiye ...
Mesaj otomatik olarak birleştirildi:

NAME START END SECTS SIZE ID TYPE NOTES

mmcblk0boot0 ???? ??? ????? 2M ?? ???? apparently, ecos
mmcblk0boot1 ???? ??? ????? 2M ?? ???? apparently, netflix
mmcblk0p1 2048 18431 16384 8M 83 Linux apparently, ecos
mmcblk0p2 18432 34815 16384 8M 83 Linux apparently, ecos
mmcblk0p3 34816 83967 49152 24M 83 Linux android image (boot.img probably)
mmcblk0p4 83968 7733247 7649280 3,7G 5 Extended
mmcblk0p5 86016 184319 98304 48M 83 Linux android image (recovery.img probably, same as boot.img)
mmcblk0p6 186368 202751 16384 8M 83 Linux referenced as MISC, actually just a 20-bytes command string
mmcblk0p7 204800 221183 16384 8M 83 Linux /impdat
mmcblk0p8 223232 288767 65536 32M 83 Linux /applications/database
mmcblk0p9 290816 356351 65536 32M 83 Linux /cache
mmcblk0p10 358400 423935 65536 32M 83 Linux /applications/tclconfig
mmcblk0p11 425984 952319 526336 257M 83 Linux /soc_lib
mmcblk0p12 954368 987135 32768 16M 83 Linux /mtd_apdat
mmcblk0p13 989184 3086335 2097152 1G 83 Linux /
mmcblk0p14 3088384 7141374 4052991 2G 83 Linux /data
Kullanıcılar için gizli metin: ytigi , hosbulduk 

Düzgün bir sh yolla bakalım ,böyle çorba gibi olmasın mubarek :)
 
ytigi Çevrimdışı

ytigi 

VIP
4 Nis 2019
435
36
Son düzenleme:
teraspy Çevrimdışı

teraspy 

TFC Team
26 Kas 2018
21,320
64
KL kernel ,5 numara root dosya sistemi ,kök dizin burada :)
Koy içine istediklerini at tvye diyeceğim ama :)


tavsiye-137.png
 

Bu konuyu görüntüleyen kullanıcılar

Geri
Üst Alt