Git Product home page Git Product logo

simple-sig's Introduction

Simple-Sig

Simple Signature to secure your website's traffic with backend validation api

Usage example

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/gh/xtekky/Simple-Sig/src/sig.js"></script>
    <title>sig demo</title>
  </head>
  <body>
    <button type="button" id="test">test</button>
    <script src="/assets/js/index.js"></script>
  </body>
</html>
$('#test').click(function() {
    data = 'username=grgrg&password=1234'

    fetch("/test", {
        headers: {
            ...x(data),
        },
        body   : data,
        method : "POST",
        mode   : "cors",
  });
});

Backend (verification api)

curl -X POST -H 'Accept: */*' -H 'Accept-Encoding: gzip, deflate' -H 'Connection: keep-alive' -H 'Content-Length: 156' -H 'Content-Type: application/json' -H 'User-Agent: python-requests/2.28.1' -d '{"x-kspx-00": "x-kspx-00 HEADER", "x-tx-00": "x-tx-00 HEADER", "data": "POST DATA"}' https://sig.xtekky.repl.co/verify

  • response :
{
  "is_valid": True/False,
  "tts": time elapsed since sig creation (you can then define a limit so sig cant be used again)
}

Heavy obfuscation - fast execution

image

simple-sig's People

Contributors

xtekky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

chriss-0x01

simple-sig's Issues

Flask debug mode sur ton replit

Je ne sais pas si tu t'intéresses encore un peu à ce repo mais tu as laissé le mode debug sur le backend donc on peut faire fuiter 95% du code de décryption en provoquant une erreur via les deux arguments utilisés pour la signature. C'était pas mal pour un débutant comme moi de faire un peu de reverse engineering de JS, ça ferait un bon CTF je pense !

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.