GithubHelp home page GithubHelp logo

ntfsdump's Introduction

ntfsdump

Extract files from NTFS Volume. Administrator privilege may be required.

ntfsdump>ntfsdump C
OEM ID: "NTFS    "
Byte/Sector: 512
Sector/Cluster: 8
Total Sector: 998955007
Cluster of MFT: 786432
Cluster/Record: 4294967286
Cluster Size: 4096
Record Size: 1024
MFT stage: 2
MFT size: 1245446144
Record number: 1216256
MFT run list: 8
             c0000             c820
           23d660e             c812
           13c9750             c810
           29130b0              6fe
           657e638             38a8
           4a306e8            11518
           3b18165             cd4d
           3a0fa02             2973
File List:
           0       $MFT
           1       $MFTMirr
           2       $LogFile
           3       $Volume
           4       $AttrDef
           5   dir .
           6       $Bitmap
           7       $Boot
           8       $BadClus
           9 ????? $Secure
          10       $UpCase
          11   dir $Extend
          12       Failed to find $File_Name attribute
          13       Failed to find $File_Name attribute
          14       Failed to find $File_Name attribute
          15       Failed to find $File_Name attribute
          16 -
 :
 :
     1215192       ntfsdump.cpp
 :
 :
ntfsdump>ntfsdump C 1215192 hoge.txt
OEM ID: "NTFS    "
Byte/Sector: 512
Sector/Cluster: 8
Total Sector: 998955007
Cluster of MFT: 786432
Cluster/Record: 4294967286
Cluster Size: 4096
Record Size: 1024
MFT stage: 2
MFT size: 1245446144
Record number: 1216256
MFT run list: 8
             c0000             c820
           23d660e             c812
           13c9750             c810
           29130b0              6fe
           657e638             38a8
           4a306e8            11518
           3b18165             cd4d
           3a0fa02             2973
Record index: 1215192
Output file name: hoge.txt
Stage: 2 ($Data is non-resident)
Run list: 1
             56652                6
Success
ntfsdump>type hoge.txt
#define WIN32_LEAN_AND_MEAN
#include <cstdio>
#include <Windows.h>
#include <tchar.h>
#include <locale.h>
#include <shellapi.h>
#include <vector>
#include <functional>
 :
 :

License

MIT License.

Note that this software is based on the following documents:

As mentioned in the license file, I make no warranty that this software does not infringe owners of these documents and Microsoft Corporation's rights.

ntfsdump's People

Contributors

kusano avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ntfsdump's Issues

Could you share CL parameter pls ?

I guess it's about unicode options the error while compiling ?

c:\temp\ntfsdump\ntfsdump.cpp(418): error C2664: 'LPWSTR *CommandLineToArgvW(LPCWSTR,int *)': cannot convert argument 1 from 'LPSTR' to 'LPCWSTR'
c:\temp\ntfsdump\ntfsdump.cpp(418): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\shellapi.h(68): note: see declaration of 'CommandLineToArgvW'
c:\temp\ntfsdump\ntfsdump.cpp(431): error C2664: '__int64 _atoi64(const char *)': cannot convert argument 1 from 'LPWSTR' to 'const char *'
c:\temp\ntfsdump\ntfsdump.cpp(431): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\stdlib.h(454): note: see declaration of '_atoi64'
c:\temp\ntfsdump\ntfsdump.cpp(502): warning C4477: 'printf' : format string '%lld' requires an argument of type '__int64', but variadic argument 1 has type 'unsigned int'
c:\temp\ntfsdump\ntfsdump.cpp(502): note: consider using '%zd' in the format string
c:\temp\ntfsdump\ntfsdump.cpp(569): error C3863: array type 'BYTE [1]' is not assignable
c:\temp\ntfsdump\ntfsdump.cpp(569): error C2146: syntax error: missing ')' before identifier 'or'
c:\temp\ntfsdump\ntfsdump.cpp(569): error C3861: 'or': identifier not found
c:\temp\ntfsdump\ntfsdump.cpp(569): error C2059: syntax error: ')'
c:\temp\ntfsdump\ntfsdump.cpp(570): error C2146: syntax error: missing ';' before identifier 'printf'
c:\temp\ntfsdump\ntfsdump.cpp(582): warning C4477: 'printf' : format string '%s' requires an argument of type 'char *', but variadic argument 1 has type 'LPWSTR'
c:\temp\ntfsdump\ntfsdump.cpp(582): note: consider using '%ls' in the format string
c:\temp\ntfsdump\ntfsdump.cpp(582): note: consider using '%lls' in the format string
c:\temp\ntfsdump\ntfsdump.cpp(582): note: consider using '%Ls' in the format string
c:\temp\ntfsdump\ntfsdump.cpp(582): note: consider using '%ws' in the format string
c:\temp\ntfsdump\ntfsdump.cpp(608): error C2664: 'HANDLE CreateFileA(LPCSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,DWORD,DWORD,HANDLE)': cannot convert argument 1 from 'LPWSTR' to 'LPCSTR'
c:\temp\ntfsdump\ntfsdump.cpp(608): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\fileapi.h(81): note: see declaration of 'CreateFileA'
c:\temp\ntfsdump\ntfsdump.cpp(640): warning C4477: 'printf' : format string '%lld' requires an argument of type '__int64', but variadic argument 1 has type 'unsigned int'
c:\temp\ntfsdump\ntfsdump.cpp(640): note: consider using '%zd' in the format string
c:\temp\ntfsdump\ntfsdump.cpp(677): warning C4477: 'printf' : format string '%s' requires an argument of type 'char *', but variadic argument 1 has type 'LPWSTR'
c:\temp\ntfsdump\ntfsdump.cpp(677): note: consider using '%ls' in the format string
c:\temp\ntfsdump\ntfsdump.cpp(677): note: consider using '%lls' in the format string
c:\temp\ntfsdump\ntfsdump.cpp(677): note: consider using '%Ls' in the format string
c:\temp\ntfsdump\ntfsdump.cpp(677): note: consider using '%ws' in the format string

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.