-
Notifications
You must be signed in to change notification settings - Fork 0
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
Unable to create diagcab file #1
Comments
You need to install |
Ok. Thank You. Forgive my ignorance. but can you tell me how to give "path" in command. For example, I am running command as shown below and I am getting an error saying "no such file or directory" python3 dogwalk.py IP address lport /directory python3 dogwalk.py 10.10.10.1 8080 /payload Also can you help me with the entire commands to create a diagcab file and hosting it. |
So, as per the original PoC, the exploit works by hosting a directory through a WebDAV server which the exploits connects to and copies to the startup folder. The path which you specify here should be the path which contains the files you want to copy. Say you have a reverse shell at
|
So you are saying this tool creates the diagcab file and hosts it on the directory of the webdav server we choose. If that is the case, it's supposed to create a file named good-news-everybody.diagcab file in directory I choose. But the file is not being created. Any idea where I am doing wrong? |
When you browse the WebDAV, you will see two directories, one is called config and the other is called package. The package directory will contain the files you want to copy (provided by the path argument). The config directory will contain the diagcab. The diagcab file is not written to disk, it's just kept in memory, so you can only see it by browsing the WebDAV. |
Thank you for your help till now. The diagcab file is working and I have downloaded it to the target system. But the problem is nothing happens when I click on it. I mean it is not being copied to the Startup directory. I have tried calc.exe, POC.txt files also. Only some times it gives a message |
The diagcab does not get copied, only files from the package folder get copied |
I meant that only. I placed a calc.exe in package directory but it is not being copied into Startup folder. Same with poc.txt. |
Check the startup folder by pressing Windows+R and type
The extract path is relative to a temp folder, which is why it requires the 4 ..\ before |
Not working. This is my input and output. python3 dogwalk.py 192.168.40.130 8080 /home/kali/Dogwalk/DogWalk-rce-poc/webdav/diagcab-webdav-poc/ -i "..\..\..\..\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\" Unhandled VERB - I still can't figure out this "unhandled verb" error. |
Just for clarity, I am assuming that I am getting this error after the payload is called (calc.exe). I have tested this on different Windows targets. I am still trying different things to make this work. If you have any suggestions, help me. |
So, first of all, from the parameters you're using, you don't seem to need the To be fair, this was meant as a proof of concept, so no extra debugs are available. You could add the following line after line 248 to see why you are getting unhandled verb print(data) Make sure to match the spacing (using spaces as it's required by python) Just out of curiosity, how are accessing the diagcab? If you look at Imre Rad's blog post, linked in the readme file, you should access it via the Windows Explorer and browsing to, in your case |
Hey, I am unable to create diagcab file. Can you help?
The text was updated successfully, but these errors were encountered: