Skip to content
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

Added lolbas iediagcmd.exe as discovered by Adam @hexacorn #199

Merged
merged 8 commits into from
Oct 4, 2023

Conversation

manasmbellani
Copy link
Contributor

No description provided.

@bohops
Copy link
Contributor

bohops commented Dec 30, 2022

Apologies for a delayed reply. We are working through some backlog.

Undoubtedly, this has likely worked before but I am unable to duplicate on Windows 10 22H2. Can you see if you have similar results?

@bohops bohops added the question Further information is requested label Dec 30, 2022
@wietze
Copy link
Member

wietze commented Mar 9, 2023

@manasmbellani Reminder, please check the above message.

@wietze wietze requested a review from bohops August 5, 2023 17:59
@xenoscr
Copy link
Contributor

xenoscr commented Oct 4, 2023

@bohops & @wietze, I got this to work on Windows 10 21H2. Watched process details and saw the execution take place, replaced it with something that spawned another process and got it working. I will try to upgrade this VM if I can.

@xenoscr
Copy link
Contributor

xenoscr commented Oct 4, 2023

Also, worth noting that this is a command prompt and requires "&" or "&&" between commands, not ";". This will need to be fixed in the example.

@xenoscr
Copy link
Contributor

xenoscr commented Oct 4, 2023

@bohops & @wietze I got this working on 22H2. I'm going to fix a few things and merge this if there are no other conflicts. This pull request is old and has gone without response for some time.

Made corrections
Removing trailing spaces
removing empty fields
@xenoscr xenoscr requested a review from wietze October 4, 2023 03:33
@xenoscr
Copy link
Contributor

xenoscr commented Oct 4, 2023

@wietze if you could review this, I think we can merge and close this out.

Copy link
Member

@wietze wietze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could not replicate on Windows 10 2004, nor on Windows 11. Not sure if I'm doing something wrong or whether this is very version specific?
Screenshot_2023-10-04_11-09-39

@xenoscr
Copy link
Contributor

xenoscr commented Oct 4, 2023

@wietze, it fires several times but the processes do not persist. You would have to use an app that spawns a new process to visually see this work or, watch the task manager very carefully for netsh.exe to appear briefly. I used a simple C EXE that launches calc via shellcode (metasploit) and wind up poping calc without issue on Windows 10 22H1 and 22H2:

image

@xenoscr
Copy link
Contributor

xenoscr commented Oct 4, 2023

AH-HA! problem is the space before the first "&".

xenoscr and others added 2 commits October 4, 2023 07:29
Removing space before first "&". When setting the Environment variable, it's picking up the space so the path seemed to be "c:\test \", which is why tests are failing.
Copy link
Member

@wietze wietze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah good thinking, that must have been it! Can confirm it also works on Windows 11.
image

Good stuff!

@xenoscr xenoscr merged commit d6e4fb0 into LOLBAS-Project:master Oct 4, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants