Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sleuthkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IRT
Sleuthkit
Commits
b7b635b9
Commit
b7b635b9
authored
4 years ago
by
apriestman
Browse files
Options
Downloads
Patches
Plain Diff
Restore password option to the usage statement.
Generate error if password is given without file system type.
parent
a478a3cd
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
tools/fstools/fls.cpp
+7
-1
7 additions, 1 deletion
tools/fstools/fls.cpp
tools/fstools/fsstat.cpp
+7
-1
7 additions, 1 deletion
tools/fstools/fsstat.cpp
tools/fstools/icat.cpp
+7
-1
7 additions, 1 deletion
tools/fstools/icat.cpp
tools/fstools/istat.cpp
+7
-1
7 additions, 1 deletion
tools/fstools/istat.cpp
with
28 additions
and
4 deletions
tools/fstools/fls.cpp
+
7
−
1
View file @
b7b635b9
...
...
@@ -67,7 +67,7 @@ usage()
"
\t
-z: Time zone of original machine (i.e. EST5EDT or GMT) (only useful with -l)
\n
"
);
tsk_fprintf
(
stderr
,
"
\t
-s seconds: Time skew of original machine (in seconds) (only useful with -l & -m)
\n
"
);
//
tsk_fprintf(stderr, "\t-k password: Decryption password for encrypted volumes\n");
tsk_fprintf
(
stderr
,
"
\t
-k password: Decryption password for encrypted volumes
\n
"
);
exit
(
1
);
}
...
...
@@ -255,6 +255,12 @@ main(int argc, char **argv1)
usage
();
}
/* Passwords only work if the file system type has been specified */
if
(
strlen
(
password
)
>
0
&&
fstype
==
TSK_FS_TYPE_DETECT
)
{
tsk_fprintf
(
stderr
,
"File system type must be specified to use a password
\n
"
);
usage
();
}
/* Set the full flag to print the full path name if recursion is
** set and we are only displaying files or deleted files
...
...
This diff is collapsed.
Click to expand it.
tools/fstools/fsstat.cpp
+
7
−
1
View file @
b7b635b9
...
...
@@ -39,7 +39,7 @@ usage()
"
\t
-B pool_volume_block: Starting block (for pool volumes only)
\n
"
);
tsk_fprintf
(
stderr
,
"
\t
-v: verbose output to stderr
\n
"
);
tsk_fprintf
(
stderr
,
"
\t
-V: Print version
\n
"
);
//
tsk_fprintf(stderr, "\t-k password: Decryption password for encrypted volumes\n");
tsk_fprintf
(
stderr
,
"
\t
-k password: Decryption password for encrypted volumes
\n
"
);
exit
(
1
);
}
...
...
@@ -173,6 +173,12 @@ main(int argc, char **argv1)
usage
();
}
/* Passwords only work if the file system type has been specified */
if
(
strlen
(
password
)
>
0
&&
fstype
==
TSK_FS_TYPE_DETECT
)
{
tsk_fprintf
(
stderr
,
"File system type must be specified to use a password
\n
"
);
usage
();
}
if
((
img
=
tsk_img_open
(
argc
-
OPTIND
,
&
argv
[
OPTIND
],
imgtype
,
ssize
))
==
NULL
)
{
...
...
This diff is collapsed.
Click to expand it.
tools/fstools/icat.cpp
+
7
−
1
View file @
b7b635b9
...
...
@@ -56,7 +56,7 @@ usage()
tsk_fprintf
(
stderr
,
"
\t
-S snap_id: Snapshot ID (for APFS only)
\n
"
);
tsk_fprintf
(
stderr
,
"
\t
-v: verbose to stderr
\n
"
);
tsk_fprintf
(
stderr
,
"
\t
-V: Print version
\n
"
);
//
tsk_fprintf(stderr, "\t-k password: Decryption password for encrypted volumes\n");
tsk_fprintf
(
stderr
,
"
\t
-k password: Decryption password for encrypted volumes
\n
"
);
exit
(
1
);
}
...
...
@@ -203,6 +203,12 @@ main(int argc, char **argv1)
usage
();
}
/* Passwords only work if the file system type has been specified */
if
(
strlen
(
password
)
>
0
&&
fstype
==
TSK_FS_TYPE_DETECT
)
{
tsk_fprintf
(
stderr
,
"File system type must be specified to use a password
\n
"
);
usage
();
}
/* Get the inode address */
if
(
tsk_fs_parse_inum
(
argv
[
argc
-
1
],
&
inum
,
&
type
,
&
type_used
,
&
id
,
&
id_used
))
{
...
...
This diff is collapsed.
Click to expand it.
tools/fstools/istat.cpp
+
7
−
1
View file @
b7b635b9
...
...
@@ -55,7 +55,7 @@ usage()
tsk_fprintf
(
stderr
,
"
\t
-S snap_id: Snapshot ID (for APFS only)
\n
"
);
tsk_fprintf
(
stderr
,
"
\t
-v: verbose output to stderr
\n
"
);
tsk_fprintf
(
stderr
,
"
\t
-V: print version
\n
"
);
//
tsk_fprintf(stderr, "\t-k password: Decryption password for encrypted volumes\n");
tsk_fprintf
(
stderr
,
"
\t
-k password: Decryption password for encrypted volumes
\n
"
);
exit
(
1
);
}
...
...
@@ -216,6 +216,12 @@ main(int argc, char **argv1)
usage
();
}
/* Passwords only work if the file system type has been specified */
if
(
strlen
(
password
)
>
0
&&
fstype
==
TSK_FS_TYPE_DETECT
)
{
tsk_fprintf
(
stderr
,
"File system type must be specified to use a password
\n
"
);
usage
();
}
/* if we are given the inode in the inode-type-id form, then ignore
* the other stuff w/out giving an error
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment