{"id":184305,"date":"2026-11-18T03:36:34","date_gmt":"2026-11-18T01:36:34","guid":{"rendered":"https:\/\/prohoster.info\/blog\/news\/realizacziya-samozagruzhayushhihsya-zip-arhivov"},"modified":"2026-11-18T03:36:38","modified_gmt":"2026-11-18T01:36:38","slug":"implementing-self-loading-zip-archives","status":"publish","type":"post","link":"https:\/\/prohoster.info\/lv\/blog\/news\/implementing-self-loading-zip-archives","title":{"rendered":"Pa\u0161izg\u0101jo\u0161u ZIP arh\u012bvu ievie\u0161ana","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>Deivids Oberhollecer (David Oberhollenzer), squashfs-tools-ng r\u012bku autora, ierosin\u0101ja pa\u0161izg\u0101d\u0101jamu ZIP arh\u012bvu konceptu. Projekts ir pa\u0161izg\u0101d\u0101jamu ZIP arh\u012bvu meh\u0101nisma adapt\u0101cija, kas \u013cauj izmantot ZIP failu k\u0101 s\u0101kn\u0113\u0161anas att\u0113lu, neprasot atsevi\u0161\u0137u izpako\u0161anu, lai iel\u0101d\u0113tu sist\u0113mu, kas atrodas \u0161aj\u0101 att\u0113l\u0101. \u0160aj\u0101 gad\u012bjum\u0101 att\u0113ls joproj\u0101m ir pilnv\u0113rt\u012bgs ZIP arh\u012bvs, kas iziet p\u0101rbaudi ar komandu \"unzip -t\".      <\/p>\n<p>At\u0161\u0137ir\u012bb\u0101 no TAR vai CPIO form\u0101tiem, ZIP form\u0101t\u0101 s\u0101kum\u0101 tiek ievietots tikai neliels virsraksts, bet visu failu un to nob\u012b\u017eu saturs tiek saglab\u0101ts faila beig\u0101s, kas \u013cauj ievietot nejau\u0161us datus gandr\u012bz pa\u0161\u0101 arh\u012bva s\u0101kum\u0101. Pied\u0101v\u0101taj\u0101 projekt\u0101 ZIP arh\u012bva virsraksta parametri ir izv\u0113l\u0113ti t\u0101, ka tos var izmantot k\u0101 MBR boot sektoru.    <\/p>\n<p>Pirmie arh\u012bva \"PK\\03\\04\" baitus x86 procesors interpret\u0113 k\u0101 ma\u0161\u012bnkodu, kas atbilst 16 bitu i8086 procesora instrukcij\u0101m \"push %ax; dec %bx; add (%si),%ax\". P\u0113c tam seko galvenes da\u013ca ar versiju, karogiem, saspie\u0161anas metodi un modifik\u0101cijas laiku, kuru var piel\u0101got t\u0101, lai izpildoties saturs atbilstu nekait\u012bg\u0101m instrukcij\u0101m un komandu beznosac\u012bjuma p\u0101rejai jmp, kas nodod kontroli galvenajam iel\u0101d\u0113t\u0101ja kodam.     <\/p>\n<p>ZIP fail\u0101 ar\u012b tiek nor\u0101d\u012bta paraksts \"1BADB002\", ko iel\u0101d\u0113t\u0101ji, kas atbalsta Multiboot, interpret\u0113 k\u0101 sader\u012bga s\u0101kn\u0113\u0161anas att\u0113la (kodola) paz\u012bmi. Pateicoties tam, ZIP att\u0113lu var iel\u0101d\u0113t, izmantojot GRUB vai nor\u0101dot opciju \"-kernel\" QEMU. \u0160aj\u0101 gad\u012bjum\u0101 iel\u0101d\u0113t\u0101js izvelk nesaspiestu bin\u0101ro failu, ievieto to atmi\u0146\u0101 saska\u0146\u0101 ar galveni un nodod kontroli 32 bitu aizsarg\u0101taj\u0101 re\u017e\u012bm\u0101. ZIP att\u0113lu ar\u012b var ierakst\u012bt pirmaj\u0101 ciet\u0101 diska sektor\u0101, un \u0161aj\u0101 gad\u012bjum\u0101 pirmie 512 baiti tiek uztverti k\u0101 klasisk\u0101 MBR.     <\/p>\n<p>Visu s\u0101kotn\u0113jo iel\u0101des kodu, tostarp ZIP un Multiboot virsrakstus, GDT tabulu, arh\u012bva satura iel\u0101des lo\u0123iku un p\u0101reju uz aizsarg\u0101to re\u017e\u012bmu, izdev\u0101s iek\u013caut 817 baitos. Faili ZIP arh\u012bv\u0101 ir ievietoti bez saspie\u0161anas (metodes lauk\u0101 ir nor\u0101d\u012bts 0), t\u0101p\u0113c p\u0113c ZIP arh\u012bva iel\u0101des atmi\u0146\u0101, failiem, kas taj\u0101 atrodas, var piek\u013c\u016bt tie\u0161i, izmantojot ZIP arh\u012bva beig\u0101s eso\u0161o indeksu (Central Directory), lai simul\u0113tu visvienk\u0101r\u0161\u0101ko failu sist\u0113mu.<br \/>\n<br \/>Avots: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/www.opennet.ru\/opennews\/art.shtml?num=66709\">opennet.lv<\/a> <\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0414\u0430\u0432\u0438\u0434 \u041e\u0431\u0435\u0440\u0445\u043e\u043b\u043b\u0435\u043d\u0446\u0435\u0440 (David Oberhollenzer), \u0430\u0432\u0442\u043e\u0440 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f squashfs-tools-ng, \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044e \u0441\u0430\u043c\u043e\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0449\u0438\u0445\u0441\u044f ZIP-\u0430\u0440\u0445\u0438\u0432\u043e\u0432. \u041f\u0440\u043e\u0435\u043a\u0442 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0430\u0434\u0430\u043f\u0442\u0430\u0446\u0438\u044e \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0430 \u0441\u0430\u043c\u043e\u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u044e\u0449\u0438\u0445\u0441\u044f ZIP-\u0430\u0440\u0445\u0438\u0432\u043e\u0432 \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f ZIP-\u0444\u0430\u0439\u043b\u0430 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u043e\u0433\u043e \u043e\u0431\u0440\u0430\u0437\u0430, \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u044e\u0449\u0435\u0433\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u043a\u0438 \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0440\u0430\u0437\u043c\u0435\u0449\u0451\u043d\u043d\u043e\u0439 \u0432 \u044d\u0442\u043e\u043c \u043e\u0431\u0440\u0430\u0437\u0435. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u0431\u0440\u0430\u0437 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u043c ZIP-\u0430\u0440\u0445\u0438\u0432\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 &#171;unzip -t&#187;. \u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u0444\u043e\u0440\u043c\u0430\u0442\u043e\u0432 TAR \u0438\u043b\u0438 [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":10,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[702],"tags":[],"class_list":["post-184305","post","type-post","status-publish","format-standard","hentry","category-news"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.5.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0414\u0430\u0432\u0438\u0434 \u041e\u0431\u0435\u0440\u0445\u043e\u043b\u043b\u0435\u043d\u0446\u0435\u0440 (David Oberhollenzer), \u0430\u0432\u0442\u043e\u0440 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f squashfs-tools-ng, \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044e \u0441\u0430\u043c\u043e\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0449\u0438\u0445\u0441\u044f ZIP-\u0430\u0440\u0445\u0438\u0432\u043e\u0432.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Alexander Kovalev\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/lv\/blog\/news\/implementing-self-loading-zip-archives\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.5.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"lv_LV\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u0430\u043c\u043e\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0449\u0438\u0445\u0441\u044f ZIP-\u0430\u0440\u0445\u0438\u0432\u043e\u0432 | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u0414\u0430\u0432\u0438\u0434 \u041e\u0431\u0435\u0440\u0445\u043e\u043b\u043b\u0435\u043d\u0446\u0435\u0440 (David Oberhollenzer), \u0430\u0432\u0442\u043e\u0440 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f squashfs-tools-ng, \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044e \u0441\u0430\u043c\u043e\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0449\u0438\u0445\u0441\u044f ZIP-\u0430\u0440\u0445\u0438\u0432\u043e\u0432.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/lv\/blog\/news\/implementing-self-loading-zip-archives\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2026-11-18T01:36:34+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-11-18T01:36:38+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Pa\u0161izl\u0101d\u0113jo\u0161u ZIP arh\u012bvu \u012bsteno\u0161ana | ProHoster","description":"Deivids Oberholcencers (David Oberhollenzer), squashfs-tools-ng r\u012bku komplekta autors, pied\u0101v\u0101ja pa\u0161izl\u0101d\u0113jo\u0161u ZIP arh\u012bvu koncepciju.","canonical_url":"https:\/\/prohoster.info\/lv\/blog\/news\/implementing-self-loading-zip-archives","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"lv_LV","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u0430\u043c\u043e\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0449\u0438\u0445\u0441\u044f ZIP-\u0430\u0440\u0445\u0438\u0432\u043e\u0432 | ProHoster","og:description":"\u0414\u0430\u0432\u0438\u0434 \u041e\u0431\u0435\u0440\u0445\u043e\u043b\u043b\u0435\u043d\u0446\u0435\u0440 (David Oberhollenzer), \u0430\u0432\u0442\u043e\u0440 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f squashfs-tools-ng, \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044e \u0441\u0430\u043c\u043e\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0449\u0438\u0445\u0441\u044f ZIP-\u0430\u0440\u0445\u0438\u0432\u043e\u0432.","og:url":"https:\/\/prohoster.info\/lv\/blog\/news\/implementing-self-loading-zip-archives","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2026-11-18T01:36:34+00:00","article:modified_time":"2026-11-18T01:36:38+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":[],"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/posts\/184305","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/comments?post=184305"}],"version-history":[{"count":1,"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/posts\/184305\/revisions"}],"predecessor-version":[{"id":184306,"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/posts\/184305\/revisions\/184306"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/media?parent=184305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/categories?post=184305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/tags?post=184305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}