Skip to content

TwelfthFace/TCPEncryptedServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TCPEncryptedServer

Intended to be a TCP SECURE communications server in order to interperate TCP traffic as commands to be ran on a Linux system. E.g. An app from a phone could be used to adjust volume, shutdown/sleep pc, turn off monitors, etc...

In essence, this is a bog standard TCP socket listener with middle layer encryption and decryption functionality, using openssl; a long winded way of not using CSR lol.

New private/public keys should be generated, if secure usage is intended, with openssl genrsa -out private.pem 2048 to generate private key and openssl rsa -in private.pem -pubout -out public.pem to devise the public key.

Dependencies

openssl-1.1.1

TODO

  • Create functionality to encrypt/decrypt input.
  • Create TCP Socket for communications.
  • Enforce RSA Encryption to prevent eavesdropping.
  • Allow for pointing to pem files.
  • Create client counter part.
  • Compile Instructions

    git clone "..."
    cd TCPEncryptedServer
    make release
    bin/Release/TCPEncryptedServer
    

    Bugs

  • When decrypting base64 sometimes random text will be dumped into the terminal. Possible unsafe read.
  • Netcat Test

    netcat 127.0.0.1 54000
    J4tmiTnsumVsIjjNLHQDRi/gsrAoJoa98WbT96TEB1kE6yqAvALlf4dwRnbJIRpkPbS5dU2mQMwei5bl0syCYIxIjXhw8UkMxIavKZT4/NPV7ETSBv0yPatMQyDrLVFX5sl8XmvKGM1LBmRdk+VsF89BDWpoQvIjfcQMhdMEVSxMtiVabS7HS7GZXdcRadPDMtq8/EAsGn7RQBRwGFOUJAJlc4P5cm9yO5kE0nu0cGprpVgwpnUylkwR2nrn2qv19dKKZZmnMcWYdK+KKjXGZ5DC00iVZbr+hl9DSl+d5yZAU4M6Cgam63yiG3pEDesFnn90MbU12nmkZCzOCzGU4w==
    

    About

    No description, website, or topics provided.

    Resources

    Stars

    0 stars

    Watchers

    1 watching

    Forks

    Releases

    No releases published

    Packages

     
     
     

    Contributors