Build Your Own File-Transfer App Using Python Within 5 Minutes

Learn how to make a secure file-transfer application

c0d3x27
Geek Culture

--

Photo by JF Martin on Unsplash

One of the biggest problems I find with any commercial app is you never know who’s accessing your personal information. Anything shared among people on the internet will always be subject to attacks, like those of MITM.

Chat, photo, and file-transfer applications, only to name a few, are the most popular criminal targets. If you’re like me, meaning being skeptical when using free stuff, you’ll always try to find a better way around. Today, we’ll make our own simple file-transfer program using Python.

File Transfer

A file transfer is the copying or moving of a file from one computer to another over a network or internet connection.

We’ll go step by step through how to write both a client and server Python script that can handle just that. The idea is to create a server that listens on a particular port. The server will be responsible for receiving files. On the other hand, the client will try to connect to the server and send a file of any type. You can make the server sends files as well.

I’ll be using the Python socket module, which provides us with socket operations widely used on the internet as they’re behind any…

--

--

c0d3x27
Geek Culture

OSCP || CompTIA Cysa+, Sec+, A+, ITF+,CSAP | | Bug Hunter | | Security Consultant | | 0-day Researcher