Giter Club home page Giter Club logo

dataseclab3's Introduction

DataSecLab3

Code for Lab 3. Done using Netbeans

To run the server, you need to launch the rmiregistry first. To do so, you need to change the directory to the one that contains the .class files. To do so, you need to enter the "cd <YOUR_DIRECTORY>" in the cmd or terminal. Then, you need to run the "start rmiregistry" command.

Before starting the server, make sure you have the logins.txt file with filled credentials in it. The format of credentials is (Username,Hash_Password)

You should check that the files roles.txt, role_authorization.txt and user_authorization.txt are there too, as they are used for the Access Control Mechanisms. The format is

  • roles: role,user1;user2
  • role_authorization: role,function1;function2
  • user_authorization: user,function1;function2

To use the file from console, the credential file should be in the same directory as the .class files (as it is the case on the repository).

The password should be stored in the hashed representation.

All the user defined in http://www2.imm.dtu.dk/courses/02239/AccessControlLab.html (first category) have as username their first name without capital letter (Alice is "alice", Bob is "bob", etc). All users have the same password (with the same salt to simplify that lab): "pass". This approach is quite simple but the focus of this file was solely on Access Control.

Users can be added or deleted as explain in the Evaluation section of the report.

After all the prerequisites are satisfied, you can run the server. Once the server is running, you can also start the client. The client will ask you to log in using the username and a plaintext password. After that, the menu will be displayed. You can put a number of an option without a dot and press enter to access the server functionality.

You can also access the logs stored in the log.txt file. The same information will be displayed in the console of the server.

*Note: if you need to run the server a second time, you also need to restart the rmiregistry to avoid RMI binding exceptions.

dataseclab3's People

Contributors

jsspc 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.