Git Product home page Git Product logo

demoss's Introduction

DeMOSS

Description

DeMOSS is an anti-thesis to MOSS. It is a tool designed to evade MOSS, a plagiarism detection system used extensively by many universities to prevent students cheat in programming assignments.

Usage

Online version of the tool is available at http://sohamapps.rf.gd/demoss.

Alternatively, you can run the tool locally by opening the index.html file in your browser.

Inspiration

Subtle Art of De-MOSS-ing by Vivek Kaushal, who is co-incidentally an alumnus of my college.

Technical details

The tool is written in JavaScript and uses CodeMirror for syntax highlighting. Tree-sitter is used to parse the source code into an abstract syntax tree (AST). The AST is then traversed to make the necessary changes to the code.

How it works

The code relies on various 'tricks' to evade MOSS, such as:

  1. for -> while
    for (int i = 0; i < n; i++) {
    	// do something
    }
    is converted to
    int i = 0;
    while (i < n) {
    	// do something
    	i++;
    }
  2. a < b -> b > a
  3. i++ -> i+=1
  4. swapping if-else blocks
    if (a > b) {
    	// do something
    } else {
    	// do something else
    }
    is converted to
    if (a <= b) {
    	// do something else
    } else {
    	// do something
    }

Limitations

  • Presently, the tool is not fool-proof. It can be easily detected by a human.
  • The tool is not designed to work with all programming languages. It currently supports only C-like languages: C++, Java and JavaScript.

Future plans

  • more 'tricks' to evade MOSS
  • a feature to check MOSS similarity with the original code

Disclaimer

This tool is for educational purposes only.

License

MIT

Author

Soham Korade

demoss's People

Contributors

sohamkorade avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

ayushk-1801

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.