Posts

Showing posts from November 19, 2018

how to mount img file (Virtually) WITHOUT loop or fuse or any loadable module in ubuntu 14.04 (running in...

Image
up vote 0 down vote favorite I am trying it from many years (yes years) to mount (plain-ext4-format) .img files in a ubuntu 14.04 running in c9.io without ability to load module or kernel tweak or fstab tweak (because it ignores fstab). i tried-: loop - (kernel don't know about loop devices or load it) fuse - (same) qemu-nbd - ( can't add/load nbd module) qemu-system-x86_64 - (booted ubuntu 14.04 instance successfully but damn slow even with -smp 8 (cpu-8) option, my host has cpu 8) user-mode-linux - ( i think it starts graphic mode, "i want text only mode!!!" i hope this is somethig i can get success with). so please tell me any non-priviledge and fully fake or Virtual but working method to mount a disk image file with read-write access. or is there any reverse mount function from qemu or similar. or an

警察法

Image
この記事は特に記述がない限り、日本国内の法令について解説しています。また最新の法令改正を反映していない場合があります。 ご自身が現実に遭遇した事件については法律関連の専門家にご相談ください。 免責事項もお読みください。 警察法 日本の法令 通称・略称 なし 法令番号 昭和29年法律第162号 効力 現行法 種類 行政法 主な内容 警察の組織・管理・運営 関連法令 警察官職務執行法 警察法施行令 警察法施行規則 条文リンク e-Gov法令検索 テンプレートを表示 警察法 (けいさつほう、昭和29年6月8日法律第162号)は、「個人の権利と自由を保護し、公共の安全と秩序を維持するため、民主的理念を基調とする警察の管理と運営を保障し、且つ、能率的にその任務を遂行するに足る警察の組織を定めること」(1条)を目的とする、日本の法律である。 1947年(昭和22年)に制定後、1954年(昭和29年)の全部改正により現在の法律となる。 改正前の警察法(昭和22年12月17日法律第196号)は、 旧警察法 (きゅうけいさつほう)ともいう。 全部改正によって、国家地方警察と自治体警察は廃止され、警察庁と都道府県警察が設置された。 目次 1 沿革 1.1 旧警察法の制定 1.2 旧警察法の改正 1.3 全面改正 2 1954年(昭和29年)警察法改正に伴う乱闘国会 3 脚注 4 参考文献 5 関連項目 6 外部リンク 沿革 旧警察法の制定 戦前の日本警察は、内務省警保局による中央集権体制で運営されていた。しかし、太平洋戦争(大東亜戦争)で日本が敗戦し、連合国軍の統治下に置かれると、GHQは日本の警察機構を天皇制の維持擁護を目的とした非民主的な警察体制であると断罪し、内務省の廃止を含めた全面的な見直しを要求してきた。 1947年(昭和22年)9月3日、内閣総理大臣片山哲が「公安庁設置法案」を軸とする「警察制度改組計画」を提出した。これに対する同月16日付のマッカーサー書簡の指示内容に基づき、政府は警察法案を起草した [1] 。同年12月17日、警察法(旧警察法)

Simple one time pad cipher

Image
up vote 1 down vote favorite I had this idea not to long ago on creating a secure chat for people who need to be not meddled with when talking (like whistleblowers, hackers, etc) talking to one of my friends about it he said I could use the One Time Pad Cipher, so I decided to write my own in Python. If you don't know what the one time pad is, in a nutshell it's a cipher that generates a key for you that is as long as the string you pass to it making it practically impossible to crack without the key itself. My cipher uses sqlite to store a database into memory to keep the keys unique, once the program is exited, the database is destroyed (theoretically). I would like someone to poke as many holes in this as possible, I would like to see if the string is possible to be cracked and would also like someone to break the d