Skip to content

Commit

Permalink
initial commit. xss, lfi, csrf, and 404 so far
Browse files Browse the repository at this point in the history
  • Loading branch information
Contra committed Jul 22, 2011
0 parents commit bcb770d
Show file tree
Hide file tree
Showing 30 changed files with 3,531 additions and 0 deletions.
20 changes: 20 additions & 0 deletions LICENSE
@@ -0,0 +1,20 @@
Copyright (c) 2011 Contra <contra@australia.edu>

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.
60 changes: 60 additions & 0 deletions README.md
@@ -0,0 +1,60 @@
**node-fusker is a library to prevent and manage a multitude of attacks in nodejs**

To install node-fusker, use [npm](http://github.com/isaacs/npm):

$ npm install fusker

## Example

Please see [test.js](http://github.com/Contra/fusker/blob/master/test.js) for a working example and documentation

## Levels of lulz (attacking the attackers)

None - Blacklists IP
Low - Blacklists IP, Redirects to Google
Fair - Blacklists IP, Redirects to Saxroll
High - Blacklists IP, Redirects to browser attack page (high chance of crashing the attacker)
Extreme - Blacklists IP, Opens infinite tabs of attack pages (will absolutely crash the attacker)

## List of included detection modules

404 - Detects 404 as a form of attack. Only use this if you have a single page application and want to punish people who like to snoop around
xss - Detects common XSS attacks in incoming http requests
sqli - Detects SQLi attempts in incoming http requests. Only an idiot would try to SQLi a node server (lol)
lfi - Detects common LFI attacks in incoming http requests

## Extending the library

Add a .js or .coffee file to the 'mods' directory of the module.

Example:
Adding msi.js to /mods/ will allow you to fusker.detect.push('msi');

## Contributors

- [tprime](https://github.com/tprime) - General

## LICENSE

(MIT License)

Copyright (c) 2011 Contra <contra@australia.edu>

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.

0 comments on commit bcb770d

Please sign in to comment.