PCスペック

備忘録。 マザーボード ASUS PRIME Z390-A (Intel Z390 搭載 LGA1151 対応) ¥ 21,999 CPU Intel Core i5 9600 ¥ 26,921 GPU ASUS TURBO-RTX2070S-8G-EVO (ストレート排気モデル) ¥ 68,147 メモリ Crucial by Micron W4U2666CM-16G (PC4-21300(DDR4-2666) …

WSL2でCUDAを使う

備忘録参考: qiita.comやったこと TPMを有効化 (BIOSで、Discrete TPM -> Firmware TPMに変更) Windows 11 (Insider Preview)にアップグレード 最新のドライバインストール Ubuntu (20.04)にcuda-toolkit-11-4 のインストール この時点で、こんな感じのエラ…

picoCTF 2021 Crypto (5) Mini RSA

Mini RSA | 70 points Tags: AUTHOR: SARADescription What happens if you have a small exponent? There is a twist though, we padded the plaintext so that (M ** e) is just barely larger than N. Let's decrypt this: ciphertext # cat ciphertext N:…

picoCTF 2021 General Skills

ctf

Obedient Cat Description This file has a flag in plain sight (aka "in-the-clear"). Download flag. # cat flag picoCTF{s4n1ty_v3r1f13d_f28ac910}"sanity verified" Python Wrangling Description Python scripts are invoked kind of like programs i…

picoCTF 2021 Crypto (4) New Caesar

New Caesar | 60 points Tags: AUTHOR: MADSTACKSDescription We found a brand new type of encryption, can you break the secret code? (Wrap with picoCTF{}) lkmjkemjmkiekeijiiigljlhilihliikiliginliljimiklligljiflhiniiiniiihlhilimlhijil new_caes…

picoCTF 2021 Crypto (3) Easy Peasy

ctf

Easy Peasy | 40 points Tags: AUTHOR: MADSTACKSDescription A one-time pad is unbreakable, but can you manage to recover the flag? (Wrap with picoCTF{}) nc mercury.picoctf.net 58913 otp.pyotp.py #!/usr/bin/python3 -u import os.path KEY_FILE …

picoCTF 2021 Crypto (2) Mind your Ps and Qs

ctf

Mind your Ps and Qs | 20 points Tags: AUTHOR: SARA Description In RSA, a small e value can be problematic, but what about N? Can you decrypt this? values# cat values Decrypt my super sick RSA: c: 8430448976638478414763197116397728613903293…

picoCTF 2021 Crypto (1)

暇つぶしにpicoCTF 2021を解いていく。Mod 26 | 10 points Tags: AUTHOR: PANDUDescription Cryptography can be easy, do you know what ROT13 is? cvpbPGS{arkg_gvzr_V'yy_gel_2_ebhaqf_bs_ebg13_nSkgmDJE} # cat 01.txt cvpbPGS{arkg_gvzr_V'yy_gel_2_ebh…

JupyterLab on Docker on Ubuntu 20.04 on WSL2

Docker Desktop for Windowsのインストールまでは前回。 kanekkie.hatenablog.comanaconda3コンテナの入手。 hub.docker.com $ docker pull continuumio/anaconda3 Using default tag: latest latest: Pulling from continuumio/anaconda3 68ced04f60ab: Pul…

WSL2とDocker

Windows 10のMay 2020 Updateが来たのでWSL2に挑戦。 新たな環境を作るということで、Ubuntu 20.04 on WSL2を用意。 このページあたりを参考にしてやればすぐできる。 qiita.com 次はDocker。Docker Desktop for Windowsをインストール。 Docker Hub "Enable…

SSLErrorではまったおはなし (1)

HTTPSサイトにアクセスしたらエラーが出た。 import requests url = 'https://www.eigeki.com/' r = requests.get(url) Traceback (most recent call last): File "/home/kanekkie/anaconda3/lib/python3.7/site-packages/urllib3/contrib/pyopenssl.py", li…

picoCTF 2018 (2)

ctf

grep 2 上の方の"shell"っていうリンクからサーバには入れるらしい。 $ cd /problems/grep-2_3_826f886f547acb8a9c3fccb030e8168d/files $ ls files0 files1 files2 files3 file4 files5 files6 files7 files8 files9ディレクトリがいっぱいあるのでとりあえ…

picoCTF 2018

ctf

久しぶりにCTFをしてみる。 https://2018game.picoctf.comflagは、picoCTF{FLAG} Forensics Warmup 1 flag.zipファイルが配られる。 $ unzip flag.zip Archive: flag.zip inflating: flag.jpg $ file flag.jpg flag.jpg: JPEG image data, JFIF standard 1.0…

ゲストOSにsshで入る (Virtualbox)

とくにWindows上の操作を忘れないようにメモ。 Virtualboxの設定 [グローバルツール] > [ホストネットワークマネージャー] からホストオンリーアダプタを作成 仮想マシンの設定でネットワークにアダプタを追加(仮想マシンが起動してると設定できない) 仮想…

LDA

LDAをためしてみる $ pip install gensim pyldavisgensimでトピックを生成し、LDAvisで可視化 データセットはnltk.reuters jypyter notebookで実行 from nltk.corpus import reuters, stopwords from gensim.utils import lemmatize import re from gensim.c…

Ubuntu ユーザ名の変更

$ su - # usermod -l NEW_USER OLD_USER # cd /home # mv OLD_USER NEW_USER # cp -a /etc/passwd /etc/passwd.bk # vi /etc/passwd # cp -a /etc/group /etc/group.bk # vi /etc/groupviで以下のコマンドで置換 ※ほかの部分でひっかかるとヤバい! :1,$s/OL…

Virtualbox HDサイズの変更

20GBにする例 Windowsのコマンドプロンプトから >cd "C:\Program Files\Oracle\VirtualBox" >VBoxManage.exe modifyhd PATH\TO\ubuntu1804.vdi --resize 20480※Virtualboxマネージャの[グローバルツール] > [仮想メディアマネージャー] からGUIでも変更でき…

Ubuntu 18.04 メモ

前提 Oracle Virtualbox上にインストール www.oracle.com Ubuntu イメージ ISOをダウンロードしてインストール www.ubuntulinux.jp Guest Additionsのインストール [デバイス] > [Guest Additions CDイメージの挿入] $ cd /media/[username]/VBox_GAs_x.xx.x…