question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Arguments do not get passed

See original GitHub issue

When running a base64 encoded file via command line, arguments are not appropriately passed to the execution of the command of some binaries.

I have used net.exe just fine, however Mimikatz and CheekyBlinders both do not get arguments passed appropriately.

RunPE Version: Latest
OS: Windows 10
Build: OS Version: 10.0.19045 N/A Build 19045

Example running Mimikatz (latest):

image

[…snippet…]

image

As you can see, the execution of the PE works, however the arguments passed are not passed on to the PE.

I am using our C2 to wrap this functionality and passing the arguments, however they do not get executed.

I have also tried the CheekyBlinders (https://github.com/br-sn/CheekyBlinder) PE file, which results in the same issue of arguments not being passed to the PE binary.

You can see executing directly from the file works in both cases

Mimikatz:

image

[…snippet…]

image

Notice the highlighted area, where Mimikatz is being passed the Argument 0 instead of just coffee and exit

CheekyBlinders:

image

[…snippet…]

image

Note CheekyBlinders doesn’t even execute correctly, however this may because again of the argv[0] being passed instead of argv[1]

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:25 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
aconite33commented, Jan 9, 2023

@m0rv4i I can confirm that the behavior is same in our C2 (Not publicly available) as it is in CLI form.

1reaction
aconite33commented, Jan 5, 2023

@benpturner can you provide a build exe that you are using? I just want to make sure it’s not a compiling issue on my side.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Get Past That Endless Argument
“Ask yourself how you want to phrase what you're going to say. This slows down the pace, helps you calm down, and makes...
Read more >
Is not passing all the arguments to a function bad?
Calling a function with too few arguments is extremely dangerous. Under most ABIs, the stack slots for arguments are not call-preserved, meaning ...
Read more >
5 Ways To Stop An Argument In Less Than A Minute
One way to stop arguments in a relationship is to take a break when things start to feel heated. This gives each person...
Read more >
Avoiding Bringing Up the Past in Arguments
Disagreements can be a healthy part of a relationship. No two people are alike and, therefore, we will not always see things the...
Read more >
Bringing Up The Past In Arguments: Dealing With It + How ...
Does your partner bring up the past in arguments? Do you? Find out why people do it, how to deal with it, and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found