Created
December 12, 2017 18:49
-
-
Save Gameye98/92035588bd0228df6fb7fa77a5f26bc2 to your computer and use it in GitHub Desktop.
View your general device information
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/system/bin/sh | |
# XD3v v1.0 | |
# Date 11-12-2017 (17:16) | |
# Author: DedSecTL | |
# Github: https://github.com/Gameye98 | |
# Blog: http://droidsec9798-com.mwapblog.com | |
# BlackHole Security (BlackHoleSec) | |
help() { | |
echo "XD3v v1.0-dev (c) 2017 by DedSecTL/DTL - No Army Can Stop an Idea"; | |
echo "Usage: xd3v [options]"; | |
echo " -h,--help print this help message"; | |
echo " -d,--device print device information"; | |
echo " -o,--os print os information"; | |
echo " -c,--cpu print cpu information"; | |
echo " -b,--battery print battery information"; | |
echo " -s,--storage print storage information"; | |
echo " -d,--network print network information"; | |
echo " -v,--version print version number"; | |
} | |
device() { | |
manufacturer=$(getprop ro.product.manufacturer); | |
brand=$(getprop ro.product.brand); | |
model=$(getprop ro.product.model); | |
board=$(getprop ro.product.board); | |
hardware=$(getprop ro.hardware); | |
serialno=$(getprop ro.serialno); | |
androidid=$(getprop net.hostname); | |
bootloader=$(getprop ro.bootloader); | |
user=$(getprop ro.build.user); | |
host=$(getprop ro.build.host); | |
echo "XD3v v1.0-dev (c) 2017 by DedSecTL/DTL"; | |
echo ""; | |
echo "Manufacturer : $manufacturer"; | |
echo "Brand : $brand"; | |
echo "Model : $model"; | |
echo "Board : $board"; | |
echo "Hardware : $hardware"; | |
echo "Serialno : $serialno"; | |
echo "Android ID : $androidid"; | |
echo "Boot Loader : $bootloader"; | |
echo "User : $user"; | |
echo "Host : $host"; | |
} | |
os() { | |
version=$(getprop ro.build.version.release) | |
sdk=$(getprop ro.build.version.sdk) | |
buildid=$(getprop ro.build.id) | |
builddate=$(getprop ro.build.date) | |
fingerprint=$(getprop ro.build.fingerprint) | |
echo "XD3v v1.0-dev (c) 2017 by DedSecTL/DTL"; | |
echo ""; | |
echo "Version : $version"; | |
echo "API Level : $sdk"; | |
echo "Build ID : $buildid"; | |
echo "Build Time : $builddate"; | |
echo "Fingerprint : $fingerprint"; | |
} | |
cpu() { | |
echo "XD3v v1.0-dev (c) 2017 by DedSecTL/DTL"; | |
echo ""; | |
cat /proc/cpuinfo | |
} | |
battery() { | |
echo "XD3v v1.0-dev (c) 2017 by DedSecTL/DTL"; | |
echo ""; | |
su -c dumpsys battery | |
} | |
storage() { | |
echo "XD3v v1.0-dev (c) 2017 by DedSecTL/DTL"; | |
echo ""; | |
df | |
} | |
network() { | |
echo "XD3v v1.0-dev (c) 2017 by DedSecTL/DTL"; | |
echo ""; | |
su -c dumpsys netstats | |
} | |
xdev-version() { | |
echo ""; | |
echo "XD3v version 1.0 ( http://droidsec9798-com.mwapblog.com )"; | |
} | |
options="$*" | |
if [ -z $options ]; then | |
echo "XD3v v1.0-dev (c) 2017 by DedSecTL/DTL - No Army Can Stop an Idea"; | |
echo "Syntax: xd3v [options]"; | |
echo | |
echo "Options: | |
-h,--help print help message | |
-d,--device print device information | |
-o,--os print os information | |
-c,--cpu print cpu information | |
-b,--battery print battery information | |
-s,--storage print storage information | |
-n,--network print network information | |
-v,--version print version number | |
Visit my blog <http://droidsec9798-com.mwapblog.com> and my github <https://github.com/Gameye98>"; | |
elif [ "$options" == "-h" ] || [ "$options" == "--help" ]; then | |
help | |
elif [ "$options" == "-d" ] || [ "$options" == "--device" ]; then | |
device | |
elif [ "$options" == "-o" ] || [ "$options" == "--os" ]; then | |
os | |
elif [ "$options" == "-c" ] || [ "$options" == "--cpu" ]; then | |
cpu | |
elif [ "$options" == "-b" ] || [ "$options" == "--battery" ]; then | |
battery | |
elif [ "$options" == "-s" ] || [ "$options" == "--storage" ]; then | |
storage | |
elif [ "$options" == "-n" ] || [ "$options" == "--network" ]; then | |
network | |
elif [ "$options" == "-v" ] || [ "$options" == "--tversion" ]; then | |
xdev-version | |
else | |
echo `$options`; | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment