Тёмный
No video :(

Notepad.exe Will Snitch On You (full coding project) 

John Hammond
Подписаться 1,8 млн
Просмотров 234 тыс.
50% 1

jh.live/plextrac || Save time and effort on pentest reports with PlexTrac's premiere reporting & collaborative platform in a FREE one-month trial! jh.live/plextrac 😎
Free Cybersecurity Education and Ethical Hacking with John Hammond
📧JOIN MY NEWSLETTER ➡ jh.live/email
🙏SUPPORT THE CHANNEL ➡ jh.live/patreon
🤝 SPONSOR THE CHANNEL ➡ jh.live/sponsor
🌎FOLLOW ME EVERYWHERE ➡ jh.live/twitter ↔ jh.live/linkedin ↔ jh.live/discord ↔ jh.live/instagram ↔ jh.live/tiktok
💥 SEND ME MALWARE ➡ jh.live/malware
🔥RU-vid ALGORITHM ➡ Like, Comment, & Subscribe!

Опубликовано:

 

29 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 445   
@cold_fruit
@cold_fruit 5 месяцев назад
mans took nearly a full hour to say "notepad.exe has on-disk retention of the scratch buffer" 💀
@Carl-md8pc
@Carl-md8pc 5 месяцев назад
Thanks. Thought he was going to say Microsoft looks at the data to give recommendations. Can now spend the hour back to gtd in Emacs on a non ms os.
@sillymesilly
@sillymesilly 5 месяцев назад
Yeh that’s why didn’t subscribe and stopped at 1:08 too much air and sound coming out of his mouth
@Eckster
@Eckster 5 месяцев назад
My goodness, how is this a whole hour, I suppose the way he repeated and demonstrated the same thing like 4 times in the first minute should tell me
@neilpatrickhairless
@neilpatrickhairless 5 месяцев назад
To be fair, a good chunk of the population has to have things explained and demonstrated to them multiple times because... well... take a wild guess
@LKN117
@LKN117 5 месяцев назад
@@neilpatrickhairless Implying people are not intelligent because they aren't power users is a very arrogant view to have.
@tk429
@tk429 6 месяцев назад
Notepad ++ had done that for literally a decade.
@reanimationxp
@reanimationxp 5 месяцев назад
as does sublime, but generally those tools aren't going to be installed by someone who isn't already a power user
@nordgaren2358
@nordgaren2358 5 месяцев назад
Not to mention, it's just another place for people to look for sensitive information, and another place that has to be monitored for suspicious activity, potentially.
@core36
@core36 5 месяцев назад
@@reanimationxp even good old editor is mostly used by power users. normies buy word
@DoRullings
@DoRullings 5 месяцев назад
... and the Notepad++ cache files is just .txt files.
@DauKator
@DauKator 5 месяцев назад
😅😅😅😅😅😅😅😅😅😅😅😊😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😮😅😅😅😅😅😅😅😅😅😅😅😊😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😊😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅
@electrified0
@electrified0 4 месяца назад
It's not particularly interesting or surprising that a program that auto-saves has locally cached files that can recover the contents of unsaved files. Anyone with direct access to your filesystem could simply re-open notepad.exe and see exactly the data that you extracted there. What would be a lot more interesting to explore is whether and when deleting or closing without saving one of these unsaved files leaves easily recoverable artifacts. For example, if you type something into notepad, close the tab and hit don't save, does it delete the file? Does deleting the contents delete the contents of the file? If so, when?
@Sparks621
@Sparks621 6 месяцев назад
010 Editor and it's FOSS counterpart, ImHex both have an insanely useful feature called Patterns (or Templates) that make it a lot easier to reverse engineer binary structures by defining them in a C-like struct syntax. It also helps with visualizing or color-coding the specific byte ranges. I'd love you to make a dedicated video about pattern-based hex editors because it's genuinely one of the most useful things for figuring out the layout of a binary format.
@toxyl3915
@toxyl3915 6 месяцев назад
that would be nice, I used that a long time ago in HexWorkshop, makes things so much easier. also, ImHex looks interesting :)
@nordgaren2358
@nordgaren2358 6 месяцев назад
Yea. I wanted to make a template for this, and I actually suggested it, but it takes some time to learn the template script. I have written a few myself, but tbh IDK how I would write the template for this format. It would be a good video, though. Learning bt templates or ImHex patterns.
@UnrealSecurity
@UnrealSecurity 6 месяцев назад
I used 010 editor for a while and it is very good but it's pattern language felt unnatural and inconsistent. I switched to ImHex shortly after and I absolutely love it now. I still have to use FlexHex if I need to compare two binary files (deletions & insertions) because other hex editors are way too slow.
@Sparks621
@Sparks621 6 месяцев назад
@@UnrealSecurity My only problem with imhex is that it's still pretty buggy. Scrolling the hex view is a pain, the pattern breakpoints don't always work and sometimes the whole program crashes. Other than that it's pretty good.
@UnrealSecurity
@UnrealSecurity 6 месяцев назад
@@Sparks621 I have had it crash on me a few times. I'm curious though; what do you mean scrolling the hex view is a pain?
@vilianasdev
@vilianasdev 6 месяцев назад
Doing some looking I found the structure seems so far as the magic two bytes, then a delimiter, a boolean if the file is saved or not. If it IS saved then it has the length of the following path as a singular byte, proceeded with the path itself in, I'm assuming, UTF-16. Next is the length of the content in variable amount of bytes. HERE is the kicker, the next 48 bytes are a Keccak-384 hash of the content which seems to start with bytes 0x05, 0x01 then 46 bytes of the rest of hash. Next I don't know but seems to be more bytes until a 4 byte chunk at the end with the length again. Then the content ended with a null byte then four final bytes that I also can't track down. Hope this helps with that hash issue tho!
@nordgaren2358
@nordgaren2358 5 месяцев назад
The 0x05 0x01 are the encoding and the carriage type. :) Also that length at the start is a varint. After the 44 byte metadata structure (which is the structure that you described as the 46 bytes) there's more var ints, which represent the cursor position. They are the same if there is no selection, otherwise it's the selection start and end in chars. Then a delimiter that seems to be the number 1 as a 32 bit in, and then another varint for the length of the content. IDK what else is after that.
@gm133t
@gm133t 6 месяцев назад
All you need to do to disable this behavior is go to notepad settings and under "When Notepad starts" --> "Open a new window" instead of the default "open content from the previous session". No more bin files this way.... :)
@jakelancaster5889
@jakelancaster5889 6 месяцев назад
Yeah I haven't used windows in a minute but last I did, notepad didn't even do that so hopefully there's a disable feature option too lol
@daviddelaney363
@daviddelaney363 5 месяцев назад
Sort of true...but if you shut down your system without closing notepad it retains the text that was displayed and will open it next time.
@dannymitchell6131
@dannymitchell6131 5 месяцев назад
@@daviddelaney363 You can change that too.
@dinnerchief
@dinnerchief 24 дня назад
when you are a 60 yo grandma, youd have no idea about that AND it would be more convenient to just get what you need without digging into file system or forgetting to save everytime
@harald4game
@harald4game 5 месяцев назад
39:02 Tip: Its using variable length encoding, High bit cleared denotes last byte. 0xE8 0x02 is (0x80+0x68) (2) where 2 becomes 0x100 (left shift 7 bits) + 0x68 = 0x168 which is 360 in decimal which is the file length. @0x86 it's the text length, The pair @0x7e and @0x80 could be the selection/cursor pos. Selection is empty both values equal. Cursor at the end, values = text length.
@seanvinsick5271
@seanvinsick5271 6 месяцев назад
Your videos always get me with this. You present something I'm familiar with and think I know about, so I assume I already know what you're going to find. You present it as a beginner level understanding further lowering my guard, and then you hit me stuff I don't know.
@DD-pp4ke
@DD-pp4ke 29 дней назад
Wax on wax off danielson
@nickadams2361
@nickadams2361 6 месяцев назад
This feature caused my notepad to be in a corrupted state where it was trying to run a formatting operation on dozens of open unsaved files. Took a minute to get the app functional again, I had to go and delete all the cached shit windows was doing in these folders
@mikemhz
@mikemhz 2 дня назад
I restored the whole original notepad.exe when that happened to me
@Sandman74blue
@Sandman74blue 5 месяцев назад
Notepad also remembers what you highlighted. Just highlight some text, close and reopen notepad... It's still there.
@nordgaren2358
@nordgaren2358 5 месяцев назад
Yea, it's part of the tabstate file format
@codemonkey6173
@codemonkey6173 6 месяцев назад
Love the shoutout to 010! As a fellow Canadian I'm happy to see them get the love they deserve!
@ribcatcher
@ribcatcher 6 месяцев назад
Heads up, I only watched the video up to 43:00 before deciding to try a bit of stuff myself, so if you had some revelations in the last 10 minutes I haven't seen them (as of this comment) To be honest, Reading this a second time, I don't think the info here is that helpful, but it should help someone working on this get a head start. Take everything here with a tub of salt - I'm a uni student and have 0.00 years of professional experience. Steps: 1. Create a new file and save it. 2. Load up the saved file in notepad and edit it 3. DO NOT SAVE the edits and close notepad. Reopen notepad to verify that the edits were cached (They were). Then close notepad 4. Open the file in a second editor and add some text. Save the file. 5. Reopen the file in notepad and navigate to the tab with the unsaved data. Notepad notices that the file on disks has edits newer than the cached edits in notepad. Therefore: - Notepad (probably) saves the hash of the file on disk + time of last edit as well as the hash of the cached edits and their timestamps. That could be the garbled data before and after the - I believe that the garbled data in between the delimiters and the data after the end of contents must be some form of hashes + timestamp. Perhaps the timestamp of the edits + the timestamp of the last edits and the hash + timestamp of the file on disk. I was curious about the 0.bin and .1.bin files, since they are considerably smaller but still follow the same format somewhat (see point 7), I decided to focus a bit on those. I decided to do some tests Second test: 1. Create a file 2. Open it in notepad and see the cache. One file with a UUID is made. 3. Close the file, we see .0.bin and .1.bin pop into existence. 4. We also see that .1.bin is empty (Zero bytes). 5. Reopen the file in notepad. This usually makes a second (newer) tab. Close that tab so that the original tab is in view. 6. Now close the file without making any edits in the tab. 7. .1.bin is populated! Moreover, we see the same pattern (01 00 00 00) in the .1.bin file - followed by some garbled data. 8. Now repeat steps 5 through 7. 9. We see that the end of .1.bin has changed. 10. If I repeat 5-7 a second time, we see that .1.bin doesn't change, but .0.bin does? Concluding, it seems notepad stores session data alternatively, once in .0.bin and once in .1.bin. The initial session populates .0.bin, the next populates .1.bin, and back and forth. Also, if you notice, notepad preserves cursor position between sessions, I assume that too, must be stored somewhere in those files or the main one. They're clearly a complete "Tab state" that has all the necessary info to recreate a notepad tab, including where the cursor was, etc. I got kinda fatigued at this point at it was getting late, but I hope whoever reads this gets a bit of a head start! Edit: I made some more observations and put them all in a github issue
@luketurner314
@luketurner314 6 месяцев назад
It makes sense to alternate files when saving session data (second test, step 10). If, instead, it were to overwrite a single file, if a power failure event happens during the process, that entire session would become corrupt and will be lost; if it was a new unsaved file, all that data would also be gone
@capcapt23
@capcapt23 11 дней назад
well thiis was my 1st video I've seen of yours. So many will chime in with , of course it does this. But how you got to the end was simply fun and very well thought through. It made me stop and go full screen so I could follow along better. Simply fantastic.
@59de44955ebd
@59de44955ebd 3 месяца назад
For the record (for those not aware), this "snitching" issue is only about the new multi-tab UWP notepad, but all windows versions including Win 11 still come with the classic single-tab notepad.exe (C:\Windows otepad.exe) based on good old edit control, so just use this one instead and you are safe.
@Americas_Last_Patriots
@Americas_Last_Patriots 11 дней назад
I was just about to ask....the same thing....So windows 10 and earlier is the regular notepad.exe? I just noticed on Win11 it auto saves on notepad. And doesn't seem to do that on Win10.
@zangin
@zangin 22 дня назад
I love knowing somebody else’s brain works similar to mine! Great deep dive. I like knowing I’m not the only one who would spend time to figure out what it’s doing, and it’s satisfying when you figure it out, and then can extrapolate on the ramifications. I bet there is so much more that is tracked and not documented.
@MyCodingDiary
@MyCodingDiary 6 месяцев назад
I've never commented on a video before, but I had to for this one. It's that good!
@ChatterontheWire
@ChatterontheWire 6 месяцев назад
reminds me of stuff I had to do with satori back in the day to parse different network packets that weren't well defined back in the day. Lots of trial and error, cutting, looking, displaying, changing! Always interseting to see what John is up to these days!
@xCheddarB0b42x
@xCheddarB0b42x 6 месяцев назад
Well, this escalated quickly to writing a bespoke parser on-the-fly. hahaha this content is S-tier dude
@sammyfromsydney
@sammyfromsydney 5 месяцев назад
This drives me insane. Programmers and security staff insist on changes that make the user experience much more difficult in the name of security, then they do something like this which is bound to cause bigger security issues than anything they resolved with their user unfriendly changes. Notepad history and cache should at least be opt in, with a warning not to type passwords into it in the clear.
@CD-vb9fi
@CD-vb9fi 5 месяцев назад
lol... it's NEVER about security. No matter how much they claim it is... it just is not. I have been in IT for years now... Security is a "throw away word" to justify some whacky shit... with the end result being insecure.
@anthonylosego
@anthonylosego 5 дней назад
@@CD-vb9fi Some places take security seriously and don't back down just because it is hard. I've seen some bad concepts in security over the years such as "security through obscurity" and relying only upon file permissions, etc. However lately, I have seen more 3 factor authentication processes. Which is pretty good for the time being. SSL, POST, and Federation services are pretty key as well.
@CD-vb9fi
@CD-vb9fi 5 дней назад
@@anthonylosego No, I have never seen any place take security seriously. It's not that they "back down". They "fundamentally" have no idea what security is. Sure... give me 20 factor auth... it's worthless let me explain why. Did you remember the RSA "paid to be less secure by NSA" from the past? Or how about "golden keys"? How about "password complexity rules"? How about "password life cycles"? How about those dreaded "checklists"? The ones where you have to "do something" just to check off that little box even those the thing you are "locking down" is already "disabled"? Humans "fundamentally" shoot themselves in the foot. You bring in your Triple factor and all that means is that one of your 'factors' becomes the target... and wham. Still compromised because THEY didn't take it seriously. All Eggs in one basket? Perfect! We love that! Just ask everyone using Crowdstrike. We humans... out of fear create the very weapons that are used to stab us in the back. Now... none of you have control over your hardware because the mfg backed in their own controls and backdoors... guess who can control your hardware? Hackers... and they control it on a level that once they have access... you don't even have the tools necessary to kick them back out!
@ThisIsJustADrillBit
@ThisIsJustADrillBit 6 месяцев назад
Lol that lil screen connect moment feels... Curiously timed 😊❤
@raydall3734
@raydall3734 5 месяцев назад
I use nano in a command line interface on a linux machine. I don't sweat such infiltration.
@notaras1985
@notaras1985 4 месяца назад
For what? Saving passwords?
@pen1208
@pen1208 5 месяцев назад
I write articles and research data for a living. I found this happy added feature out by accident when I updated to windows 11 over a year ago. This has been a feature ever since 11 release. I personally LOVE it. For the exact reason you listed. I am a coder "hobbiest" and I oftentimes work frantically and quick when diving into "rabbit holes" when doing research. This feature has saved my but more than once with its "autosave" feature when writing. My method when writing is just let thoughts roll out. I ignore misspells and proper punctuation then when I am done spilling my brain on the screen, I go back later and go through it and make sense of everything I wrote. I love just popping notepad open when doing reporting on coding. I can just spill it out with snippets of code in my head along with what I write, knowing of my computer crashes for what I am doing at the the same time on any one of my 3 other screens, it will be saved with every edit I do at any time. Super helpful. LOL
@BitWise501
@BitWise501 5 месяцев назад
Did something similar. I enjoy decoding and parsing data structures without documentation.
@nordgaren2358
@nordgaren2358 5 месяцев назад
Same, actually! I do a lot of game RE, so this was right up my alley :)
@tiger12506
@tiger12506 6 месяцев назад
Yeah, the second I saw that update news, I dropped Notepad like it's hot. I always used to use it to just have a quick scratch place for ephemeral data, copy/paste, edit, etc. And now, it leaks that data. Gross.
@AntiAtheismIsUnstoppable
@AntiAtheismIsUnstoppable 5 месяцев назад
Maybe the problem is more that it's opt-out. This is the typical dilemma when adding features to an APP, you can make it opt-out in which case you can be sure that the users will experience it, or you can make it opt-in and do these small tutorials when the APP starts the fist time with small screens telling what is new and which everyone skips. But yes, it doesn't seem as helpful in notepad as in an actual editor. I also disabled it.
@ai-spacedestructor
@ai-spacedestructor 13 дней назад
im not experienced by any means in working with binary data but i feel like the starting bit after "NP" and before the file contents begins, especially the segment always present regardless if the full filepath metadata is present or not will probably help figuring most of the struggle in the video out once your capable of interpreting it correctly. after all it must be important to both scenarios if its always present.
@charlesmayberry2825
@charlesmayberry2825 6 месяцев назад
I could see programming out pattern matching for certain things, as someone that enjoys red teaming I see a lot of "this is terrifying what can probably happen here" I'd be looking at other things like I can't alter code in another program or the OS will see it as misbehaving and close my program, but what I could do in theory is get pointers to the buffers, if I want to do some weird low level code stuff. I am hesitant to go full nerd with how and what I could think to try, but this could be a scary tool.
@dakoderii4221
@dakoderii4221 5 месяцев назад
They should use the tech in voting systems instead of what is used in modern computers. This is especially important for financial transactions. Why are we using obsolete tech that can be hacked when we have unhackable tech sitting in the voting machines? There has to be a way to incorporate that tech. Voting machines are so secure that they cannot be hacked, even when connected to an unsecured wifi network. That's highly impressive but no one wants to further explore this wonderful advancement of technology. Doesn't make any sense.
@MyCodingDiary
@MyCodingDiary 6 месяцев назад
Your videos always make my day. Keep shining!
@Lampe2020
@Lampe2020 5 месяцев назад
12:45 Thanks for warning :) I don't have Slack, but whenever I hear a Discord notification sound while watching a video I wind the video back a few seconds several times to be sure it really didn't come from Discord. Same would be with Skype, but I rarely hear Skype sounds in videos.
@nekomata_mottsii
@nekomata_mottsii Месяц назад
38:03 We might see a 10 there because of the Windows formatting of new lines. Windows uses two characters to signal a new line "CRLF" (Carriage Return and Line Feed), and Windows safes that into the File, that's also why windows .txt files with line feeds might appear different on other OSs, bc that WIndows is the only OS (as far as I am aware) that uses CLRF for a new line, other OSs usually just use LF (line feed) for new lines. All that is probably encoded somewhere in the data you've skipped, even when it changes every single save.
@thomasetavard2031
@thomasetavard2031 5 месяцев назад
I believe the extra data while you have notepad open is the Undo/Redo data.
@skilz8098
@skilz8098 19 дней назад
Yeah, it could be a link or pointer to Windows Clipboard functionality within the Windows API.
@MrAlbinopapa
@MrAlbinopapa 16 дней назад
Me personally, I use Notepad++, a text editor with several features including the one discussed here. I like the save without saving feature because I don't always want to permanently save things, just jot it down and have it accessible without having to look up some filename. Such as taking notes when I'm on a call, a story idea, some bits of code or project ideas.
@SaintMatthieuSimard
@SaintMatthieuSimard 5 месяцев назад
Basically, the people who now owns microsoft don't have people's best interests at heart. Let's go reactOS
@MrAlbinopapa
@MrAlbinopapa 16 дней назад
They may be spying, but I actually enjoy the feature, though I use Notepad++ which does the same.
@majohime
@majohime 6 месяцев назад
I think you should try VSCode with Jupyter Notebook extension for such videos. Sublime Text may be nice for recording but working with individual code blocks that can be run separately feels much more nice for developing that kind of small programs. Like you wouldn't need to open separate python shell to check path bytes instead all that inside separate Jupyter code block and you wouldn't be slowed by thinking about whole program logic but rather work on individual small problem at a time.
@1over137
@1over137 19 дней назад
It looks like it's the unsaved editor state. Maybe even the undo buffer. When you changed the file, but did not save it, the cache contained "binary garbage". When you save it, it became 'rendered' text. It's possible the garbage is just a C type struct or union off editor actions, within which you might find the ketstroke or input character streams.
@MindCaged
@MindCaged 5 месяцев назад
Brings back memories of when I dissected game save files trying to figure out what all the bits of data did and where all the values are stored. It's ironic that a lot of modern game files have better security than this, either because they encrypt the contents or compress it which is almost the same effect if you don't know the compression algorithm.
@rikschaaf
@rikschaaf 21 день назад
I think that before closing notepad, the weird garbled data of the edits you made are just that: edits. It probably has some sort of encoding to track edits (adding characters, deleting characters, etc), for undo purposes. Closing the editor probably triggers a flush that only prints out the result of the edits and removes the edit log itself.
@alt666
@alt666 5 месяцев назад
so thats why all my skyrim mod ini's were still open in tabs after i saved and closed the notepad
@frankhaugen
@frankhaugen 4 дня назад
It's the most basic implementation possible of a persisted tab. I bet they store as binary just so the windows search will not look at the contents
@0AThijs
@0AThijs 20 дней назад
I actually disabled this, I hate it so much, I love tabs but having it open two hundred tabs each launch even if I wanted to just open a single file is so annoying.
@m4rt_
@m4rt_ 5 месяцев назад
another RU-vidr who has made some interesting videos about figuring out the format for binary formats is MattKC and the videos he has made on Lego Island, and the video he made on recovering a corrupted save file for a game he was playing.
@jacobsteel1142
@jacobsteel1142 5 месяцев назад
I hate Notepad right now given that closing notepad tabs is not something that fits in my workflow. I mainly use Notepad++ but given it has that same feature, it wasn't always the right choice (I probably have about 40 different unsaved text files open in N++. So I used to use both and now Im just annoyed whenever the default notepad pops up. Mainly because even if I open a txt file in it, it won't display that txt I just clicked on, it will just show the last thing it had open meaning I then have to tab over to the thing I just opened
@realtorjames2586
@realtorjames2586 5 дней назад
I ditched win 11 and went back to Linix over things like this, and then onedrive taking over my pc and re-installing itself after I finally got rid of it.
@petergerdes1094
@petergerdes1094 4 дня назад
How is this any more of a security risk than the fact almost all modern OSes support swapping VM to disk and I don't think windows encrypts it by default. And even if it does encrypt it anyone who has admin or physical access should be able to recover it anyway.
@hexstudios
@hexstudios 5 месяцев назад
Don't sell yourself short John, we all just watched a mastermind at work here! Fantastic video.
@Rivinwin
@Rivinwin Месяц назад
When I worked selling cell phones we had to run credit checks so we handled SSNs, dob, etc. We used Microsoft's Sticky Notes program to handle it sometimes, and it caches data in the same way. We once accidentally deleted a sticky note that would lead to us losing a sale, so I went in and extracted the strings in this way. It never occurred to me that it was an attack surface because a key logger was more of a threat.
@angrybirds2472
@angrybirds2472 3 месяца назад
recursively about the 420 ism, but tbh for those of us who are just getting into this kinda thing, this really puts in perspective and insight a lot about certain qualities of binary and hex and how it relates to registry keys and how it all works together, and so im more intrigued because i still am kinda noob but this way of attack made me understand the fundamental underlyings of things a lot differently and probably easier to digest for my braincells....
@THEGOOD360
@THEGOOD360 20 дней назад
The problem is you're using Windows 11
@asapmig
@asapmig 2 дня назад
Windows 11 = legal spyware
@russellstyles5381
@russellstyles5381 14 дней назад
Short answer - you can turn this off. Click on the little gear icon in notepad, click on "when notepad starts".
@wardrich
@wardrich 9 дней назад
8:42 wtf is it with Windows posts always being like "C:\users\[your user name]\..." What if you don't even have your user profiles on C? Why does almost nobody use environmental varialbes for this stuff?! %userprofile% or %appdata% or %locappadata% makes way more sense.
@whtiequillBj
@whtiequillBj 5 месяцев назад
do 0.bin or 1.bin have data in ADS (Alternate Data Streams)?
@generovinsky
@generovinsky 5 месяцев назад
There is a closing event for programs in windows, when the x is pressed or the program is exited through normal means, that probably triggers writing whatever is in the textbox window to a file..
@luke-gamedevlearning
@luke-gamedevlearning 5 месяцев назад
This is like our Internet browsers remembering our tabs. Nothing new here.
@mathboy8188
@mathboy8188 5 месяцев назад
I've loved Notepad for decades... just simple text, no formatting, no "functionality", no "intelligence", no nothing. There are so many situations where that's incredibly useful. So of course Microsoft decided it was time to go F it up. When I switch to Windows 11 (unless I go Linux... debating at the moment), I'll need to find a new Notepad to be what Notepad used to be.
@aadishm4793
@aadishm4793 6 месяцев назад
Awesome & quality content
@kevinwilson7213
@kevinwilson7213 5 месяцев назад
Any time THEY try to "help the user", yikes!! Thanks for the explanation John. Also, loving the fact that you "Nerd-sniped" yourself live!! (Better than accidentally Rick-rolling yourself :)
@jackfr0st486
@jackfr0st486 5 месяцев назад
I wonder how this will work if I were to open a file from removable media. Like I close the notepad after file is opened and then remove that device.
@TheD3adlysin
@TheD3adlysin 5 месяцев назад
I suspect your magic numbers before the text value are likely Character count, rows, columns
@nordgaren2358
@nordgaren2358 5 месяцев назад
It's a varint. It encodes the number into 7 bits and uses the sign bit to indicate that there is another 7 bits after that need to be accounted for, basically.
@Rundik
@Rundik 26 дней назад
Is it clickbait? It doesn't really send the data you type to Microsoft, does it?
@anthonylosego
@anthonylosego 5 дней назад
I think he meant that your data is not gone once you close Notepad. And more importantly, it's just sitting in a file that a hacker could, in theory, look up your buffered data and grab it for their own use. If this known location for the bin files did not exist, a hacker would have to search all files everywhere to find it. However, now they have a way to seek out this information quickly. Especially since people tend to jot down important information in their notepad as a quick buffer. Personally, I think one would do better to use OneNote or some other note taking tool.
@artosbear
@artosbear 5 дней назад
I mean it's plaintext. We would have to dig into what gets sent when windows calls home to see if that's getting sent but I think windows at least takes snippets of things you type in general and that goes back a ways before 11. If you use GBoard keyboard on Android Google retains *every single thing you say in a plain audio file* remotely. You have to ask them to delete it. So it wouldn't be hard for MS to just be acting like a keylogger. Not aware at this time of to what extent they're doing or not doing that just talking about how easy it would be
@yodxxx1
@yodxxx1 17 дней назад
Why are there so many features in Win11 that are just incredible data leak risks?
@quicktastic
@quicktastic 5 месяцев назад
People probably complained that the old notepad lost everything if there was a power outage or some other fault causing the computer to shut down so they added the ability for it to 'remember' what you were doing. Should be optional though.
@BringIt2023
@BringIt2023 Месяц назад
This is one of those videos you could watch 50 times and learn from it everytime.
@K5RTO
@K5RTO 6 месяцев назад
enjoyed this. love your long form stuff.
@bazzmond
@bazzmond 7 дней назад
This changed notepad behavior cause me to lose an important note. It kept opening extra tabs with the same name, i though it was a bug and was trying to get it back to normal and i accidentally deleted my note. So annoying... grr
@charlesturner897
@charlesturner897 11 дней назад
This just in! Autosaved files are saved to disk!
@japhethjay4880
@japhethjay4880 5 месяцев назад
Love your new video format keep it up😊
@nickadams2361
@nickadams2361 6 месяцев назад
I was like bro who is slacking me on the weekend
@wolf2179
@wolf2179 4 месяца назад
It probably should be noted this is the notepad app and not the native notepad everyone is familiar with. Windows apps work differently then the traditional software that most are accustomed with windows and they are not the same.
@jakestilgard4145
@jakestilgard4145 5 дней назад
That's why it's better to use the older version of Notepad (it's still there).
@0oNoiseo0
@0oNoiseo0 6 месяцев назад
Loved this one John!
@andysmith4634
@andysmith4634 5 месяцев назад
here is the better solution for me to display the text with line breaks: original_file_contents = original_file_contents.decode('utf-16') # use splitlines methode for correct format of Carriage Return (CR) and Line Feed (LF) # characters (often abbreviated as " ") are used for line endings, while Unix-based # systems only use the Line Feed (LF) character (" "). lines = original_file_contents.splitlines() for line in lines: print(line) otherwise part of the text will be missing after conversion to utf-16
@nordgaren2358
@nordgaren2358 5 месяцев назад
The buffer text in the tabstate files all have unix type line feeds. The tabstate converts all text to unix type carriage returns and utf16le, no matter the source files encoding or carriage return type.
@nordgaren2358
@nordgaren2358 5 месяцев назад
part of the text is probably missing because you are not reading the var int. it's uleb128
@PTEC3D
@PTEC3D 5 месяцев назад
Notepad++ has the same behaviour, any files open when you close the editor will persist somewhere and be restored on opening the app again.
@lordryan5353
@lordryan5353 Месяц назад
@beneater did an amazing job talking through some of their projects that included a hash
@boulderbash19700209
@boulderbash19700209 5 месяцев назад
I found that _feature_ when I edited a batch file. I wondered why was it that the batch file didn't run my new commands, and instead running the old version of it. And when I open the batch file, there it is, the old version of it. After several times opening, editing, saving, and closing it, I become aware that notepad has tabs and within those tabs are several versions of that batch file, courtesy of me opening and closing it several times. I closed them all and searched in notepad setting to turn off that feature before edit the batch file once again. Very troublesome feature.
@OhNotThat
@OhNotThat 5 месяцев назад
Misleading. Microsoft doesn't actually get notepad to phone home with all your data, therefore it's not "snitching" on you. It's just on disk data retention. notepad++ also does this. Unlike Microsoft Windows 11 Notepad I'm sure Notepad++ lets you toggle an option for this though.
@JimJi
@JimJi 5 месяцев назад
Hold on, let me check my slack really quick... oh wait...
@DePhoegonIsle
@DePhoegonIsle 6 месяцев назад
Honestly, I think a cool thing about it would be able to pull data from it without using notepad. Sorta like saving the tabs to their own file on a system close or signout, or even pull it from a non bootable user space. Frankly, I can't tell you how many times a forced reboot just screwed me over with my notepad scribbles of the moment. I think this is an awesome feature.
@andydelle4509
@andydelle4509 5 месяцев назад
Well geez! I guess I need to reconsider my Notepad password list!
@smackyay
@smackyay 27 дней назад
I have a gazillion tabs open with notes or pastes. Basically I don't want to close anyone down cos it is a hassle now lol
@danlowe
@danlowe 5 месяцев назад
A quick windows key+R and the word notepad would at least save the word every time you go back to run it. Watching you type it in search every time is painful
@danlowe
@danlowe 5 месяцев назад
Very technical stuff though. I subbed.
@AndysAutismLifeStory
@AndysAutismLifeStory 12 дней назад
He has autism maybe. the repeatitive play, the lining things up, the speech issues with big words, and the way he cant connect with other kids his age, and the way he is being held and squeeze to help his senses. My parents did the same with me as a kid. Except my mom read and had routine and had teach me skills and communication with me by teaching the skills I need to interact with others. The thing is my parents did that to me. And my dad was agressive like this and not patient with me or mom. But the issue is my language and developmental delays. This is the issue. my dad and mom huged me and held me with spending time with me and my brother. Screaming can make his ears hurt causes him behavior issues like i went through. This is another thing he has autism. I need help with understanding what to expect and when. That way I don't go doing that if it is clear to me. I also need help with redirect me to doing something else to skip the task and idea. This makes me repeating things and ask and ask for what I was thinking and the tasks. I had learning disabilities and had issues with changes an tics and stim and hygiene and diapers and social skills and not understanding what i see around me and hear what is around me too hard for me to pan and organizing my response to what is happening. I didn't talk to age 5.
@ThickpropheT
@ThickpropheT 9 дней назад
What's the benefit of rewriting this in rust?
@ffeliziani
@ffeliziani 2 дня назад
Can't you decompile notepad with ghidra or something and see how it works from there?
@passion_proh-jects
@passion_proh-jects 5 месяцев назад
Watching your coding artwork unfold onscreen is... depressingly good... That said, Notepad++
@AgentM124
@AgentM124 6 месяцев назад
The buffer might just contain the info for undo/redo when you don't close it. But as soon as you close it, it discards the undo redo history? Or is that handled outside of the file.
@nordgaren2358
@nordgaren2358 6 месяцев назад
No redo in notepad, unfortunately
@AgentM124
@AgentM124 6 месяцев назад
@@nordgaren2358 lol what a joke
@pilotstiles
@pilotstiles 3 месяца назад
The more I find out about MS and what they are doing the more I am enjoying my transition into Linux.
@jmm1233
@jmm1233 5 месяцев назад
there is a feature in neovim that basically does the same as this
@nurtasin
@nurtasin 6 месяцев назад
Maybe just reverse engineer notepad.exe
@nordgaren2358
@nordgaren2358 6 месяцев назад
Have you ever looked inside Microsoft compiled executables?
@PWNAGE703
@PWNAGE703 6 месяцев назад
@@nordgaren2358no but it sounds very interesting
@threeMetreJim
@threeMetreJim Месяц назад
@@nordgaren2358 I did for an old 32 bit version of notepad. Not a great deal happens. It didn't take long to trace every instruction in a debugger.up until the message handling loop. Most is opening the window, setting the title and the menus up to that point. You could find the point where clicking the close button happens pretty quickly, then go from there. You will need to get an x64 instruction reference and windows api documentation too. It is quite interesting though.
@Fifty1stState.
@Fifty1stState. 5 месяцев назад
I've installed Win11Pro 23H2 and that option looks like it's gone from NotePad.exe.
@pepeshopping
@pepeshopping 5 месяцев назад
You mean, just like you can recover old notepad unsaved notes!? Oh my!
@ChipsChallenge95
@ChipsChallenge95 19 дней назад
Another MS product, VSCode can replace notepad completely, it’s too bad that it takes third party plugins to do so, and it’s slower. Branching and merging text documents using DevOps techniques is too powerful to ignore, even for casual notes
@TheTubejunky
@TheTubejunky 25 дней назад
clipboard deletes anything within the hr but notepad saves everything without saves>? yeah fk Microsoft and their governmental mindset!
@_mrcrypt
@_mrcrypt 6 месяцев назад
Pretty cool! Lots of places to tuck stuff 😜 Thanks a BUNCH, man! 🍷 (well, I guess those places were always there, but… meh 🤷‍♂️)
@gamerworld-fl4mt
@gamerworld-fl4mt 24 дня назад
i hate notepad because one time i wonderd what would happen if i ran gta 5 in notepad and it saved so everytime i open notepad it crashes and now i use visual studio code for my text editer
@Fifty1stState.
@Fifty1stState. 5 месяцев назад
If you close a tab in NotePad.exe it will remove the .bin file from that folder. If you delete all those .bin files in that folder and open NotePad.exe, it opens with just one blank new tab. I'm going to have that folders contents deleted periodically!
@Fifty1stState.
@Fifty1stState. 5 месяцев назад
In Notepad, the right Settings wheel, there's an option "When Notepad starts", click on "Open a new windows" and it won't populate that system folder so when you open notepad it only opens a blank document.
@haukechristiansen5385
@haukechristiansen5385 5 месяцев назад
Congrats. Notepad has a feature, Notepad++ had for ages. Only problematic if Windows shares this files with others.
@treahblade
@treahblade 5 месяцев назад
Yeah Microsoft has some kinda love affair with inventing new binary storage medium for basic data for "reasons". They could have simply just stored the temp data as simple text data but instead packed it all into a damn binary file. They did this same silly shit when they update notes.
@Major_Berg
@Major_Berg 6 месяцев назад
Is it keeping track of the change tree for undo and redo resulting in scenarios where deleting data does not notably change things until the editor is closed?
@DePhoegonIsle
@DePhoegonIsle 6 месяцев назад
Looks like it.. . because ya know edit history is a thing like undo/redo are things in notepad.
@waldolemmer
@waldolemmer 6 месяцев назад
Vim can do this too, and Neovim does it by default. I think VSCode does it too, and Sublime probably too. I believe browsers also cache entered form data and only delete it once you submit it or navigate away. I bet the photo app creates a low-res thumbnail file for every picture you open.
@DePhoegonIsle
@DePhoegonIsle 6 месяцев назад
It's almost like any modern application does this caching incase of interruptions
@tiger12506
@tiger12506 6 месяцев назад
It's easy to see how this could be a very bad "feature" for security. It's common for support people managing machines to open config files and such in Notepad. At any point in the future, someone could open Notepad and see what was written there.
@DePhoegonIsle
@DePhoegonIsle 6 месяцев назад
I mean, these same users make a sticky note into a security issue as well. I'm not saying there isn't a possibility of an issue, but I am saying that if you're running system critical configuration or highly sensitive details... maybe ensuring the file is closed properly & won't reopen in the same editor might be the smart play.
@Chris-bk9zl
@Chris-bk9zl 3 месяца назад
Is there a way to completely kick Microsoft out of your computer to take full ownership of every update or any change and to stop any spying?
Далее
He tried to hack me...
34:15
Просмотров 380 тыс.
Finding WEIRD Devices on the Public Internet
27:48
Просмотров 257 тыс.
Free Coding Tool Distributes Malware
42:12
Просмотров 132 тыс.
$104,000 in 4 days, netlify
21:59
Просмотров 70 тыс.
Is THIS a VIRUS? Finding a Remcos RAT - Malware Analysis
1:12:12
Microsoft Is KILLING Windows | ft. Steve @GamersNexus
19:19
Harder Drive: Hard drives we didn't want or need
36:47
I forced EVERYONE to use Linux
22:59
Просмотров 478 тыс.