This repository has been archived by the owner on Nov 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 606
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Libinjection version 991433e7 (#524)
https://github.com/libinjection/libinjection commit 991433e7f0cd8db3ad24f1b0c429881d44251505
- Loading branch information
Showing
11 changed files
with
879 additions
and
485 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
Copyright (c) 2012-2016, Nick Galbreath | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are | ||
met: | ||
|
||
1. Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
|
||
2. Redistributions in binary form must reproduce the above copyright | ||
notice, this list of conditions and the following disclaimer in the | ||
documentation and/or other materials provided with the distribution. | ||
|
||
3. Neither the name of the copyright holder nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
https://github.com/client9/libinjection | ||
http://opensource.org/licenses/BSD-3-Clause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
/** | ||
* Copyright 2012, 2013 Nick Galbreath | ||
* Copyright 2012-2016 Nick Galbreath | ||
* [email protected] | ||
* BSD License -- see COPYING.txt for details | ||
* | ||
* https://libinjection.client9.com/ | ||
* | ||
*/ | ||
|
||
#ifndef _LIBINJECTION_H | ||
#define _LIBINJECTION_H | ||
#ifndef LIBINJECTION_H | ||
#define LIBINJECTION_H | ||
|
||
#ifdef __cplusplus | ||
# define LIBINJECTION_BEGIN_DECLS extern "C" { | ||
|
@@ -47,19 +47,19 @@ const char* libinjection_version(void); | |
* \param[out] fingerprint buffer of 8+ characters. c-string, | ||
* \return 1 if SQLi, 0 if benign. fingerprint will be set or set to empty string. | ||
*/ | ||
int libinjection_sqli(const char* s, size_t slen, char fingerprint[]); | ||
int libinjection_sqli(const char* input, size_t slen, char fingerprint[]); | ||
|
||
/** ALPHA version of xss detector. | ||
/** ALPHA version of xss detector. | ||
* | ||
* NOT DONE. | ||
* NOT DONE. | ||
* | ||
* \param[in] s input string, may contain nulls, does not need to be null-terminated | ||
* \param[in] slen input string length | ||
* \return 1 if XSS found, 0 if benign | ||
* | ||
*/ | ||
int libinjection_xss(const char* s, size_t slen); | ||
int libinjection_xss(const char* s, size_t len); | ||
|
||
LIBINJECTION_END_DECLS | ||
|
||
#endif /* _LIBINJECTION_H */ | ||
#endif /* LIBINJECTION_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.