Comments (6)
from monitor.
Could you try with OllyDBG or x64dbg? As you can see in the command-line string that's created it passes the process identifier along using the -p
switch - I'm not sure if that works for WinDBG?
We could add support for WinDBG if you prefer, but initially this switch was intended for Olly.
For WinDBG I propose we add a flag --dbg-windbg
that then uses the WinDBG command-line (which I'm sure you can find out for us) instead of the Olly one.
Thanks!
from monitor.
Or just something like --windbg C:\...
, of course.
from monitor.
The command line is fine and actually works.
However, what's not working is the monitor's injection to the WinDBG process, which I don't fully understand why we need it anyways.
When I replaced the "start_app" call with a simple CreateProcess everything worked seamlessly.
from monitor.
It executes the CreateProcess from its own process. I just used start_app
rather than CreateProcessW
because it's there anyway and includes some flags that we use normally anyway.
Can you show a diff of your solution that does work for you?
from monitor.
Sure.
diff --git a/bin/inject.c b/bin/inject.c
index 6d93799..f1eb91f 100644
--- a/bin/inject.c
+++ b/bin/inject.c
@@ -548,6 +548,14 @@ int main()
uint32_t pid = 0, tid = 0, from = 0, inj_mode = INJECT_NONE;
uint32_t show_window = SW_SHOWNORMAL, only_start = 0, resume_thread_ = 0;
+ STARTUPINFO si;
+ PROCESS_INFORMATION pi;
+
+ ZeroMemory( &si, sizeof(si) );
+ si.cb = sizeof(si);
+ ZeroMemory( &pi, sizeof(pi) );
+
+
for (int idx = 1; idx < argc; idx++) {
if(wcscmp(argv[idx], L"--crt") == 0) {
inj_mode = INJECT_CRT;
@@ -796,8 +804,9 @@ int main()
wchar_t buf[1024];
wsprintfW(buf, L"\"%s\" -p %d", dbg_path, pid);
- start_app(GetCurrentProcessId(), dbg_path, buf,
- NULL, NULL, SW_SHOWNORMAL);
+// start_app(GetCurrentProcessId(), dbg_path, buf,
+// NULL, NULL, SW_SHOWNORMAL);
+ CreateProcessW(NULL, buf, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi);
Sleep(5000);
}
from monitor.
Related Issues (20)
- Install monitor help HOT 4
- Internal Server Error for url: http:/192.168.56.101:800/mkdtemp HOT 5
- monitor crash. attachment unzip password:virus HOT 6
- Add hook for RtlQueryEnvironmentVariable_U
- Weird output when compiling
- Missing symbol SIG_vbscript_COleScript_Compile_0
- Cuckoo Monitor integration HOT 1
- COleScript::Compile hook not working HOT 4
- Error creating function stub for advapi32!RegOpenKeyExW.
- Inject issue to malware service process by CreateService API HOT 6
- insn hook bug
- IWbemServices_ExecMethod api can not be monitored in win7 HOT 4
- Hooking additional functions HOT 3
- Virtual* function hook bug
- Change behaviour by cuckoo monitor HOT 4
- Debugging cuckoo monitor HOT 1
- Monitor leaks memory?
- Export the Sandbox results
- Configuring procmon filter
- Why does the RtlDispatchException function return true?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from monitor.