Skip to content
Browse files

find local android DoS in debugfs

  • Loading branch information...
1 parent ea86b6b commit 5c8271ba6b965c8081af01b5ef132010821ac700 @poliva committed Dec 27, 2012
Showing with 25 additions and 0 deletions.
  1. +25 −0 android/android-dos.sh
View
25 android/android-dos.sh
@@ -0,0 +1,25 @@
+# find crashes in Android debugfs - should work on standard android with toolbox
+# (c) 2012 Pau Oliva Fora - viaForensics
+#
+# run: android-dos.sh /sys/kernel/debug
+# after you get a reboot/crash, add it as a parameter to exclude it on the next run:
+# android-dos.sh /sys/kernel/debug exclude1 exclude2, etc...
+
+l=$1/*
+shift
+s=$*
+for g in $l ; do
+ if [ -z "$s" ]; then s=NoNeXiStEnT ; fi
+ if [ -d "$g" ]; then $0 "$g" $s ; fi
+ f=0
+ for n in $s ; do
+ echo "$g" |grep -v "$n" >/dev/null
+ if [ "$?" -eq "1" ]; then f=1 ; fi
+ done
+ if [ $f -eq 0 ]; then
+ echo $g
+ cat "$g" >/dev/null 2>&1
+ else
+ echo "================= skipping $g"
+ fi
+done

0 comments on commit 5c8271b

Please sign in to comment.
Something went wrong with that request. Please try again.