1
1
Fork 0

lifesaver script searches for string on raw disk to retrive lost textfiles/code

This commit is contained in:
david 2013-06-23 13:49:22 +02:00
parent da434cd3d1
commit 0916850a86
1 changed files with 6 additions and 0 deletions

6
lifesaver.sh Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/perl
open(DEV, '/dev/sda1') or die "Can't open: $!\n";
while (read(DEV, $buf, 4096)) {
print tell(DEV), "\n", $buf, "\n"
if $buf =~ /fletter/;
}