支持资源表
This commit is contained in:
parent
2262dea7e2
commit
a260c5b70a
|
@ -1,29 +1,9 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import 'dart:io';
|
|
||||||
|
|
||||||
import '../lib/peparse.dart';
|
import '../lib/peparse.dart';
|
||||||
|
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
const filepath = "D:\\software\\qq\\Bin\\QQ.exe";
|
const filepath = "D:\\software\\qq\\Bin\\QQ.exe";
|
||||||
File file = File(filepath);
|
var pe = PeFile.parseFile(filepath);
|
||||||
var data = ReaderSeeker(file.readAsBytesSync());
|
print(pe.toString());
|
||||||
var header = ImageDocHeader(data);
|
|
||||||
print(header.toString());
|
|
||||||
data.seek(header.elfanew);
|
|
||||||
var nt = ImageNtHeaders32(data);
|
|
||||||
print(nt.toString());
|
|
||||||
print(data.position);
|
|
||||||
var sections = <ImageSectionHeader>[];
|
|
||||||
for (var i = 0; i < nt.fileHeader.numberOfSections; i++) {
|
|
||||||
sections.add(ImageSectionHeader(data));
|
|
||||||
}
|
|
||||||
|
|
||||||
for (var section in sections) {
|
|
||||||
print(section.toString());
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue