GithubHelp home page GithubHelp logo

cobaltstrike-bof's Issues

Build Error

I am compiling on Kali Linux:

x86_64-w64-mingw32-gcc -c wmi-lateral-movement-Win32ProcessCreate.cpp -o wmi-lateral-movement-Win32ProcessCreate.o
In file included from /usr/share/mingw-w64/include/minwindef.h:163,
from /usr/share/mingw-w64/include/windef.h:9,
from /usr/share/mingw-w64/include/windows.h:69,
from wmi-lateral-movement-Win32ProcessCreate.cpp:7:
wmi-lateral-movement-Win32ProcessCreate.cpp:28:19: error: expected unqualified-id before string constant
28 | DECLSPEC_IMPORT WINOLEAUTAPI OLEAUT32$VariantInit(VARIANTARG pvarg);
| ^~~~~~~~~~~~
wmi-lateral-movement-Win32ProcessCreate.cpp:29:18: error: expected unqualified-id before string constant
29 | DECLSPEC_IMPORT WINOLEAUTAPI OLEAUT32$VariantClear(VARIANTARG pvarg);
| ^~~~~~~~~~~~
wmi-lateral-movement-Win32ProcessCreate.cpp:30:19: error: expected unqualified-id before string constant
30 | DECLSPEC_IMPORT WINOLEAUTAPI OleAut32$SysAllocString(const OLECHAR );
| ^~~~~~~~~~~~
wmi-lateral-movement-Win32ProcessCreate.cpp: In function ‘void go(char
, int)’:
wmi-lateral-movement-Win32ProcessCreate.cpp:52:21: warning: ISO C++ forbids converting a string constant to ‘wchar_t
’ [-Wwrite-strings]
52 | wchar_t
Iwbmstr = L"{dc12a687-737f-11cf-884d-00aa004b2e24}";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
wmi-lateral-movement-Win32ProcessCreate.cpp:53:21: warning: ISO C++ forbids converting a string constant to ‘wchar_t*’ [-Wwrite-strings]
53 | wchar_t* Cwbmstr = L"{4590f811-1d3a-11d0-891f-00aa004b2e24}";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
wmi-lateral-movement-Win32ProcessCreate.cpp:76:13: warning: ISO C++ forbids converting a string constant to ‘BSTR’ {aka ‘wchar_t*’} [-Wwrite-strings]
76 | BSTR srv = L"\\10.1.1.1\ROOT\CIMV2";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
wmi-lateral-movement-Win32ProcessCreate.cpp:77:13: warning: ISO C++ forbids converting a string constant to ‘BSTR’ {aka ‘wchar_t*’} [-Wwrite-strings]
77 | BSTR usr = L"?USER";
| ^~~~~~~~
wmi-lateral-movement-Win32ProcessCreate.cpp:78:14: warning: ISO C++ forbids converting a string constant to ‘BSTR’ {aka ‘wchar_t*’} [-Wwrite-strings]
78 | BSTR pass = L"?PASSWORD";
| ^~~~~~~~~~~~
wmi-lateral-movement-Win32ProcessCreate.cpp:124:21: warning: ISO C++ forbids converting a string constant to ‘BSTR’ {aka ‘wchar_t*’} [-Wwrite-strings]
124 | BSTR wcClassName = L"Win32_Process"; //Class name
| ^~~~~~~~~~~~~~~~
wmi-lateral-movement-Win32ProcessCreate.cpp:125:22: warning: ISO C++ forbids converting a string constant to ‘BSTR’ {aka ‘wchar_t*’} [-Wwrite-strings]
125 | BSTR wcMethodName = L"Create"; //Class name
| ^~~~~~~~~
wmi-lateral-movement-Win32ProcessCreate.cpp:126:19: warning: ISO C++ forbids converting a string constant to ‘BSTR’ {aka ‘wchar_t*’} [-Wwrite-strings]
126 | BSTR wcStartup = L"Win32_ProcessStartup"; //Class name
| ^~~~~~~~~~~~~~~~~~~~~~~
wmi-lateral-movement-Win32ProcessCreate.cpp:170:31: warning: ISO C++ forbids converting a string constant to ‘BSTR’ {aka ‘wchar_t*’} [-Wwrite-strings]
170 | BSTR wcProcessStartupInfo = L"ProcessStartupInformation";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
wmi-lateral-movement-Win32ProcessCreate.cpp:172:24: warning: ISO C++ forbids converting a string constant to ‘BSTR’ {aka ‘wchar_t*’} [-Wwrite-strings]
172 | BSTR wcShowWindow = L"ShowWindow"; //This is the name of the propoerty, we can't change it!
| ^~~~~~~~~~~~~
wmi-lateral-movement-Win32ProcessCreate.cpp:175:4: error: ‘OLEAUT32$VariantInit’ was not declared in this scope
175 | OLEAUT32$VariantInit(&varParams);
| ^~~~~~~~~~~~~~~~~~~~
wmi-lateral-movement-Win32ProcessCreate.cpp:181:4: error: ‘OLEAUT32$VariantClear’ was not declared in this scope
181 | OLEAUT32$VariantClear(&varParams);
| ^~~~~~~~~~~~~~~~~~~~~
wmi-lateral-movement-Win32ProcessCreate.cpp:184:3: error: ‘OLEAUT32$VariantInit’ was not declared in this scope
184 | OLEAUT32$VariantInit(&vtDispatch);
| ^~~~~~~~~~~~~~~~~~~~
wmi-lateral-movement-Win32ProcessCreate.cpp:205:24: warning: ISO C++ forbids converting a string constant to ‘BSTR’ {aka ‘wchar_t*’} [-Wwrite-strings]
205 | BSTR wcCommandLine = L"CommandLine"; //This is the name of the propoerty, we can't change it!
| ^~~~~~~~~~~~~~
wmi-lateral-movement-Win32ProcessCreate.cpp:206:27: warning: ISO C++ forbids converting a string constant to ‘BSTR’ {aka ‘wchar_t*’} [-Wwrite-strings]
206 | BSTR wcCommandExecute = L"notepad.exe";
| ^~~~~~~~~~~~~~
wmi-lateral-movement-Win32ProcessCreate.cpp:208:3: error: ‘OLEAUT32$VariantInit’ was not declared in this scope
208 | OLEAUT32$VariantInit(&varCommand);
| ^~~~~~~~~~~~~~~~~~~~
wmi-lateral-movement-Win32ProcessCreate.cpp:216:3: error: ‘OLEAUT32$VariantClear’ was not declared in this scope
216 | OLEAUT32$VariantClear(&varCommand);
| ^~~~~~~~~~~~~~~~~~~~~
wmi-lateral-movement-Win32ProcessCreate.cpp:221:29: warning: ISO C++ forbids converting a string constant to ‘BSTR’ {aka ‘wchar_t*’} [-Wwrite-strings]
221 | BSTR wcCurrentDirectory = L"CurrentDirectory"; //This is the name of the propoerty, we can't change it!
| ^~~~~~~~~~~~~~~~~~~
wmi-lateral-movement-Win32ProcessCreate.cpp:223:3: error: ‘OLEAUT32$VariantInit’ was not declared in this scope
223 | OLEAUT32$VariantInit(&varCurrentDir);
| ^~~~~~~~~~~~~~~~~~~~
wmi-lateral-movement-Win32ProcessCreate.cpp:229:3: error: ‘OLEAUT32$VariantClear’ was not declared in this scope
229 | OLEAUT32$VariantClear(&varCurrentDir);
| ^~~~~~~~~~~~~~~~~~~~~

DCOM Lateral Movement

there is no check for beacon arch in the aggressor.cna for BOF-IShellWindows-DCOM.c.

is there anyway to fix this in the cna?? thx for advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.