GithubHelp home page GithubHelp logo

naveensd101 / char-driver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ftp24/char-driver

0.0 0.0 0.0 982 KB

A simple character driver for linux kernel 5.11.0 which implements the Caesar Cipher

Python 2.40% C 93.38% Makefile 4.22%

char-driver's Introduction

TODO

  • pdf project report
  • source code
  • Readme

Contents of Report

  • Problem Statement
  • Methodology
  • Explanation
  • APIs involved/Flow charts if any
  • Screenshots

Simple Caesar Cipher Driver

To run our Driver use the following commands

  • make
    • To compile the driver code

make

  • insmod charenc.ko
    • To load the driver to the kernel

insmod

  • dmesg
    • print or control the kernel message buffer

dmesgpt1

  • mknod -m 777 /dev/charenc c <major-number> <minor-number>
    • This creates a device file with read write and execute permission

mkdnod

Existency check for driver and device

  • lsmod
    • Displays all the drivers loaded to the kernel

lsmod

  • cat /proc/devices
    • Displays all the connected devices

devices

User process

  • python userProg.py
    • Opens the device file and writes "abczf" into the device file
    • Prints the encrypted text
    • Closes the file
  • cat userProg.py
    • Displays the source code
  • cat /dev/charenc
    • Shows decrypted text (ie. after closing the file)

userProg

Cleanup

  • rmmod charenc
    • Unloads the driver
  • rm /dev/charenc
    • Removes the device

cleanup

char-driver's People

Contributors

naveensd101 avatar ftp24 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.