1
0
mirror of https://github.com/minimaxir/big-list-of-naughty-strings.git synced 2025-09-25 05:12:14 +02:00

Merge remote-tracking branch 'origin/master'

Conflicts:
	blns.txt
This commit is contained in:
Max Woolf
2015-08-11 19:22:34 -07:00
4 changed files with 5 additions and 2 deletions

View File

@@ -17,6 +17,8 @@ Although this is not a malicious error, and typical users aren't Tweeting weird
Feel free to send a pull request to add more strings, or additional sections. However, please do not send pull requests with very-long strings (255+ characters), as that makes the list much more difficult to view. Feel free to send a pull request to add more strings, or additional sections. However, please do not send pull requests with very-long strings (255+ characters), as that makes the list much more difficult to view.
Likewise, please do not send pull requests which compromise *manual usability of the file*. This includes the [EICAR test string](https://en.wikipedia.org/wiki/EICAR_test_file), which can cause the file to be flagged by antivirus scanners, and files which alter the encoding of `blns.txt`.
## Disclaimer ## Disclaimer
The Big List of Naughty Strings is intended to be used *for software you own and manage*. Some of the Naughty Strings can indicate security vulnerabilies, and as a result using such strings with third-party software may be a crime. The maintainer is not responsible for any negative actions that result from the use of the list. The Big List of Naughty Strings is intended to be used *for software you own and manage*. Some of the Naughty Strings can indicate security vulnerabilies, and as a result using such strings with third-party software may be a crime. The maintainer is not responsible for any negative actions that result from the use of the list.

View File

@@ -1,6 +1,7 @@
[ [
"", "",
"undefined", "undefined",
"undef",
"null", "null",
"NULL", "NULL",
"nil", "nil",

BIN
blns.txt

Binary file not shown.

View File

@@ -6,7 +6,7 @@ import json
with open('../blns.txt', 'r') as f: with open('../blns.txt', 'r') as f:
# put all lines in the file into a Python list # put all lines in the file into a Python list
content = f.readlines() content = f.readlines()
# above line leaves trailing newline characters; strip them out # above line leaves trailing newline characters; strip them out
@@ -22,4 +22,4 @@ with open('../blns.json', 'wb') as f:
# write JSON to file; note the ensure_ascii parameter # write JSON to file; note the ensure_ascii parameter
json.dump(content, f, indent=2, ensure_ascii=False) json.dump(content, f, indent=2, ensure_ascii=False)