GithubHelp home page GithubHelp logo

safe-servedoc's Introduction

Safe-ServeDoc

Uses Node.JS code to serve a document safely and log data securely.

Usage

  1. Place file.txt in __dirname.
  2. Create logs folder in __dirname.
  3. Run npm init in __dirname with default settings.
  4. Install any requisites needed you don't have installed already. You can check the requires in index.js for them at the top.
  5. Optionally use nodemon if you are updating a lot.
  6. Optionally change file.txt to a file nodemon will automatically restart for if you plan to update it often.
  7. Run npm start.

Features

  • Allows you to service a document only when user matches credentials list.
  • Has decent logging w/ IP/GeoLocation.
  • IP ties to account if enabled. See let IPRequired = false; in file.
  • Denies other requests but still logs them.

Bugs

  • Will reference credentials.name before it can grab the auth data. (It may show up in console).
  • Log sometimes is empty but will be written when someone attempts to log. (May be side effect of above bug).

Log Entry Example

4:19:05 PM:
Username: browserling
Username SHA256: 8b98cf0f130d42d222d49b47138461d0393c44a21e958c9f3e5ce99854407888
Password SHA256: 9f735e0df9a1ddc702bf0a1a7b83033f9f7153a00c29de82cedadc9957289b05
IP: 167.114.101.64
Denied: true
Location: {"range":[2809292032,2809292287],"country":"CA","region":"QC","eu":"0","timezone":"America/Toronto","city":"Montreal","ll":[45.5063,-73.5794],"metro":0,"area":1000}```

safe-servedoc's People

Contributors

boii1 avatar

Watchers

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