I kinda struggle using SMB
I would like to configure some disposable SMB Share, you know a bit like when we start a python web server? We can start the python webserver and then once we are done, we can stop it.
So, I have my folder lets say ‘tmp’, and I want to create a SMB share on it, so I use:
python /usr/share/doc/python-impacket/examples/smbserver.py share-name tmp
right?
Now, how do I transfer nc.exe which is in my /tmp/, aka SMB share-name to a HTB box ?
I have a smb> prompt on my HTB box. I tried copy \my_IP\my_share\nc.exe but it says copy is unknown command.
And, lets say that I manage to transfer it, if you can help (really I forgot how I did the previous times), how do I stop my share on my machine?
In order to avoid being hacked
Thank you for your answers