23 ms·
Big List of Naughty Strings
- leni536 8y agoIt looks like that the master file is blns.txt while the other files are generated from this text file (correct me if I'm wrong). So the strings are separated by newline characters and there is no way to escape in the strings. So a nasty string that trips up blns.txt and the tools around it would be "\n". I think this is unfortunate since strings with newlines in them could certainly trip up some bash scripts. Filenames on Linux can contain newlines for example.
- shangxiao 8y agoI'm curious to know what it is about each of the strings that makes it naughty. A comment next to each one describing what it's supposed to be testing would be great.
- sbr464 8y agoit's in the code/comments
- reificator 8y agohttps://github.com/minimaxir/big-list-of-naughty-strings/blob/master/blns.txt https://github.com/minimaxir/big-list-of-naughty-strings/blo...
- Arnt 8y agohttps://github.com/minimaxir/big-list-of-naughty-strings/commit/85bc805f4f7375445839a7509a6d3df51a6ddb01 https://github.com/minimaxir/big-list-of-naughty-strings/com... is a fine commit message, don't you agree?
- thomasfedb 8y agoAnd this is the language we're meant to reinvent apps with. Oh my.
- beatgammit 8y agoThere's a reason we're moving toward webassembly. This isn't it, but there's a reason :)
- deleted 8y ago[deleted]
- robertkrossa 8y agoThis string made me chuckle https://github.com/minimaxir/big-list-of-naughty-strings/blob/4115c9deee71a7d732d4e50b814df33c4207789b/blns.txt#L672 https://github.com/minimaxir/big-list-of-naughty-strings/blo...
- remcob 8y agoIMHO, the 'reading' gives it away. How would the doctors know it would appear in written form? Could be part of the technique of course. Still, I would change it to the more generic 'receive'.
- probably_wrong 8y agoThis is how I would rationalize that point: Clearly, the doctors did not intend for that specific message to appear specifically on my screen. Rather, their treatment will make my brain "fight back" against the delusion, and reality will start to creep in unexpectedly. Maybe someone will stop me on the street and tell me "you need to wake up". Maybe I'll hear a new song titled "you are in a coma". Maybe I'll find a hospital gown on my wardrobe. Or maybe a random string will appear on some repository. Note: I also realize how much you can eff up someone's day by doing all of this. If you are one of those Youtube pranksters, don't do that.
- benj111 8y agoYes that's what gives it away ?! Going majorly off topic,I have an internal voice, I don't have an internal text. I assume this is normal, and not diagnostic of being in a coma.
- subroutine 8y agoWhat if the "new technique" is to identify neural nets in the visual cortex that encode the cover of your favorite book, and then altering that visual memory so as to replace the title with this message.
- carlmr 8y ago
- minimaxir 8y agoRepo maintainer here. ...can someone explain how the repo keeps resurfacing? I haven’t promoted it in a long time. (Looking at the repo traffic, it recently spiked on the 6th, but nothing since then.)
- ioulian 8y agoSomebody needed to find strings to test his/her app with, saw your repo, found it interesting and posted it here. About the repo: nice job, I've used it a lot when testing sites/apps I did, good job on providing different formats too so it's easy to automate testing!
- boyter 8y agoSince you are here. Thanks for making this. I recently used it to prove to a client that the api I delivered could take any content they cared to throw at it. They were especially impressed considering they were coming from a 35 year old system that only allowed ASCII. The BLNS allowed me to prove it and I hooked it into our integration and fuzz tests which managed to shake out a few bugs.
- minimaxir 8y agoYou're very welcome! :D
- croo 8y agoBecause you have created something great and novelty. I stumbled on it for the first time and already saved it for future testing. Thanks :)
- jacquesm 8y agoIt's a pretty useful list. I do wonder how many people actually end up having to rebuild their databases after running a test!
- awalton 8y agoIt was brought up during VMware's internal security conference called "MooseCon" earlier today during a talk on Unicode. No idea if it's just coincidental resonance though.
- hellohellojello 8y agoWhere’s the G String?
- anonu 8y agoFound this in the list: https://en.wikipedia.org/wiki/Scunthorpe_problem https://en.wikipedia.org/wiki/Scunthorpe_problem
- fredley 8y agoA clbuttic example.
- ThePadawan 8y agoI'll never look at basements the same.
- utrack 8y agoThere's also a great tool to scrub bad symbols from your data: https://www.polydesmida.info/cookbook/gremlins.html https://www.polydesmida.info/cookbook/gremlins.html
- dang 8y agoBig lists of previous comments: https://news.ycombinator.com/item?id=13406119 https://news.ycombinator.com/item?id=13406119 https://news.ycombinator.com/item?id=10035008 https://news.ycombinator.com/item?id=10035008
- jcelerier 8y ago> medieval erection of parapets lordy
- deleted 8y ago[deleted]
- toomanybeersies 8y agoI actually did use this for unit testing once at an old job. I can't for the life of me remember why, or even what I was testing. I honestly think it was more to amuse myself than for an actual practical reason.
- Theodores 8y agoImplementing a solution where bad strings are not allowed is always fun. Had to create a gig long list of warranty registration codes a while back where it wasn't just the swear words that were naughty. There were also a few product specific words as you can't have 'FAIL' or 'SNAP' as part of a warranty registration code. Other words that had to go included 'Jew'. Nothing 'naughty' about the word it just didn't look good in the codes so that had to be added to the big, long list of mostly 'naughty' words. We also used a reduced dictionary so that codes could be given out over the phone without people getting it wrong, so no '1, l, L' problem or '0, o, O' problem. I didn't find a handy library for our exact requirements and, as a consequence, I would advise people to roll their own code for such applications. The fun part was making my non-technical manager in charge of the big, long list of rude words. I think that his additions were the only contribution to 'code' that he ever made.
- deaps 8y agoThat's actually really interesting. Something you'd never think about unless you've actually worked on a similar application for a rather large system where a lot of long codes had to be generated.
- ufmace 8y agoI had a project like that once. I decided to use a chunk of a uuid in hopes of not getting inappropriate words in the codes. Of course, as soon as we start testing, we promptly get stuff with DEAD, FAD, etc in it.
- lmcarreiro 8y agoI liked this one: The quick brown fox jumps over the lazy dog 𝐓𝐡𝐞 𝐪𝐮𝐢𝐜𝐤 𝐛𝐫𝐨𝐰𝐧 𝐟𝐨𝐱 𝐣𝐮𝐦𝐩𝐬 𝐨𝐯𝐞𝐫 𝐭𝐡𝐞 𝐥𝐚𝐳𝐲 𝐝𝐨𝐠 𝕿𝖍𝖊 𝖖𝖚𝖎𝖈𝖐 𝖇𝖗𝖔𝖜𝖓 𝖋𝖔𝖝 𝖏𝖚𝖒𝖕𝖘 𝖔𝖛𝖊𝖗 𝖙𝖍𝖊 𝖑𝖆𝖟𝖞 𝖉𝖔𝖌 𝑻𝒉𝒆 𝒒𝒖𝒊𝒄𝒌 𝒃𝒓𝒐𝒘𝒏 𝒇𝒐𝒙 𝒋𝒖𝒎𝒑𝒔 𝒐𝒗𝒆𝒓 𝒕𝒉𝒆 𝒍𝒂𝒛𝒚 𝒅𝒐𝒈 𝓣𝓱𝓮 𝓺𝓾𝓲𝓬𝓴 𝓫𝓻𝓸𝔀𝓷 𝓯𝓸𝔁 𝓳𝓾𝓶𝓹𝓼 𝓸𝓿𝓮𝓻 𝓽𝓱𝓮 𝓵𝓪𝔃𝔂 𝓭𝓸𝓰 𝕋𝕙𝕖 𝕢𝕦𝕚𝕔𝕜 𝕓𝕣𝕠𝕨𝕟 𝕗𝕠𝕩 𝕛𝕦𝕞𝕡𝕤 𝕠𝕧𝕖𝕣 𝕥𝕙𝕖 𝕝𝕒𝕫𝕪 𝕕𝕠𝕘 𝚃𝚑𝚎 𝚚𝚞𝚒𝚌𝚔 𝚋𝚛𝚘𝚠𝚗 𝚏𝚘𝚡 𝚓𝚞𝚖𝚙𝚜 𝚘𝚟𝚎𝚛 𝚝𝚑𝚎 𝚕𝚊𝚣𝚢 𝚍𝚘𝚐 ⒯⒣⒠ ⒬⒰⒤⒞⒦ ⒝⒭⒪⒲⒩ ⒡⒪⒳ ⒥⒰⒨⒫⒮ ⒪⒱⒠⒭ ⒯⒣⒠ ⒧⒜⒵⒴ ⒟⒪⒢
- zubi 8y agoSo did I. But I'd appreciate if someone could explain how it works.
- Doxin 8y agoFor some reason unicode includes a few characters in a different "font".
- zubi 8y agoInteresting. This is the first thing I thought, but when I fed "lazy" into google, it happily accepted and displayed the results, so I thought there might be something else. But teh text editors that I tried indeed don't match the characters when I search them.
- woodrowbarlow 8y agogoogle is using unicode equivalence[1] to remap back to "standard" latin characters. this is important because, e.g., professional type-setting software may replace two adjacent "f" characters with a double-F ligature "ff" depending on kerning. without unicode equivalence, google would fail on a lot of copy-paste queries. [1] https://en.wikipedia.org/wiki/Unicode_equivalence https://en.wikipedia.org/wiki/Unicode_equivalence
- sedatk 8y ago
- Wiretrip 8y agoIn a similar vein, I always wondered how much trouble people born at midnight on 01/01/1970 have with websites and software in general.
- bagacrap 8y agoNever have I been asked for the time of day I was born (and I don't know the answer).
- scbrg 8y agoI always enter that date into systems that ask for my birth date (unless there's actually good reason for them to know it). I have never experienced any problems.
- paulcole 8y agoProbably as often as they’re asked for the time of day when they were born. So likely never.
- trash_panda 8y agoThis is really useful for security testing, where unexpected input could have security implications. There is a similar project, which I think is better organized and has more lists to play with: https://github.com/danielmiessler/SecLists https://github.com/danielmiessler/SecLists
- agentofoblivion 8y agoWhy do strings like “dW5kZWZpbmVk” cause problems?
- ken 8y agoThat's the base64 version of the file.
- tshannon 8y agoThat doesn't look like anything to me...
- guessmyname 8y ago$ echo -n 'dW5kZWZpbmVk' | base64 --decode undefined Many JavaScript-based applications break when the user-input is the string “undefined”. All of the entries in this repository are encoded using Based64, for obvious reasons. If the reasons are not obvious, read the header of the repository here: > Also, do not send a null character (U+0000) string, as it changes the file > format on GitHub to binary and renders it unreadable in pull requests. To prevent unintentional breaks of GitHub’s UI, the author decided to encode the strings.
- SimpJee 8y agoI just had an issue today with an internal program, the error was "unclosed parenthesis". A string with an Unclosed parenthesis would given you this error. In our case the string that had the issue should have been machine generated but ended up being assigned user input... Is that kind of string also helpful in a list like this?
- Uberphallus 8y ago+++ATH0 brings memories. In my early days of IRC, it used to wreck havoc to write that in crowded channels. It blows my mind that modems processed that string no matter the context.
- eythian 8y agoModems have no concept of context, and out of band signalling was optional. It was _supposed_ to be +++[wait 0.5s]AT... but that pause was patented by Hayes, so to avoid patent issues, many cloners didn't require it. At least, that's the story I heard.
- xenadu02 8y agoIt seems strange they didn't use DTR since RTS/CTS are usually used for hardware flow control. I can see the point of DSR, which tells the computer the modem exists... but there is no point in the modem looking for the computer. In theory the PC could have asserted DTR whenever it wanted to activate the control channel.
- rattray 8y agoWhat did it do?
- Uberphallus 8y agohttps://en.wikipedia.org/wiki/Hayes_command_set#Hayes'_solution https://en.wikipedia.org/wiki/Hayes_command_set#Hayes'_solut...
- jawns 8y ago> Strings which may cause human to reinterpret worldview I laugh every time I see this one. Which is just about every year on HN.
- nradov 8y agoThe Twitter @glitchr_ account is also a great source of bizarre Unicode strings for testing, especially with UIs. https://twitter.com/glitchr_ https://twitter.com/glitchr_
- k__ 8y agoOnce, I copied a back-space and I don't know how.
- uryga 8y agothere's an ASCII code that means "backspace" https://en.m.wikipedia.org/wiki/Backspace#Computers https://en.m.wikipedia.org/wiki/Backspace#Computers
- lifeformed 8y agoShouldn't the SQL injection test be something other than `DROP TABLES`? I mean, this is meant for testing for weakness, not exploiting it.
- stcredzero 8y agoThere's this recurring problem with certain strings which crash the Messages app in iOS, leaving a big hole in functionality and making iOS look pretty bad. I've pointed out that this is inexcusable for any language where you have exception handling. The standard reply to that on HN is to point out that you want the process to die once it's gone into undefined behavior, then downvote me. This puts me in mind of interviews, where I point out to the candidate that their update routine would go into an infinite loop if there was a 2 node cycle in their data. So then they give me an if statement that detects only the 2 node loop. I've even then asked what would happen if there was a 3 node loop, and gotten a 2nd if statement for that as well. Apps which might crash due to processing untrusted data should be reading that data from a queue. Then a 2nd process can monitor the 1st process, taking problematic data off the queue if necessary. This way the 1st process can die, but be restarted, and your smartphone OS doesn't have to look completely broken due to a primary function just dying, requiring the user to reboot. I hope someone tells me Apple has already done this. It's been something approaching a decade, at this point.
- deaps 8y agoI see where you're going - and I like the queue idea - but wouldn't it be better for that second function to just monitor the queue - and pull data off the queue that is problematic? Of course 'monitoring' is not exactly the same as 'processing' the actual data - so you'd have to know exactly what to pull off. Which would be just as easy to add that to the original process and just delete the unwanted data as you pull it out of the queue anyway. In either event, you seem fairly bright - I probably don't follow. The main thing is that I believe system processes do monitor those other processes and restart them if they crash - I think the problem comes in when data overflows or buffers spill out into other processes memory areas. ( I am not a programmer, although I do try to be for fun ).
- stcredzero 8y agobut wouldn't it be better for that second function to just monitor the queue - and pull data off the queue that is problematic? The most universal way to detect the problem is to catch the exception from the crash. However, the process that does that will be in the realm of undefined behavior, so it should be crashed. Of course 'monitoring' is not exactly the same as 'processing' the actual data - so you'd have to know exactly what to pull off. Your scheme is limited to all the known strings. My scheme can respond to anything in the future which might crash the 1st process.
- tlrobinson 8y agoAm I missing something or do none of these strings have newlines in them (because they're defined in a newline delimited file)? EDIT: Yup, there's an issue for that https://github.com/minimaxir/big-list-of-naughty-strings/issues/138 https://github.com/minimaxir/big-list-of-naughty-strings/iss... It's a little ironic BLNS can't handle certain strings :)
- inspector14 8y ago"If you're reading this, you've been in a coma for almost 20 years now. We're trying a new technique. We don't know where this message will end up in your dream, but we hope it works. Please wake up, we miss you."