Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

find local android DoS in debugfs

  • Loading branch information...
commit 5c8271ba6b965c8081af01b5ef132010821ac700 1 parent ea86b6b
Pau Oliva authored

Showing 1 changed file with 25 additions and 0 deletions. Show diff stats Hide diff stats

  1. +25 0 android/android-dos.sh
25 android/android-dos.sh
... ... @@ -0,0 +1,25 @@
  1 +# find crashes in Android debugfs - should work on standard android with toolbox
  2 +# (c) 2012 Pau Oliva Fora - viaForensics
  3 +#
  4 +# run: android-dos.sh /sys/kernel/debug
  5 +# after you get a reboot/crash, add it as a parameter to exclude it on the next run:
  6 +# android-dos.sh /sys/kernel/debug exclude1 exclude2, etc...
  7 +
  8 +l=$1/*
  9 +shift
  10 +s=$*
  11 +for g in $l ; do
  12 + if [ -z "$s" ]; then s=NoNeXiStEnT ; fi
  13 + if [ -d "$g" ]; then $0 "$g" $s ; fi
  14 + f=0
  15 + for n in $s ; do
  16 + echo "$g" |grep -v "$n" >/dev/null
  17 + if [ "$?" -eq "1" ]; then f=1 ; fi
  18 + done
  19 + if [ $f -eq 0 ]; then
  20 + echo $g
  21 + cat "$g" >/dev/null 2>&1
  22 + else
  23 + echo "================= skipping $g"
  24 + fi
  25 +done

0 comments on commit 5c8271b

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