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

What settings do I need for the Windows server environment #17

Closed
duongdt21 opened this issue Jul 2, 2021 · 12 comments
Closed

What settings do I need for the Windows server environment #17

duongdt21 opened this issue Jul 2, 2021 · 12 comments

Comments

@duongdt21
Copy link

I did it on virtualized environment using the Poc you provided. However it always ends with "Stage0:0". Am I missing any step? When using process monitor I see my dll has been included but nothing happens. Thank you very much.

@aaminin
Copy link

aaminin commented Jul 2, 2021

try use x64 payload

@duongdt21
Copy link
Author

yes i'm using windows server 2016 and x64 payload

@aaminin
Copy link

aaminin commented Jul 2, 2021

try disable defender

@duongdt21
Copy link
Author

I also turned it off. When I print exception, it shows error: RPRN SessionError: code: 0x3 - ERROR_PATH_NOT_FOUND - The system cannot find the path specified.

@aaminin
Copy link

aaminin commented Jul 2, 2021

What path print script in pDriverPath section? Does this path exist on system?

@duongdt21
Copy link
Author

pDriverPath found in my windows. While running poc my dll file was also written to System32/spool/drivers/x64/3.

@aaminin
Copy link

aaminin commented Jul 2, 2021

magic!
try use my dll-payload:

#include <windows.h>

int owned()
{
  WinExec("cmd.exe /c \"calc.exe\"",0);
   return 0;
}

BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason, LPVOID lpvReserved)
{
  owned();
  return 0;
}

Linux build:
x86_64-w64-mingw32-g++ -c -DBUILDING_EXAMPLE_DLL test.cpp
x86_64-w64-mingw32-g++ -shared -o test.dll test.o -Wl,--out-implib,test.a
find process:
calc.exe or win32calc.exe

@FuckAllWorld
Copy link

I also turned it off. When I print exception, it shows error: RPRN SessionError: code: 0x3 - ERROR_PATH_NOT_FOUND - The system cannot find the path specified.

RPRN SessionError: code: 0x3 - ERROR_PATH_NOT_FOUND,same problem,how to solve?

@duongdt21
Copy link
Author

I used your Poc dll. However it still gives error :( Can I ask for the version of Windows you use test ?

@aaminin
Copy link

aaminin commented Jul 2, 2021

windows server 2016 and windows server 2019

@duongdt21
Copy link
Author

Yes. I am also using windows 2019 10.0.17763.737 :((

@duongdt21 duongdt21 reopened this Jul 2, 2021
@citronneur
Copy link

See #25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants