Skip to content

Update Loader #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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