mirror of
https://github.com/QuasarApp/LIEF.git
synced 2025-04-29 13:54:33 +00:00
14 lines
282 B
C++
14 lines
282 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;
|
|
}
|
|
|
|
auto binary = LIEF::Parser::parse(argv[1]);
|
|
std::cout << *binary << std::endl;
|
|
return 0;
|
|
}
|