Pearsend
1.0.0
피어 투 피어 파일 또는 메시지 전송을위한 간단한 CLI 클라이언트. 파이썬으로 작성되었습니다.
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!