Giter VIP home page Giter VIP logo

fusker's Introduction

Fusker is an application firewall that prevents and manages a multitude of attacks in nodejs

How it works

Installation

To install fusker, use npm:

$ npm install fusker

Example

Please see the examples folder to get an idea of how to use Fusker properly

Test Site

You think you're one raw dog? fusker.nodester.com Come at me bro.

HTTP Configuration

List of included HTTP detection modules (detectives)

csrf - Detects cross-site request forgery in incoming http requests
xss - Detects common XSS attacks in incoming http requests
sqli - Detects SQLi attempts in incoming http requests
lfi - Detects common LFI attacks in incoming http requests
404 - Punishes people who like to snoop around. Only use with single page applications

List of included HTTP payload modules

blacklist - Blacklists IP from HTTP server for specified amount of time (banLength in config)
fake-report - Alerts attacker that they have been reported to ic3 and displays DOJ logo
saxroll - Redirects attacker to 1227.com
nimp - Redirects attacker to fusker.on.nimp.org (WARNING: Harmful to attacker)
nyan - Redirects attacker to nyan.cat
goatse - Redirects attacker to goatse.bz (WARNING: Harmful to eyes)
bush - Redirects attacker to full screen George W. Bush "you just fell for the trap"
lemonparty - Redirects attacker to lemonparty.org (WARNING: Harmful to eyes)
meatspin - Redirects attacker to meatspin.com (WARNING: Harmful to eyes)
explosive-impact - Redirects attacker to fullscreen video of ranting
raggedyann - Redirects attacker to extreme speaker rape. (WARNING: Harmful to speakers)
crews - Displays Terry Crews nipple dance rainbow b& page

Socket.io Configuration

List of included SocketIO detection modules (detectives)

xss - Detects common XSS attacks in incoming socket messages
sqli - Detects SQLi attempts in incoming socket messages
lfi - Detects common LFI attacks in incoming socket messages

List of included SocketIO payload modules

blacklist - Blacklists IP from SocketIO server for specified amount of time (banLength in config)

Other Configuration

Express Middleware

Please see this for a working express example. It's as easy as app.use(fusker.express.check); Detectives/payloads are the same as they would be for the fusker HTTP server. Make sure fusker is the first piece of middleware added.

PROTIP BRO

Setting config.silent to true will turn off all logging Setting config.verbose to true will turn on a ton of logging

LICENSE

(MIT License)

Copyright (c) 2011 Fractal [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

fusker's People

Contributors

fpletz avatar funkytek avatar phated avatar

Stargazers

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

Watchers

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

fusker's Issues

needs rick roll

You can redirect the attacker to a photo of GWB, but no rick roll option?

Outlandish. I am offended!

Express and fusker

So, I'm trying to make this work, but no matter what I do (after add fusker) throws me this error:

TypeError: Object function (source, overwrite, deep) {
      var name, x, _i, _j, _len, _len2, _ref, _ref2;
      if (overwrite == null) overwrite = false;
      if (deep == null) deep = false;
      if (deep) {
        _ref = Object.getOwnPropertyNames(source);
        for (_i = 0, _len = _ref.length; _i < _len; _i++) {
          name = _ref[_i];
          if (this.hasOwnProperty(name && !overwrite)) continue;
          Object.defineProperty(this, name, Object.getOwnPropertyDescriptor(source, name));
        }
      } else {
        _ref2 = source.keys();
        for (_j = 0, _len2 = _ref2.length; _j < _len2; _j++) {
          x = _ref2[_j];
          if (this.hasOwnProperty(x && !overwrite)) continue;
          this[x] = source[x];
        }
      }
      return this;
    } has no method 'push'
    at Router._route (/home/alejandromg/dev/Dropbox/ulearn/node_modules/express/lib/router/index.js:396:6)
    at HTTPServer.merge (/home/alejandromg/dev/Dropbox/ulearn/node_modules/express/lib/http.js:556:31)
    at HTTPServer.<anonymous> (/home/alejandromg/dev/Dropbox/ulearn/node_modules/express/lib/http.js:575:17)
    at Array.forEach (native)
    at HTTPServer.all (/home/alejandromg/dev/Dropbox/ulearn/node_modules/express/lib/http.js:573:11)
    at Object.<anonymous> (/home/alejandromg/dev/Dropbox/ulearn/app.js:468:5)
    at Module._compile (module.js:432:26)
    at Object..js (module.js:450:10)
    at Module.load (module.js:351:31)
    at Function._load (module.js:310:12)

I saw the example but it's not working for me

fusker messes with the global scope.

I'm filing this because I don't understand the benefits of adding the fusker object to the global scope.

Since it is widely considered as bad practice in the node.js community, I am curious about this.

issue loading

Seem to have an issue loading fusker as I get:


/Users/cj/Dropbox/sd/acd/octopus/node_modules/fusker/lib/fusker.coffee:1
equire 'protege'
       ^^^^^^^^^

node.js:134
        throw e; // process.nextTick error, or 'error' event on first tick
        ^
27 Sep 13:10:50 - [ERROR] SyntaxError
SyntaxError: Unexpected string
    at Module._compile (module.js:406:25)
    at Object..js (module.js:417:10)
    at Object..js (/usr/local/lib/node_modules/node-dev/wrapper.js:57:18)
    at Module.load (module.js:343:31)
    at Function._load (module.js:302:12)
    at require (module.js:355:19)
    at Object.<anonymous> (/Users/cj/Dropbox/sd/acd/octopus/app.js:7:12)
    at Object.<anonymous> (/Users/cj/Dropbox/sd/acd/octopus/app.js:50:4)
    at Module._compile (module.js:411:26)
    at Object..js (module.js:417:10)

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.