Hello!
I know there are some ports that allow file sharing (21 - FTP, 445 - SMB, 9000-9002 - Twonky etc.) - could you please tell me which ones aside from the ones I enumerated I'm missing? I mean ports that, when open, allow for browsing files in Windows (like FTPs, Samba etc.).
The default ports are as follows: - FTP Control: 21/TCP, Data: 20/TCP (active or passive)
- SFTP: 22/TCP
- SCP: 22/TCP
- HTTP: 80/TCP (mostly used for web-based file transfers)
- HTTPS: 443/TCP (secure version of HTTP, also mostly used for web-based transfers)
- TFTP: 69/UDP
- NFS: 2049/TCP and UDP
- SMB:445/TCP
- AFP: 548/TCP
- Rsync: 873/TCP
These are default ports, and they can often be configured to use different ports if needed. Additionally, some file transfer services may use a range of ports, especially in passive mode, where dynamic ports are used for data transfer.
(Nov 29, 2023 07:28 AM)BiNBo Wrote: The default ports are as follows:- FTP Control: 21/TCP, Data: 20/TCP (active or passive)
- SFTP: 22/TCP
- SCP: 22/TCP
- HTTP: 80/TCP (mostly used for web-based file transfers)
- HTTPS: 443/TCP (secure version of HTTP, also mostly used for web-based transfers)
- TFTP: 69/UDP
- NFS: 2049/TCP and UDP
- SMB:445/TCP
- AFP: 548/TCP
- Rsync: 873/TCP
These are default ports, and they can often be configured to use different ports if needed. Additionally, some file transfer services may use a range of ports, especially in passive mode, where dynamic ports are used for data transfer.
Thank you!
How can I easily connect to any of them to browse files like with FTP, SMB etc.? I'm especially interested in Rsync. Is there a way to browse files from those?
Nov 29, 2023 01:02 PM
(This post was last modified: Nov 29, 2023 01:03 PM by nibblenbyte.)
(Nov 29, 2023 08:25 AM)menorewiskor Wrote: Thank you!
How can I easily connect to any of them to browse files like with FTP, SMB etc.? I'm especially interested in Rsync. Is there a way to browse files from those?
Well it depends on whether these services are open or require a login. Assuming you have creds to login this would be the general syntax using bash to connect to/use said ports using bash: (Using list provided above)
- Rsync:
Code rsync rsync://username@hostname:873/module/source_directory destination_directory
- FTP Active:
Code ftp -n hostname_or_ip 21
- FTP Passive:
Code ftp -p -n hostname_or_ip 21
- SFTP:
Code sftp username@hostname_or_ip
- HTTP:
Code scp file.txt username@hostname_or_ip:/path/to/destination
- HTTPS:
Code curl http://hostname_or_ip
- TFTP:
Code curl https://hostname_or_ip
- NFS:
Code showmount -e hostname_or_ip
- SMB:
Code smbclient -L //hostname_or_ip
- AFP:
Code afp://username@hostname_or_ip
(Nov 29, 2023 01:02 PM)nibblenbyte Wrote: Well it depends on whether these services are open or require a login. Assuming you have creds to login this would be the general syntax using bash to connect to/use said ports using bash: (Using list provided above)
- Rsync:
Code rsync rsync://username@hostname:873/module/source_directory destination_directory
- FTP Active:
Code ftp -n hostname_or_ip 21
- FTP Passive:
Code ftp -p -n hostname_or_ip 21
- SFTP:
Code sftp username@hostname_or_ip
- HTTP:
Code scp file.txt username@hostname_or_ip:/path/to/destination
- HTTPS:
Code curl http://hostname_or_ip
- TFTP:
Code curl https://hostname_or_ip
- NFS:
Code showmount -e hostname_or_ip
- SMB:
Code smbclient -L //hostname_or_ip
- AFP:
Code afp://username@hostname_or_ip
Thanks but I meant how to browse them using Windows/Browser/Software interface?
Like, for example, with port 21 you open older browser and type ftp://[ip] and you connect and can browse files.
With port 445 you put \\"ip" in the address bar of your File Explorer and you connect and you can browse files.
Any of the other ones you mentioned can be browsed in a similar way? Not from the command line.
DO NOT DEAL WITH THIS MEMBER
(21 - FTP, 445 - SMB, 9000-9002 is pretty daily simple while ports STAY open. I have Samba injection.
Message me
Nov 29, 2023 08:05 PM
(This post was last modified: Nov 29, 2023 09:56 PM by BiNBo.)
(Nov 29, 2023 03:57 PM)menorewiskor Wrote: Thanks but I meant how to browse them using Windows/Browser/Software interface?
Like, for example, with port 21 you open older browser and type ftp://[ip] and you connect and can browse files.
With port 445 you put \\"ip" in the address bar of your File Explorer and you connect and you can browse files.
Any of the other ones you mentioned can be browsed in a similar way? Not from the command line.
If I’m on the same page, I think you’re referring to a GUI of some sort. Some the above protocols will be supported by interfaces such as web browsers or Windows file explorer, even dedicated applications such as FileZilla. However some of the above protocols you’re better off going through a console instead of adding all that extra setup and adding a learning curve of a new application. Though I’m sure there’s various tools out there that support each protocol in a visual and user friendly manner, but you might need to get creative and adapt something suited for another purpose but that is capable to your needs.
(Nov 29, 2023 03:57 PM)menorewiskor Wrote: Thanks but I meant how to browse them using Windows/Browser/Software interface?
Like, for example, with port 21 you open older browser and type ftp://[ip] and you connect and can browse files.
With port 445 you put \\"ip" in the address bar of your File Explorer and you connect and you can browse files.
Any of the other ones you mentioned can be browsed in a similar way? Not from the command line.
You know this is a hacking forum, right? Yes, there are GUI clients for FTP, SFTP, and maybe NFS. WebDAV can simply be accessed from a web browser.
|