GithubHelp home page GithubHelp logo

device-drivers's Introduction

Device-Drivers

  1. Assignment 1: Packet capture:

    cc -o sniff pac.c -lpcap

  2. Lab1: To run kernel module prog:

make sudo insmod Module1.ko dmesg sudo rmmod Module1.ko

  1. Lab2: To run keylogger program, type the following commands:

make sudo insmod keylogger.ko dmesg sudo rmmod keylogger.ko

  1. Lab3: To run shellscript :

    chmod+x calculator.sh ./calculator.sh

  2. Lab4: ioctl:

    gcc query_app.c make sudo insmod query_ioctl.ko sudo ./a.out -->Output is the status,dginity and other values sudo ./a.out -s -->can change those values by accessing the kernel sudo ./a.out -g -->Shows the new values for it. sudo ./a.out -c -->clears the values sudo ./a.out -g -->and prints the 0 for all. sudo rmmod query_ioctl.ko

  3. Lab5: All the commands and detailed explainantion for using "Two mouse pointers/cursors simultaneously" is given in the text file.

  4. Lab6: Mouse device driver: Keep the "graphics.h" file in the same folder where your target file is. cc mouse.c -lX11 ./a.out

  5. Lab7: Two systems with same IP address:

    Run the same file on both systems and enter same IP address. Then check if you can access the Internet. sudo cc ip.c sudo ./a.out P.S.: You won't be able to access the Internet.

device-drivers's People

Contributors

miapurva avatar

Watchers

James Cloos 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.