6
u/Human-Question6210 27d ago
sometimes I feel like absolutely everyone knows coding except me
3
u/FotinoBird 27d ago
this is how I feel. everyone be talking in such technical talk I feel left out
0
3
u/sbcsfrtom2 26d ago
A CSV (comma separated value) file is like a text-based spreadsheet. Instead of data rows being visually separated by lines making up boxes (like you see in Microsoft Excel), they are separated by commas and newlines (newlines being the invisible character that tells your computer to go to the next line on the screen). Here is a rough example of a CSV:
Number,Name,Abbreviation
1,Sunday,Sun
2,Monday,Mon
3,Tuesday,Tue
4,Wednesday,Wed
5,Thursday,Thu
6,Friday,Fri
7,Saturday,Sat
If you copypaste that chunk into a word processor and save it as 'filename.csv' you can actually import it into Excel as a functional spreadsheet.
2
u/gefex 24d ago
Except this whole thread is bull, because optionally when creating a CSV you can choose to quote every field.
"Number","Name","Abbreviation"
"1","Sunday","Sun"
Which means you can happily put a comma in them.
1
u/sbcsfrtom2 24d ago
Indeed! You could also use TSV (tab separated values). I think that's what they do in Europe where they use commas for decimal numbers.
1
u/RainOfDelight 25d ago
yeah, they might know coding not cyber, and they write about cyber thats the probelm :)
1
1.1k
u/Kriss3d
29d ago
•
Always use your password as :
X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
If it ends up in a database, the antivirus will delete it as they use this string to test for the EICAR file to look for to remove.
403
u/g3shh 29d ago
You wont only break the CSV file, but your sanity as well.
163
u/Kriss3d 29d ago •
![]()
Ive debunked flat earthers, sovereign citizens and religious peoples claims for many years now.
We are WELL beyond my sanity being broken.
96
29
u/Key-Regular674 28d ago
0
28d ago
[deleted]
10
u/Key-Regular674 28d ago
You did not, as I am none of those. Jesus was a goldfish. The earth is triangle shaped. I am an Amish Mormon.
2
0
28d ago
[deleted]
8
u/Key-Regular674 28d ago
I would answer this but my Amish Mormonism does not allow it. Praise goldfish.
- Sent from Iphone6
u/MatiasPalacios 27d ago
The most Redditors of the Redditors.
4
2
2
u/Kriss3d 26d ago
u/mootnuq88 I saw your question.
How am I going to debunk density ? I dont need to debunk it. Density most certainly do exist. Its a thing. But what it ISNT is telling us anything about motion or direction.
Ok we have a brick in mid air. It starts by having no motion.
I agree that its more dense than the air around it.
Now what ?
How does that tell us that it should move and in which direction ?Im all ears.
1
u/Junior-Yellow5221 26d ago
The direction is dictated by gravity , the thing affected by density is the speed it falls doen towards earth. Since the brick is denser than air , it falls down faster than lets say a feather. Thats why a brick and a feather fall down at the same speed in a vacuum. The same amount of gravity is applied , but there is no drag from air particles affecting the objects and their different density (drag coefficient)
3
u/Spirited-Fan8558 29d ago
what is sovereign citizen?
8
u/Accomplished-Bit-973 29d ago
Someone who truly believes that they stand above laws of any country.
4
1
→ More replies (6)1
u/Careful_Source6129 22d ago
If you spent time debunking flat earthers, I fear your sanity was already compromised
74
82
26
u/spisplatta 29d ago
When I played around with that string a long time ago I found that antivirus would only complain about it if the file contained that string and nothing else. So if it's a part of a csv they would allow it.
14
u/Independent_Image_59 29d ago
Real hackers use random unicode characters in password
Opsec level: unicode
5
4
u/frisch85 29d ago
Does this still hold up after properly escaping the string for SQL tho? that backslash turns into a double backslash.
4
2
2
u/fvancesco 25d ago
I'm gonna use this password now for Reddit
1
3
u/Angelworks42 28d ago
It's kinda funny but if you're running Oracle I can see that happening - something like crowd strike tripping up on a db write.
For years we had to have special password rules for anyone who had some related Oracle role because apparently all of their apps blow at sanitizing inputs.
2
u/theo69lel 28d ago
I had a password like that for 2 days and my bitwarden warned me <48h in that my password is at risk because it might be compromised in a recent data leak. We need quantum passwords where we're logged in while also trying to reset our password to the same password at the same time. My password progression starting from 2008 was something like: something11
Something11
Something11!
SomethingPurple11!
$0m€th!ngPUrpI€53!
It doesn't fucking matter bro and password managers can be hacked too. MFA was a scam because if one factor authentication fails why would Introducing more fix anything?
6
u/Vladamir_PoonTang 28d ago
MFA is a scam
Redundancy means nothing
You have no idea what youre talking about :) Redundancy is specifically for if your first method fails (hacker gets your password) then theres a second, completely different, layer of defence.
2
u/realddgamer 27d ago
"MFA is a scam because if the first line of defense fails why have a second"
??
2
346
u/tpat90
29d ago
•
Now `,:}'"\"\\] I can rest assured this will break all data leaks
368
u/jnmtx 29d ago •
![]()
146
3
u/Alleged3443 22d ago
Why did you take the xkcd comic and put shitty captions underneath it, and not credit xkcd?
2
u/jnmtx 22d ago
I took the version I posted from here: https://red9.com/blog/little-bobby-tables/#bobby-drop-tables-and-how-is-sql-injection-done
You are right - I should have credited xkcd.
https://www.explainxkcd.com/wiki/index.php/Little_Bobby_Tables
3
2
u/superbenzin 27d ago
petttah, pls explain the joke
14
u/tpat90 27d ago edited 24d ago •
![]()
This is a joke about deleting entries from a database.
It implies the school just feeds the names to a database without sanitzing it, meaning it not handles all inputs as one consecutive string per input, but in some cases as multiple parts.
'); is something that usually ends an input for many databases, so the database assumes what follows is a new command which is DROP TABLE students;. This commands means forget all entries in students or more correct forget the table studentnames were in. Followed by -- which afaik suggests end of query. (As u/NoeZ pointed out, -- is the start of a single-line comment, hence everything after that on this line is handled as comment.)
Thus the name Robert'); DROP TABLE students;-- get's parsed as delete table students and end.
If everything would have been sanitzied correctly "Robert'); DROP TABLE students;--" would simply be the name entered in the database.
Sanitization is one of the important things to be aware of having any kind of input in any infrastructure and is what causes most exploits and harm. The moral of this short is always sanitze all user inputs.
2
u/NoeZ 24d ago
Doesn't double dash just open a comment line?
3
u/Spiritual-Count7556 24d ago
Yes, it would be after that, so whatever they have written after the code would be deemed unrunnable
1
u/tpat90 24d ago edited 24d ago
That makes sense, I've seen it a few times and never used it myself. Thus I was always stumped by people did it.
Seems like you were correct and that makes sense since assuming all inputs are handled on the same line every other input would be treated as a single comment and ignored.
Thus there isn't even an error message or residue entries. It just successfully deletes the table and sees a long ass comment.
1
u/NoeZ 20d ago
I fell down the SQL rabbit hole a few months back and am commenting the shit out of my code to structure my thoughts
But then again the -- is to comment on a single line. So not everythging after would be considered comment, just the input on this line. /* opens a comment section but if SQL doesnt see */ further down, it sends back an error and doesnt run the query.
→ More replies (1)
129
u/cmhamm 29d ago
This is why all my passwords are “hunter2’); DROP TABLE Passwords; —“
54
u/aaronjamt 29d ago
Woah, I didn't know Reddit automatically censors your password like that!
21
u/Groduick 28d ago
Edit: it works !
11
99
u/CardOk755 28d ago
Non-english CSVs usually use semicolon instead of comma, always put a semicolon too.
27
u/Faux_Real 28d ago
And a tab
10
u/hatchetharrie 28d ago
And a dollar
5
1
u/HeyGayHay 27d ago
And a lj for when they try to manually resolve the problem and accidentally replace lj with lj (they are not the same)
1
u/Neat_Leg2638 27d ago
Tsv is a thing
2
u/Faux_Real 27d ago
Yes … and so is escaping; but the joke is around masterhacking not how the real world works
17
5
1
u/NamedBird 28d ago
Reliably parsing CSV's is hard*.*
- The column separator is usually a tab, a comma or a semicolon but that isn't guaranteed.
- The first row may contain column names instead of values and can have a different column separator.
- Rows are almost always separated by a newline. But which newline? (\r, \n, \r\n, \n\r ...)
- Fields can contain everything. Even tabs or newlines. Know how to parse the quotes.
- Hint: Beware of the Byte-Order Mark and used character set.1
155
u/Unexpected117
29d ago
•
Oh? I just use 4
150
43
8
1
73
33
u/PenguinBoi27 29d ago
Password = sudo rf - rm 😈
6
u/xxxbGamer 28d ago
My reflex told me to write that this is bulldhit. Then I remembered that I am in r/masterhacker
28
23
19
u/imdeathfrombelow 29d ago
Sometimes that's actually a thing lol. In my experience some leaked Iranian databases include commas and RTL characters and people usually just drop those rows before ingesting them into their tools
32
31
10
25
u/malik_ljalid 29d ago
20
1
1
5
5
7
u/BeginningSection7690 29d ago
Which would leave a username where a password should be, and take 3 seconds to fix
6
u/Catatonic27 29d ago
Also this is only an issue for unquoted comas there no modern CSV implementation that would work this way.
3
u/Odd-World4925 29d ago
That's not how CSV parsers work - at least it shouldn't be.
6
u/Catatonic27 29d ago
More like whatever generates the CSV. Modern implementations quote any fields with a comma or space in them (or probably just every single field because why not) to deliberately fix this problem but every so often you see this because some skid was working with raw text and learned you can change the file extension to "CSV" and then makes it someone else's problem. But any proper system/module for outputting CSV would take care of this by itself.
1
3
u/tes_kitty 28d ago
Make sure it also contains a semicolon since in some countries CSV files use a semicolon as the field seperator.
3
3
u/ThaGr1m 27d ago
Ok I get the funny but if this worked wouldn't it also break the database of the service you're using
4
u/AppreciatingSadness 27d ago
No because passwords aren't actually stored on the databases. And if they are that database deserves to be broken because 1. They storing unformatted plain passwords and 2. They aren't sanitising their inputs.
The bare minimum of password handling is a process called cryptographic hashing where passwords are converted into a key that the database stores. There's no way to reverse engineer the password from the key (it's mathematically impossible) so all the database needs to do is check if your input after being hashed is the same as the key they have saved.
1
1
u/GregerGunnarPersson 26d ago
Why would it? Databases can store any character in a column that stores characters.
3
u/Hot-Reindeer-7520 22d ago
Nice advice. But incomplete.
The most common ones are "," and ";"
In countries that are using "," for numbers like 1,25€, ";" is common in CSV
In the US and countries using for numbers "." like $1.25, "," is common in CSV
2
2
u/sussyslayer365 28d ago
"physicsuncovered" posting cybersecurity memes is like a dentist doing your MOT
2
1
1
u/ansolo00 29d ago
what about using single quote marks, then if its sql, you can do RCE or deletion of the entire schema ;)
1
1
1
1
1
1
u/Tripple_sneeed 29d ago
No one going to talk about the minimum effort GPT description under it?
“hilariously chaotic 🤣🤣🤣🤮🤮🤮”
Dead internet etc
1
1
1
1
1
1
1
1
1
1
1
1
u/max_lagomorph 27d ago
Why is comma even used as a separator, why not a specific separator character that's not used as anything else?! I hate CSVs
1
u/realddgamer 27d ago
To be compatible and easy to use with plain ASCII. And while they could have chosen to use a less common character, it doesn't really matter since you can just escape the comma if you need it
1
u/biopsy_results 26d ago
ASCII literally contains file/group/record/unit separator characters taking up space but noooo can’t use them
1
u/realddgamer 26d ago
Yeah, unfortunately those aren't on a keyboard
1
u/thejmkool 26d ago
So it's not about ease of use with ASCII, it's about ease of use with a keyboard and basic text files, right?
1
1
u/biopsy_results 26d ago
ASCII 0x1f “unit separator”is RIGHT there
1
u/rabouilethefirst 25d ago
Sure, just let me open a CSV in notepad and edit it using the “unit separator” key on my keyboard
1
1
1
u/Landlocked_WaterSimp 22d ago
Join the resistance! My tsvs use commas, my csvs use tabs and who know what might be in txt. not because i plan it forget which of the many table to file write functions defaults to which option.
1
1
1
1
u/ResponsibilityIcy927 26d ago
Better advice: include the text "," with the quotes, that way it's in ever loving pain for anyone to successfully escape character the text.
1
1
1
1
1
1
1











803
u/tokoklontong1897 29d ago •
The comments section must be insane