3:36 The reason a command like "sudo cat filename > /dev/sdc1" fails, is because the redirect is still performed by your shell. In other words: sudo only affects the "cat filename" part of the command and not the "> /dev/sdc1" part. And since your shell is not a root shell, the redirect fails, since you don't have the permissions to write to that file. I haven't tried it out, but you could probably get around that with the following command: "cat filename | sudo tee /dev/sdc1". Btw, if you ask yourself why you could read the file earlier without problems: it is because the command used was "sudo cat /dev/sdc1 > filename". Here the sudo applies to "cat /dev/sdc1", meaning the cat process has the permissions to read the file. The redirect is however again performed by the shell. (Because of that the resulting file is then owned by your normal user and not the root user, therefor you can edit it without requiering root privileges.)
@waldolemmer2 жыл бұрын
Mr flyperson needs to see this
@filipmajetic11742 жыл бұрын
Beat me to it by 15 minutes, yeah using tee is the correct thing here. Also `sudo sh -c "echo filename > /dev/sdc1"`, but that's just the same command from the video done without the pipe.
@nyanpasu642 жыл бұрын
I don't like sudo tee, since it spits out the file contents to stdout (which is bad for binary files). I'm not sure what's a better way though.
@mcmodknower2 жыл бұрын
@@nyanpasu64 For reading/writing devices most people use `dd`. for example `sudo dd if=sdc1.raw of=/dev/sdc1` copies the whole data from the input file `sdc1.raw` to the output file `/dev/sdc1`.
@filipmajetic11742 жыл бұрын
@@nyanpasu64 damn, forgot about that. You could add >/dev/null after tee to suppress that
@anishrashinkar3162 жыл бұрын
Flytech is the one of those channels who have *really* interesting and always unique content. Keep it up 👍
@Windows9634 Жыл бұрын
Yes
@DavidWonn2 жыл бұрын
8:06 Actually it is possible within Windows to make . and .. file names through some obscure tricks. I've demonstrated how to do so on NTFS partitions in a video, and will demonstrate how on FAT16/32 in a future video via a different technique.
@arrax_s2 жыл бұрын
self promo 💀
@cahesaku2 жыл бұрын
it's possible in android too
@SquooshyShark1000 Жыл бұрын
self promo 💀
@I.____.....__...__ Жыл бұрын
@@arrax_s So I guess he should just keep a secret instead? 🙄
@arrax_s Жыл бұрын
@@I.____.....__...__ its a joke
@AJMansfield12 жыл бұрын
Under linux, the behavior of . and .. files is a lot more interesting because filesystem links are far more common, and paths that traverse them can't simply be normalized by deleting a `..` and the element before it.
@Nebulilac2 жыл бұрын
God these videos are so entertaining, i love seeing how bad you can confuse windows! Thanks for the good vid as usual ♥
@MeowieGamer2 жыл бұрын
Personally, I like the idea of flytech making videos about messing with windows and linux. especially because there really aren't any channels that try messing with linux.
@MeowieGamer2 жыл бұрын
@Octopus I said “the idea”
@SkyTheHusky Жыл бұрын
I love how Fly creates a Con folder like it's nothing
@terrawolf2 жыл бұрын
and you still are at just 100k? man,you put lotsa effort into these videos!
@MikeyMandFluffyMainProductions2 жыл бұрын
Yeah he deserves like 10M subs
@mifffalden92252 жыл бұрын
I wonder what would happen if, with only the long name modified, you attempted to access the folder via its short name, like "E:\CONTAI~1" for "E:\Con/ainer"
@JohnDlugosz Жыл бұрын
In Windows, that works. In fact, it's the preferred remedy for dealing with a funny file name. In later years, though, Short Names are turned off for NTFS. They are always there for FAT, but you'll need to type it out exactly and in full and not rely on wildcards or completion.
@xxlarrytfvwxx9531 Жыл бұрын
So that's why my script broke!😮
@ashishsingh46932 жыл бұрын
First of all thanks youtube for recommending this channel to me, and thanks sir for making such a great informative content I bing watch your all videos.. I love how you edit your videos..
@Foxy_AR Жыл бұрын
7:08 “Unspecified error” explorer having no idea what is going on
@theairispure4314 Жыл бұрын
10:59 - Although it shows 4,194,304KB in explorer, the actual value being shown is 4,294,967,295B. Keep in mind: the real size is 28B. Milestones: B = Bytes KB = Kilobytes MB = Megabytes GB = Gigabytes TB = Terabytes PB = Petabytes
@milestailsprower4555 Жыл бұрын
Funfact = 4294.967295MB = 4294967295B
@75rxREDSTONE2 жыл бұрын
The first person to know how to make restricted characters from mac, windows, linux
@aashd92452 жыл бұрын
PartedMagic
@andzejkopytko66942 жыл бұрын
Great video as always! :) Nice ending.
@furthersecrets2 жыл бұрын
Oh this is the best channel for showing and teaching weird pc stuffs or whatever!!! Ur the best!!! It really breaks windows lol!
@Barrelopds892 жыл бұрын
Yay, a new video from our favorite tech youtuber
@backjump2 жыл бұрын
Love watching your videos dude! 🙂💜
@FlyTechVideos2 жыл бұрын
💜
@Grefuzzle2 жыл бұрын
this is probably my favorite tech channel!
@benjathje02 жыл бұрын
This channel is the only one I have full notifications for
@r4k0002 жыл бұрын
The reason why you have to pipe command like this to "sudo" is that '>' gets interpreted by the shell itself. Detailed: your shell interprets that redirection, and prepares a pipe for "sudo", but it (shell) is not privileged, and thus the open() syscall fails with EACCES (permission denied). You can use "dd if= of=" to avoid this. P.S. "dd" has "status=progress" flag that shows some kind of progressbar, but "pv" provides more progressbarish progressbar P.S.S. Would you make the videos like this about Linux?
@ExceedingRectified2 жыл бұрын
You should do a video about hard linking directories in Linux, since that's one of the things Linux doesn't like to let you do
@NoNameBAM2 жыл бұрын
You can use mounts or even bind mounts instead.
@UsuallyLime2 жыл бұрын
Very interesting and creative ways to confuse Windows, good job!
@spacefarer60482 жыл бұрын
Haha, showed this to my brother who worked on Explorer and other aspects for Microsoft, he literally just shrugged and said "Windows."
@donk2c2 жыл бұрын
This is the first time I’ve participated in a flytech premiere!
@GHXST6-92 жыл бұрын
same...
@aashd92452 жыл бұрын
What if the partition is compressed? Does that allow for a greater total file size? (Greater than tb and into petabytes) Like zip bomb but instead with a compressed partition.
@FlyTechVideos2 жыл бұрын
Does fat32 support compression? For NTFS, file size trickery doesn't work (I tried)
@channel111212 жыл бұрын
@@FlyTechVideos I guess they mean using the compression algorithm to create 'fake' size, rather than just filesize attribute
@robbie15282 жыл бұрын
What happens when you extract too many big zip/rar files? I'm interested, but my pc would go boom if I do that.
@FlyTechVideos2 жыл бұрын
Well, you'd fill your disk... that's all
@gapp81632 жыл бұрын
Remember when he posted very frequently? Now he isn't posting for months
@francescoreale84522 жыл бұрын
Maybe he died? I hope not
@gapp81632 жыл бұрын
@@francescoreale8452 Why you think so
@francescoreale84522 жыл бұрын
@@gapp8163 i don't know i said maybe he died. he is not posting video and this worries me
@dimejammy76912 жыл бұрын
maybe hes taking a break??????)??
@Burgishot_2 жыл бұрын
@@francescoreale8452 he's maybe taking a break or making videos
@GoldenArbiter01 Жыл бұрын
... By 'changing' the file size, would you be able to get around things like automatic virus scanners on cloud hosted file/share servers? For instance, I think google drive can only scan files that are 4gb large...
@youraveragebfdifan2 жыл бұрын
I call this channel enderman advanced
@clovervidproductions2 жыл бұрын
FlyTech is a very smart programmer.
@trofl2 жыл бұрын
For the files with faked sizes, do they get fixed as soon as the file is touched? Can you still open them in Notepad (and do you get a warning about opening a large file)?
@FlyTechVideos2 жыл бұрын
You can't "touch" the file, as any attempt of reading them inevitably fails
@Cart14166 ай бұрын
what if you do instruc\tions with a backslash
@gammaboost Жыл бұрын
What happens if you try this with other filesystems, like ExFat, APFS, or ext4? And how does NTFS reject these invalid filenames?
@Sparkette2 жыл бұрын
Did you intentionally name it "container" and replace the "t" so it would say "con" before the slash?
@FlyTechVideos2 жыл бұрын
No, i only noticed that when i was far within recording
@Sparkette2 жыл бұрын
@@FlyTechVideos Did you realize before you tried creating the folder and got the error?
@foxneko44652 жыл бұрын
help me :( Im having a problem with my PC. I ended task windows explorer and now I do not see the icons on the bottom
@jasedxyz2 жыл бұрын
7:42 I think the reason only the short names appear is Windows detects "Oh, this file name appears to be corrupt/tampered with. Lets show the short name *and hope the corrupted part isn't in the short name*"
@FlyTechVideos2 жыл бұрын
Ok, but when the long name was corrupted and the short one wasn't, it still showed the long one.
@jasedxyz2 жыл бұрын
@@FlyTechVideos makes sense
@k2ttycat2572 жыл бұрын
440 TB compressed into 62 MB is quite impressive!
@omegahaxors9-112 жыл бұрын
We're really living in the future
@nyanpasu642 жыл бұрын
1 GB flag drives are generally old and slower than newer drives. But it's faster to scan the whole contents including other partitions I guess.
@FlyTechVideos2 жыл бұрын
That's because such data is stored in a central place, whereas the file sum needs to be computed by checking every single file
@thegamerreborn555672 жыл бұрын
FlyTech: *tries to make a folder named con* FlyTech: ... Ah, right... I forgot con is a banned word
@parkpakh7775 Жыл бұрын
Could it have been that part of the stuff that was happening with Con/ainer was caused by it thinking there was a folder named con?
@FlyTechVideos Жыл бұрын
Yes, indeed
@JohnDlugosz Жыл бұрын
Hmm... my experience with similar experiments is that the \\? approach let you have any character except "\" and (for NTFS) ":". But, I was calling OpenFile API directly, not using GUI programs, and it was an NTFS-forrmatted RAM disk. I don't recall which version of Windows at the time. You can actually use ":" in a filename in NTFS, but it just doesn't do what you think. It's a delimiter and what follows is taken as the name of an alternate data stream. People and programs have used ":" in filenames completely unaware that it was doing this; it read what it wrote under the same name, so nobody cared enough to treat it as a bug.
@siddharthamondal43462 жыл бұрын
Which field of specialization is this in CS? I wanna learn all these. Where to learn them?
@FlyTechVideos2 жыл бұрын
This is not really a field... It's just me experimenting with stuff as I either randomly discover myself or get told by someone else
@Gramini2 жыл бұрын
If that's even a field, I'd guess it's something like forensics. Or to an extend "data recovery"
@Gamingking-wt7zg2 жыл бұрын
oh come on Idk about hex stuff it's so complicated, and I'm scared if I wipe my entire hard drive, can u do step by step, also do I have to do all the steps or the step at 9:30
@drippymissouri Жыл бұрын
Can wait to create a Fite on my compute
@defaultuser1.02 жыл бұрын
A legend went to buy some milk
@Harlow.2 жыл бұрын
coo/ video fly/ech!
@Kreskowy Жыл бұрын
How Did You Make Those Subtitles, The KZbin Ones
@RealUniCat2 жыл бұрын
All file formats start with the . (dot) symbol, but Windows doesn't allow us to use the . (dot) symbol in file names, so how does that work? and also, you can't use / (slash) in file names because the path uses that. for example: *C:/Windows/System32* and if the file name bypassed to have / (slash) in it, you can't delete it but I think you can find more in this video.
@FlyTechVideos2 жыл бұрын
> Windows doesn't allow us to use the . (dot) symbol in file names It does ... it definitely does. Never seen all the files ending in .txt, .exe, .png, .jpg and so on? > you can't use / (slash) in file names because the path uses that I know, I just wanted to push beyond that limitation and do it anyway :)
@MrJay_0xJ2 жыл бұрын
can we stick virus into file system without victim understand that? it opens automaticlly on OS?
@WHnoNmHz9 ай бұрын
5:48 music?
@FlyTechVideos9 ай бұрын
Description
@WHnoNmHz9 ай бұрын
@@FlyTechVideos thanks 🙂
@Lampe2020 Жыл бұрын
I think the forward slash only broke it for Linux, as / is the path separator in Linux but just *a character* in Window$. For Window$ only the backslash should make problems, which in turn isn't a problem for Linux as it has no meaning in the context of file paths.
@Manny732112 жыл бұрын
8:44: folders with a . at the beginning are hidden folders. did you remember to enable show hidden folders? (nevermind, explorer doesn't show the original . and .. either lol
@Gramini2 жыл бұрын
In Windows, files are not hidden when prefixed with a dot. Not with Explorer not not in pwsh/cmd. On his Host, "Show hidden files" was enabled in the file manager (I think that was nemo).
@Paolog_ Жыл бұрын
I have 2 questions: What Linux distro do you use? What is the Hex editor for Linux?
@FlyTechVideos Жыл бұрын
- Pop OS - GHex
@Paolog_ Жыл бұрын
@@FlyTechVideos thx very
@CNWPlayer2 жыл бұрын
My tech is defenitely flying!
@LordSzo Жыл бұрын
Legends will say: You can create a file named Con in Windows now. Only now.
@someone42292 жыл бұрын
Ok but what happens if you delete the Bsod and trigger it?
@sleepywithspeed2 жыл бұрын
Very cool! I do have a question, why do you choose VMware over Virtualbox? I know Virtualbox is free so i'm just wondering. Thank you!
@jacobeii2 жыл бұрын
I'm not very familiar with virtual machines so I had I lot of trouble with hyper v and virtual box but I installed VMware and suddenly everything was working without errors
@FlyTechVideos2 жыл бұрын
I chose vmware because it works a lot more smoothly than virtualbox for me
@Xnoob5452 жыл бұрын
A person gave a VMware key to me so I have the pro
@zeenxdownz Жыл бұрын
Edit: vmware Is free, pro is paid. Vmware is extremely fast, with more features such as connecting a real device to your vm, not main machine. VirtualBox can run more operating systems tho.
@AJMansfield12 жыл бұрын
In the first half, before you edited the short names, would it have been possible to use the intact short names to access those files and folders? IIRC windows is normally perfectly happy to let you refer to a file by its short name.
@FlyTechVideos2 жыл бұрын
I tried, and it failed with the exact same message. Though I must admit that in retrospect I am not 100% sure that I used the correct file name, so I'm very sorry for that...
@48-_2 жыл бұрын
I watched you on a tv. Now on a smartphone And u have 100k!!
@lukasschwab80112 жыл бұрын
I don't know how known this trick is but I feel like you could do some very malicious stuff with that. It's not dangerous in itself but it's unexpected behavior in a very basic part of the OS.
@TDGalea2 жыл бұрын
I see you've already seen a comment on why "sudo cat file >/dev/sdX" fails. If you want an ezpz fix to this rather than having to echo and pipe to a root shell, just "sudo -i" to get into a root shell. In here you won't need any more sudo, and your redirects will also be root, hence fixing your issue. There are many other ways to enter root shells other than "sudo -i", but this is my preferred.
@-_lIl_- Жыл бұрын
the reason why you couldnt go into Con/ainer is because Windows thinks that it is two different folders, *Con* and ainer, but Con is a forbidden filename, which might be why it didnt work.
@techtriggr2 жыл бұрын
finally you made a huge video. i want more vids like this 10+minutes
@FlyTechVideos2 жыл бұрын
Well, it's not always that easy. Though I'll keep it in mind, thanks!
@techtriggr2 жыл бұрын
@@FlyTechVideos you're welcome! Just try am not forcing u
@generallyunimportant2 жыл бұрын
couldn't you access folders with these names using the shortnames in windows
@SomeLegoMan2 жыл бұрын
Could we do the reverse for file sizes, making filles smaller faking Windows about how much free space is on the partition and see what happen when it exceeds the drives free space?
@FlyTechVideos2 жыл бұрын
Yes, though the partition free space is unaffected as you can see in the video.
@SomeLegoMan2 жыл бұрын
@@FlyTechVideos ok, thanks
@stephaniethebatter79752 жыл бұрын
Wouldn't it be cool if there was a file system that had an escape character when it comes to filenames? And that this escape character would allow you to use previously illegal character in filenames? Or even illegal filenames such as "con" or "aux"? Then I'd be putting question marks in filenames that were questions and use double quotation marks for titles and such.
@I.____.....__...__ Жыл бұрын
IKR‽ The worst part is that it was already possible in *nix systems by the time DOS was being finalized, but they still chose to use wildcard characters and quotes like that instead fo escaping, so now, our filenames are limited. You can use single-quotes in place of double-quotes, but there's no way to do questions unless you resort to backwards or upside down question-marks. ⁉ ¿ ⁈ ⁇ 🤦 - _Microsoft: doing everything wrong since 1975._
@shroomer3867 Жыл бұрын
@@I.____.....__...__ Spanish wins then ¿
@Pawlo3702 жыл бұрын
can you say how did you make these subtitles for other languages?
@FlyTechVideos2 жыл бұрын
you can do it in youtube studio in the subtitles menu
@MrJay_0xJ2 жыл бұрын
hi flytech Im a watcher video of you today I've question. how hacker stick the virus as exe or vb and etc... to the hex of file system usb and it will run on one hour later for example, when user stick usb into computer, virus will run automatic on victim computer. is it possible?
@jasiu28052 жыл бұрын
why are you gone? its been almost half a year... please return :(
@FlyTechVideos2 жыл бұрын
I'll be back
@azaleadev2 жыл бұрын
@@FlyTechVideos when?
@LOL-mb9kn2 жыл бұрын
Wtf
@LOL-mb9kn2 жыл бұрын
They didn’t upload very freaking long time
@mrsus1102 жыл бұрын
@@LOL-mb9kn imagine being mad cuz someone didn’t upload 😂
@renakunisaki2 жыл бұрын
Reminds me of Windows 3.1 when a dumb app managed to create a file with a space in its name. Nothing could touch it. I actually fixed it by using a hex editor on the drive itself to change the name.
@tt_thoma2 жыл бұрын
Wich emulation system are you using ? And also what if you use a backslash on the slash to like cancel the character
@shadesoftime2 жыл бұрын
That's not emulation, that's a virtual machine. It's vastly different. And the backslash thing wouldn't work because it doesn't let you have any kind of / in your file names
@tt_thoma2 жыл бұрын
@@shadesoftime yeah, virtual machines are emulators and emulates a processor, a graphic card, a monitor, etc What do you call emulators ?
@tt_thoma2 жыл бұрын
@@shadesoftime in a lot of languages (bash included), the backslash cancel the character after it Example: $ cd Folder\ with\ spaces
@generallyunimportant2 жыл бұрын
@@tt_thoma bash is a shell, not a language.
@tt_thoma2 жыл бұрын
@@generallyunimportant bash has its own programming language called bash like MS-DOS with batch
@levkush2 жыл бұрын
What linux distro and graphic interface do you use?
@NotteShock2 жыл бұрын
i think the distro is pop!_os
@Gramini2 жыл бұрын
The file manager seems to be Nemo, and from the style I'd say it's Gnome.
@ThePolishOrange2 жыл бұрын
Fun Fact: in msdos, folders/files werent allowed to have spaces, neither „”. So the names in DOS were FOLDE~1
@LKComputes Жыл бұрын
There really is nothing like fitting 1,571,428,571,428,571% the amount of data possible in a 64MB partition.
@-..._-.2 жыл бұрын
what distro do you use
@rostyc2 жыл бұрын
What happens if you open any of the files, at the end?
@FlyTechVideos2 жыл бұрын
It'd say it can't open it (read error), that's all
@omegahaxors9-112 жыл бұрын
It's always entertaining when things half-work but it seems that invalid names are completely and utterly broken.
@lupinoh2 жыл бұрын
Where are u :(
@ScottVordem2 жыл бұрын
I am curious about something. Windows has the ability to create Symbolic links which are more powerful than a regular shortcut, but they cannot be made through the context menu. They can only be made through PowerShell (I am not sure about CMD) with the mklink command. add /d to create a "folder". To give you an idea of their power, you know Steam's "sourcemods" folder? You cannot change that folder location; Steam will always look for it on the drive it is installed on. I wanted to change its location since I have a MVMe drive dedicated for games, I wanted it there. I used a symbolic link to "redirect" Steam to a directory on that drive, instead of its normal location. There is still a "sourcemods" folder there, but it is not really a folder hehe, Steam thinks it is. Horrible explanation aside lol, I am curious to see what you can do with those FlyTech since you are much more knowledgeable. Can you use this to access forbidden directories? I'm mainly curious on how these would work on different file structures, like a symbolic link on a NTFS drive that leads to a FAT32 drive, ETC. I would try myself, but I do not want to destroy my system lol.
@dan28002 жыл бұрын
zip bombs be like so we have 113k files on 64MB partion but we unpack them to 440TB
@atyrop2 жыл бұрын
12:11 POV:Mom's photographys
@𰻝2 жыл бұрын
Why can't you edit /dev/sdc1 directly?
@sakitoshi2 жыл бұрын
dunno about linux, but on windows you can use HxD (or any other hex editor with such capability) to edit the contents of a drive.
@Gramini2 жыл бұрын
Should be possible.
@MCSERVER547 Жыл бұрын
The . and .. files (or folders) don't show.
@andreisurubaru63892 жыл бұрын
Download link to the linux terminal and file explorer please?
@FlyTechVideos2 жыл бұрын
Terminal is gnome-terminal, file explorer is Nautilus
@smajl2 жыл бұрын
What distro are you using?
@FlyTechVideos2 жыл бұрын
Pop OS
@serenem1st2 жыл бұрын
When I was watching the bytes changing i of remembered that the valorant game shows in control panel as 3tb when in reality its somewhere 20gb
@LetsplayNik2 жыл бұрын
What is that for a Terminal?
@Gramini2 жыл бұрын
Based on the overall look of the system I assume that's Gnome Terminal.
@jennyfranco87282 жыл бұрын
hey man, can you do a video about a new virus called hhjk (ransomwere) it effect my pc and turned all of my files to a hhjk format
@jennyfranco87282 жыл бұрын
use a virtual machin
@YeahhColix2 жыл бұрын
bro doesnt even give the download link
@HugoNikanor Жыл бұрын
`sudo cat file > /dev/sda1` fails since only `cat` is ran as root, while the redirection, and the actual writing is done as the user owning the shell (you).
@lior_haddad2 жыл бұрын
Pure. Magic.
@techtriggr2 жыл бұрын
yes it is
@srhotty2 жыл бұрын
We are 1 step above windows This man is 40 parallel universes infront of windows
@sollybrown8217 Жыл бұрын
Can u escape characters on windows?
@FlyTechVideos Жыл бұрын
Escape how? Surely not within file paths, same goes for Linux btw
@Terminated6322 жыл бұрын
Did you know that you can make a fake error message by a .txt file? Well the command is x=msgbox ("your message here", button+icon, "your title here")
@Terminated6322 жыл бұрын
You need to make it a .vbs file
@aYTcommenter2 жыл бұрын
Lmao that is very easy almost everybody knows
@Tearnalte2 жыл бұрын
12:03 linus tech tips be like
@moneqtemnome66782 жыл бұрын
i wish i could use / .. and . on linux for naming, and other caracters, it would be useful when downloading images massivly
@AJMansfield12 жыл бұрын
What about modifying the allocation tables so that different files share blocks and data with each other? Bet you could make the disk defragmenter properly choke if you did that.
@FlyTechVideos2 жыл бұрын
I suppose that this is very much possible, I'll see if I can try stuff with this. Thanks!
@ricardosantos25992 жыл бұрын
440 TB why did is 62 MB of ram for action
@brighthades59682 жыл бұрын
Idea: removing termination null bytes from folder/file names
@feefre2 жыл бұрын
But, can be used to hide very questionable files?
@FlyTechVideos2 жыл бұрын
yes, but it is still on disk (forensic tools can easily find it) and accessing it is pretty hard as you can see.
@aashd92452 жыл бұрын
A better way (not encouraging illegal acts) would be to use a separate USB and hide it (also delete thumbs.db etc.)
@nomms2 жыл бұрын
Just encrypt your files if you need them private. If you are worried about someone asking what the encrypted file is just use some steganography tool to hide it. The term for hiding a file inside another file is steganography.
@aashd92452 жыл бұрын
FlyTech's video on steganography: kzbin.info/www/bejne/iYKtgZyihJmlars
@therealvbw2 жыл бұрын
HxD hex editor supports opening a drive directly as if it were a file