
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Python module to handle FTP protocol (client side only). It is modified original ftplib to handle broken FTP servers in embedded world.
It should work with both python2 and python3 with simple pip commands:
pip install microftp
Few microftpcmd examples:
microftpcmd --host 192.168.4.1 ls
microftpcmd --host 192.168.4.1 -d -v ls
microftpcmd --host 192.168.4.1 put local.txt remote.txt
microftpcmd --host 192.168.4.1 put local.txt remote.txt
microftpcmd --host 192.168.4.1 get remote-file.txt local-file.txt
microftpcmd --host 192.168.4.1 rm file-to-delete.txt
Note that you can also specify basic parameters using environment variables:
export MICROFTP_HOST=127.0.0.1
export MICROFTP_USER=user
export MICROFTP_PASSWORD=password
export MICROFTP_DIR=/something
and then you can just specify command:
microftpcmd ls
All options are listed using --help:
microftpcmd --help
It should work with both python2 and python3 with simple pip commands:
sudo apt-get update
sudo apt-get install -y python3 python3-pip
sudo pip3 install microftp
Simple example to get devices and its current status:
import microftp
ftp = microftp.microFTP("127.0.0.1")
ftp.set_pasv(True)
ftp.login()
ftp.set_debuglevel(9999)
ftp.cwd(args.dir)
print(ftp.raw_retrlines('LIST'))
ftp.quit()
usage: microftpcmd [-h] [--host HOST] [--port PORT] [--delay DELAY]
[--block BLOCK] [--verbose] [--debug] [--user USER]
[--password PASSWORD] [--site SITE] [--siteafter SITEAFTER]
[--dir DIR]
CMD [CMD ...]
microftp - connect to broken or embedded FTP servers
positional arguments:
CMD commands for ftp
optional arguments:
-h, --help show this help message and exit
--host HOST, -i HOST
--port PORT, -P PORT
--delay DELAY
--block BLOCK
--verbose, -v
--debug, -d
--user USER, -u USER
--password PASSWORD, -p PASSWORD
--site SITE, -S SITE
--siteafter SITEAFTER, -A SITEAFTER
--dir DIR, -D DIR
microftpcmd --host 192.168.4.1 ls
microftpcmd --host 192.168.4.1 get remote-file.txt local-file.txt
microftpcmd --host 192.168.4.1 put local-file.txt remote-file.txt
microftpcmd --host 192.168.4.1 -S mount -D sd -A umount ls
microftpcmd --host 192.168.4.1 -S mount -D sd -A site /sd/blink.bit -A umount put blink.bit blink.bit
Some specific ulx3s examples:
microftpcmd --host 192.168.5.7 --delay 0.3 --block 32 -v -d --user root put ~/wget /root/wget
microftpcmd --host 192.168.4.1 -S mount -D sd -A umount ls
microftpcmd --host 192.168.4.1 -S mount -D sd -A site /sd/blink.bit -A umount put blink.bit blink.bit
FAQs
Small FTP library client to handle broken servers
We found that microftp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.