Files transfers
Key takeaways
Knowing multiple files transfers method is essential to perform our penetration tester activities, since in real world environments multiple protection mechanism are in place. Some files transfers techniques might not work due to firewalls, EDS, AV, IDR, etc.
Windows
To be performed on Windows system
Check also Powershell section for other technique to transfer file over Windows.
Linux
to be performed on Linux system to download a file
Using nc
Using curl
Using scp
When we have SSH connection
SMB Share
Can be used to transfer file from Linux to Windows or vice versa
On Windows we can use this command to download a file
Possible error when accessing the share:
You can't access this shared folder because your organization's security policies block unauthenticated guest access. These policies help prote ct your PC from unsafe or malicious devices on the network.
Solution: Create a share with authentication on your Linux attack machine, then mount this share on Windows using /user to authenticate. Then, we could freely copy and paste files between Linux and Windows.
Evil-WinRM
Upload a file from attacker ->victim host
Last updated