Chntpw is a utility to view some information and change user passwords in a Windows NT/2000, XP, Vista,7 SAM user database file, usually located at WINDOWS system32 config SAM on the Windows file system. Question: Any Good Bam And Sam Viewer? 7.7 years ago. Ken. 150 wrote: Hi all, what SAM/BAM viewer are you using? Do you have any suggestion on a good BAM/SAM viewer? Thanks in advanced. Right now I need to grab some information from lines of SAM/BAM files. Well, I know we cannot dir.
In the past I have cracked Windows passwords with a Live Linux disk and navigating to the SAM file. In windows 10 it seems this information is stored on the cloud. Is there a way to find this locally on the machine?
1 Answer
The SAM hive still exists in Windows 10, and it's in the same place. For local non-Microsoft accounts, the format does not appear to have changed; the NTLM hash is still the 16 bytes before the last 8 bytes of the V
value.
For accounts that sign in with a Microsoft account password, the CachedLogonInfo
value contains the cached password (source). Unfortunately, it's not just an NTLM hash, so normal Windows hash cracking tools won't work on it. If that page is correct and the algorithm is indeed much stronger - which would make sense, since it would be very bad if an MS account password could be retrieved from a workstation - then cracking it would take an extremely long time considering the complexity requirements Microsoft puts in place.
Not the answer you're looking for? Browse other questions tagged linuxwindowspassword-recovery or ask your own question.
I would like to display the contents of a text file on the command line. The file only contains 5-6 characters. Is there an easy way to do this?
8 Answers
Using cat
Since your file is short, you can usecat
.
Using less
If you have to view the contents of a longer file, you can use a pager such asless
.
You can make less
behave like cat
when invoked on small files and behavenormally otherwise by passing it the -F
and -X
flags.
I have an alias for less -FX
. You can make one yourself like so:
If you add the alias to your shellconfiguration, you can use itforever.
Using od
If your file contains strange or unprintable characters, you can useod
to examine the characters. For example,
Even though everybody uses cat filename
to print a files text to the standard output first purpose is concatenating.From cat's man page:
cat - concatenate files and print on the standard output
Now cat is fine for printing files but there are alternatives:
The ( )
return the value of an expression, in this case the content of filename which then is expanded by $
for echo
or printf
.
Update:
This does exactly what you want and is easy to remember.
Here is an example that lets you select a file in a menu and then prints it.
For further reading:
BashPitfalls - cat file | sed s/foo/bar/ > file
Bash Reference - Redirecting
![Linux Linux](https://i.ytimg.com/vi/jEMW9vYG62Y/maxresdefault.jpg)
You can use following command to display content of a text file.
Tools for handling text files on unix are basic, everyday-commands:
In unix and linux to print out whole content in file
or
or
For last few lines
For first few lines
I always use $ less 'your file here'
, as it is very simple, provides a built in interactive grep
command, and gives you an easy to use interface that you can scroll with the arrow keys.
(It is also included on nearly every *nix system)
One option is to use more
e.g. more file.txt
However it does not have all the feature added by less
.
One simple example is that you can't scroll back up in the output. Generally it has been superceeded by less - which was named in jest because
less is more
If its a large file, and you want to search some specific part, you can use
Also you can use more interactive Vim editor (or vi editor if you do not have Vim):
Vim/vi is a great editor, can also be used as a reader in 'Normal Mode' or using -R option, it has many features that will help you in browsing through the file.
Use cat command to display the content of filename. cat filename
Use vim command to edit file. vim filename
![Viewer Viewer](https://img00.deviantart.net/fd76/i/2011/187/c/9/linux_mint_old_wall_by_samriggs-d3l69qy.jpg)
protected by Community♦Oct 11 '16 at 10:59
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?