DEV Community

S I D D A R T H
S I D D A R T H

Posted on • Originally published at Medium on

Bypassing Code-Tantra Restrictions.

Code Tantra is a online learning platform where online proctored tests are held. In that test you can’t copy and paste. A lot of restrictions are held to build a healthy environment, then made it hard to cheat in exams…but not impossible.

I found various methods and tricks to cheat in code tantra, I will generally call those as bypassing methods 😶‍🌫️.

How to copy questions from code tantra ?  — websites like these generally disable right click to reduce the features, however some baddies bypass that. Even after bypassing you can’t copy a thing — nature bro 🤣.

In that case, you can simply install sider ai from chrome web store and select the text you will simply see a small rectangular popup, instead of copying manually or by keyboard shortcuts. You can do this do bypass this restriction.

Actually there are many tricks like inspecting and copy the details and copying through dynamic editing but i fell this one is much easier.

How to paste answers in code tantra ?  — There are many ways to bypass this like Text-Blaze to paste something quickly. Something is very hard on my back ! 😶‍🌫️ Yeah even Text-Blaze doesn’t work on this website.

Finally, I tried auto hot key. It works but…..

🤣 Not a matter, the reason i got from officials is my typing speed that is abnormal while typing. Yep! when i was using auto hot key even my laptop got lagged due to it’s speed. So i asked my friend to modify that code according to human typing speed.

He nailed it, even he added something like backspacing the letters for a certain interval. I was really impressed :)

You can use this code to create a auto hot key.

  1. Install-autohotkey
  2. Create a file with the extension of .ahk and click edit through notepad and paste this code.

I will share the code with comments, so you can modify the script as you please.

^v::
clipboard := StrReplace(clipboard, "`r`n", "{Enter}") ; Replace new lines with Enter key

Loop, Parse, clipboard
{
    Send, %A_LoopField% ; Type each character
    Sleep, Random(100, 250) ; Random delay (100ms-250ms)

    if (Random(1, 20) = 1) ; 1 in 20 chance of a short pause (like thinking)
        Sleep, Random(300, 800)

    if (Random(1, 50) = 1) ; 1 in 50 chance of a "mistake" (backspace)
    {
        Send, {BS}
        Sleep, Random(100, 300)
        Send, %A_LoopField% ; Re-type the character
    }
}
return

Random(min, max) {
    return min + Floor((max - min + 1) * Rand())
}

Rand() {
    return DllCall("Kernel32.dll\GetTickCount") & 0xFFFF / 0xFFFF
}
Enter fullscreen mode Exit fullscreen mode

After creating this script, open the script and here you go. When ever you press Ctrl+V , the content will be typed automatically.

The End..

Top comments (0)