mirror of
https://github.com/QuasarApp/LIEF.git
synced 2025-04-30 06:14:37 +00:00
14 lines
296 B
C++
14 lines
296 B
C++
|
#include <iostream>
|
||
|
#include <LIEF/LIEF.hpp>
|
||
|
|
||
|
int main(int argc, char** argv) {
|
||
|
if (argc != 2) {
|
||
|
std::cerr << "Usage: " << argv[0] << " <binary>" << std::endl;
|
||
|
return 1;
|
||
|
}
|
||
|
|
||
|
LIEF::Binary* binary = LIEF::Parser::parse(argv[1]);
|
||
|
std::cout << *binary << std::endl;
|
||
|
delete binary;
|
||
|
}
|