Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/ent-chains.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ def chain_search(source_entropy,target):
percentage = (float(100) / len(source_entropy)) * x
print "\rFinding chains... {}%".format(percentage),
if source_entropy[x]:
#contiune chain or start new chain
#continue chain or start new chain
if cur_len > -1:
#contiune chain
#continue chain
cur_len += 1
else:
#start new chain
Expand All @@ -67,7 +67,7 @@ def chain_search(source_entropy,target):
if cur_len >= target:
#append current chain to list
chains.append([cur_start,cur_len])
#reset chaiin stats
#reset chain stats
cur_start = -1
cur_len = -1
else:
Expand Down
4 changes: 2 additions & 2 deletions examples/hunt.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Running hunt
For this example hunt is called with the following command:

```
hunt example.001 password chain=256
hunt example.001 password --chain=256
```

The options are as follows:
Expand Down Expand Up @@ -220,7 +220,7 @@ Looking at the FAT volume we can map out the layout of the files. The layout of

We can now use hunt to try and locate some headers. hunt is called in exactly the same way as before:
```
hunt example2.001 password chain=256
hunt example2.001 password --chain=256
```

In this instance, only one header was located at sector 20496.
Expand Down
8 changes: 4 additions & 4 deletions examples/hunt.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ def chain_search(source_entropy,target):
percentage = (float(100) / len(source_entropy)) * x
print "\rFinding chains... {}%".format(percentage),
if source_entropy[x]:
#contiune chain or start new chain
#continue chain or start new chain
if cur_len > -1:
#contiune chain
#continue chain
cur_len += 1
else:
#start new chain
Expand All @@ -119,7 +119,7 @@ def chain_search(source_entropy,target):
if cur_len >= target:
#append current chain to list
chains.append([cur_start,cur_len])
#reset chaiin stats
#reset chain stats
cur_start = -1
cur_len = -1
else:
Expand Down Expand Up @@ -150,7 +150,7 @@ def test_chains(chains,f,hash_options,crypto_options,passwords):

#calc start location, searching for the typical location of a normal
#backup header and not a hidden header. Changing the -256 will change
#this or increasing the search size will aloow it to be found however
#this or increasing the search size will allow it to be found however
#this will be slow
search_start = (chain_sector + chain_len - 256 - search_size) * 512
search_end = (chain_sector + chain_len - 256 + search_size) * 512
Expand Down