Advertisement
Guest User

Untitled

a guest
Apr 15th, 2010
501
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3.  
  4.  
  5. #for i in `seq $((35730*1024)) $((35731*1024))`;
  6. for i in `seq 46916000 46928487`;
  7. do
  8. if [ $(( $i % 100 )) -eq 0 ] ;
  9. then
  10. echo seek $i
  11. echo $i > /tmp/seek
  12.  
  13. fi
  14. dd if=/media/0776c516-2504-418f-8962-15b1853038f6/sda.img of=/tmp/tmp.img bs=512 skip=$i count=1 1> /dev/null 2> /dev/null
  15. #tune2fs -l /tmp/tmp.img 1> /dev/null 2> /dev/null
  16. #grep --binary-files=binary \x53\xEF /tmp/tmp.img
  17. od -x tmp.img | grep 53ef
  18. if [ $? -eq 0 ] ;
  19. then
  20. echo FOUND $i;
  21. cp /tmp/tmp.img /tmp/hexa/$i.img
  22.  
  23. fi
  24. #grep --binary-files=binary kikoun /tmp/tmp.img
  25. #if [ $? -eq 0 ] ;
  26. #then
  27. # echo FOUND $i;
  28. # cp /tmp/tmp.img /tmp/kikoun/$i.img
  29. #
  30. # fi
  31. # grep --binary-files=binary nuokik /tmp/tmp.img
  32. # if [ $? -eq 0 ] ;
  33. # then
  34. # echo FOUND $i;
  35. # cp /tmp/tmp.img /tmp/nuokik/$i.img
  36. #
  37. # fi
  38.  
  39.  
  40. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement