Skip to main content

XFTPD Server: SFTP and FTP server Class that can be started and stopped programmatically.

Project description

XFTPD

As a network automation engineer, do you get frustrated at not having instant access to an SFTP/FTP server when you need it most?!

Well look no further!

Simple, Secure, and Randomized...

Right at your fingertips, and ready for API integrations, you have come to the right Python Module!

XFTPD Server

SFTP and FTP server Class that can be started and stopped programmatically

With randomized username, password, RSA keys

Ideal for on-demand SFTP and FTP and file transfers

SFTP Example

>>> from xftpd import sftp_server
>>> SFTP = sftp_server(Port=2222)
>>> SFTP.level = 'DEBUG'
>>> SFTP.start()
>>> print(SFTP.Addr)
10.8.2.5
>>> print(SFTP.User)
w7Kg0Fo4Xp6Xo9C
>>> print(SFTP.Pass)
k2Ea0Ko4Rz6Gz3Z
>>>
>>> SFTP.stop()
>>>

Example connecting to SFTP server

[root@CentOS]# sftp -P 2222 w7Kg0Fo4Xp6Xo9C@10.8.2.5
The authenticity of host '[10.8.2.5]:2222 ([10.8.2.5]:2222)' can't be established.
RSA key fingerprint is SHA256:khgoV/GQIShUf4KWr2ZqvpI68KMUFRsedwx4E0hWgi0.
RSA key fingerprint is MD5:d2:45:1b:d8:44:66:5f:66:b9:5e:8d:33:fb:01:0b:b1.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[10.8.2.5]:2222' (RSA) to the list of known hosts.
w7Kg0Fo4Xp6Xo9C@10.8.2.5's password:
Connected to 10.8.2.5.
sftp> dir
new.py                       test.py
sftp> bye
[root@CentOS]#

FTP Example

Python 3.7.4 (default, Sep  7 2019, 18:27:02)
[Clang 10.0.1 (clang-1001.0.46.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from xftpd import ftp_server
>>> FTP = ftp_server()
>>> FTP.start()
[I 2020-07-15 21:14:48] concurrency model: multi-thread
[I 2020-07-15 21:14:48] masquerade (NAT) address: None
[I 2020-07-15 21:14:48] passive ports: None
>>> print(SFTP.Addr)
10.8.2.5
>>> print(FTP.User)
h0Dy0Yq9Ks0Dm3T
>>> print(FTP.Pass)
m5Sg2Yk5Mk8Fa4K
>>>
>>> FTP.stop()
>>>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xftpd-0.1.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

xftpd-0.1.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file xftpd-0.1.0.tar.gz.

File metadata

  • Download URL: xftpd-0.1.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.4

File hashes

Hashes for xftpd-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b9d9417ca5def1a3656c7b0843d80b5a1d80a0cce9c28b65ddaf25a96d5735e0
MD5 68702c12d1a417b39b603672697f6864
BLAKE2b-256 e02078ac71eae5e3db1ad61195c86da5256d62b275e54421c83d063abf8176d1

See more details on using hashes here.

File details

Details for the file xftpd-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: xftpd-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.4

File hashes

Hashes for xftpd-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 de3a00fb6f1bda2c563507ea158cd4328080e59f227fed09eafdca53449e38f8
MD5 1b4ffd11e445918cee89fda0491ced16
BLAKE2b-256 f6515b8073ef83cca184d1d82ab4da2fac4ae5c53cd4e9f85b96de35b890d8c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page