You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
387 B
17 lines
387 B
3 years ago
|
#include "../include/llodctor_pe.hpp"
|
||
|
#include "../include/lloiff.hpp"
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
std::string file_name = "test.exe";
|
||
|
std::vector< std::uint8_t > image;
|
||
|
|
||
|
llo::lloiff_t iif( file_name );
|
||
|
auto pe_dctor = llo::s1::dctor_base_t::begin( image );
|
||
|
|
||
|
if ( !pe_dctor->generate( iif ) )
|
||
|
{
|
||
|
std::printf( "> failed to generate iff...\n" );
|
||
|
return -1;
|
||
|
}
|
||
|
}
|