I'm doing some experiments on two VMs, one running Kali and the other running Ubuntu. I have a problem with the "upload" command of Meterpreter. In particular, I already open a reverse tcp session using the linux/x86/meterpreter_reverse_tcp payload, handling it using the exploit/multi/handler exploit.
When the session is on, I tried to upload a file.sh using the "upload" command:
meterpreter > upload kali/path/to/file.sh ubuntu/destination/path
what I receive on the Kali VM is:
[*] uploading : kali/path/to/file.sh -> ubuntu/destination/path [*] 10.0.2.15 - Meterpreter session 3 closed. Reason: Died
On the the ubuntu VM I receive a Segmentation Fault error. All the other meterpreter commands work (even the download one). Can anyone help me understanding the problem?