Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions loader/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ int GetPackedArguments(int argc, const char* argv[], const char* bof_args_def, s

int main(int argc, char** argv){

if(argc < 3){
if(argc < 2){
puts("Not enough arguments to load BOF PE file.\nloader pefile [fmt [arg1] [arg2] ...]");
return -1;
}
Expand All @@ -443,8 +443,8 @@ int main(int argc, char** argv){

if(pe.exports().count() > 0){

//Find the first exported function
auto entry = bof_entry_ptr(pe.exports().begin()->address());
//Find the 'go' exported function
auto entry = bof_entry_ptr(pe.exports().find("go").address());

if (argc - 2 <= 0) {
//If we have less than 2 arguments, then no BOF arguments were provided
Expand Down