lifesaver script searches for string on raw disk to retrive lost textfiles/code
This commit is contained in:
parent
da434cd3d1
commit
0916850a86
|
@ -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/;
|
||||
}
|
Loading…
Reference in New Issue