Giter VIP home page Giter VIP logo

sectrans's Introduction

SecTrans

Description

SecTrans is an application made for a cybersecurity course. It is supposed to allow secure transfer of files.

The main constraint was using the provided libserver.so and libclient.so. These two dynamic libraries are simple wrapper around sockets, with some limitations. See the preliminery report for more details.

A post-coding report is also available.

Do not use this code in production. It is not secure at all. It is only a proof of concept, and I did not have the time to implement all the security features I wanted.

Running

The user is expected to use Nix in order to get the dependencies. The Determinate Systems installer is recommanded:

curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install

Once Nix is installed, running nix develop --impure will put you in a working environment.

You can then build the project:

cmake --preset linux-gcc
cmake --build build

Finally, run the server:

./build/src/server/cybersec_project_server

The client (on the same machine) will then connect automatically. Available commands are:

  • -up <file>: upload a file
  • -down <file>: download a file and write it locally, overwriting existing content
  • -list: list available files

The client binary is available at build/src/client/cybersec_project_client.

The user is hardcoded and is user1. The password is password1.

Ports 12345 and 12346 are expected to be available.

sectrans's People

Contributors

guekka avatar

Watchers

Tom Niget avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.