Pearsend
1.0.0
ピアツーピアファイルまたはメッセージ送信用のシンプルなCLIクライアント。 Pythonで書かれています。
CRC32チェックサムを使用した伝送エラーに対する保護。pipを使用してインストールします
$ pip3 install pearsendテキストを手伝ってください
sumit@HAL9000:~ $ pearsend -h
usage: pearsend [-h] [-i] [-f FILEPATH] [--host HOST] [-p PORT]
[-m MESSAGE]
{send,receive}
positional arguments:
{send,receive} Whether to send or receive
optional arguments:
-h, --help show this help message and exit
-i, --interactive If the program is to be run in interactive mode
-f FILEPATH, --filepath FILEPATH
Path of the file to be sent or to save incoming data
to
--host HOST Address of the source or target machine
-p PORT, --port PORT Port for listening on or sending to
-m MESSAGE, --message MESSAGE
Message to send受信機
sumit@HAL9000:~ $ pearsend receive -p 5000
[*] Listening for connections on: 10.194.52.135:5000
[*] Connection from : 10.194.52.135:47804
[*] The incoming data is >
b'Hello HAL!'送信者
sumit@HAL9000:~ $ pearsend send --host 10.194.52.135 -m " Hello HAL! "
[*] Sent message succesfully!受信機
sumit@HAL9000:~ $ pearsend receive -p 5000 -f recd.png
[*] Listening for connections on: 10.194.52.135:5000
[*] Connection from : 10.194.52.135:47808
[*] Incoming data saved to recd.png送信者
sumit@HAL9000:~ $ pearsend send --host 10.194.52.135 -f image.png
[*] Sent message succesfully! 受信機
sumit@HAL9000:~ $ pearsend receive -i
[?] Port to listen on:
[?] File to save the incoming data to. Leave blank to output to terminal:
[*] Listening for connections on: 10.194.52.135:5000
[*] Connection from : 10.194.52.135:36240
[*] The incoming data is >
b'Hello HAL!'送信者
sumit@HAL9000:~ $ pearsend send -i
[?] The address of the target machine: 10.194.52.135
[?] Enter the port to connect to:
[?] The file to send. Leave blank for text message:
[?] Enter the message: Hello HAL!
[*] Sent message succesfully!受信機
sumit@HAL9000:~ $ pearsend receive -i
[?] Port to listen on:
[?] File to save the incoming data to. Leave blank to output to terminal: recd.jpg
[*] Listening for connections on: 10.194.52.135:5000
[*] Connection from : 10.194.52.135:36242
[*] Incoming data saved to recd.jpg送信者
sumit@HAL9000:~ $ pearsend send -i
[?] The address of the target machine: 10.194.52.135
[?] Enter the port to connect to:
[?] The file to send. Leave blank for text message: image.jpg
[*] Sent message succesfully!