[SOLVED] Cannot download file using SSH

renemartin38

New Member
Joined
Feb 24, 2021
Messages
3
Reaction score
0
Credits
29
Hi,
I am doing TryHackMe stuff and I have problem to download the file to PC that I am connected to via SSH.
I use my Kali Linux VM and I am connected to deployed TryHackMe machine via SSH.

I use TryHackMe openvpn network.

I've created a server with python -m http.server 80 (I've tried 8000, too) in folder /root/Documents/server/LinEnum/.

When I am in ssh session, I can ping my machine but I cannot download that file with wget 10.11.29.97:8000:8000/LinEnum.sh either with curl http://10.11.29.97:8000/LinEnum.sh --output LinEnum.sh. I've tried to download it via scp but that was not working.

SSH:
ssh.png


SERVER:
server.png

server_web.png

Any ideas please?
 


OP
R

renemartin38

New Member
Joined
Feb 24, 2021
Messages
3
Reaction score
0
Credits
29
PATH ON REMOTE MACHINE:
remote machine.png


SCP COMMAND ON LOCAL MACHINE:
scp.png

There should be some progress bar of sending the file, shouldn' be?

The file is not on the remote machine.

I've tried to send a .txt file but unsuccessfully.

I've also tried wget with 8888 and 8001 ports but not working (always unable to connect)
 
OP
R

renemartin38

New Member
Joined
Feb 24, 2021
Messages
3
Reaction score
0
Credits
29
OK, I got it with netcat.

DEPLOYED MACHINE:
nc -lp 5656 > LinEnum.sh

LOCAL MACHINE:
nc -w 3 10.10.33.100 5656 < LinEnum.sh
 

Members online


Latest posts

Top