發表文章

目前顯示的是 12月, 2018的文章

ALL CTF 筆記

ALL CTF: http://140.110.112.28 asciitohex: https://www.asciitohex.com/ 凱薩加解密: https://www.dcode.fr/caesar-cipher 其中 php md5 跟SHA1 的BUG 可以看這篇 : https://www.whitehatsec.com/blog/magic-hashes/ php://filter: https://www.leavesongs.com/PENETRATION/php-filter-magic.html

vmware ware station "docker daemon unable to access registry - Client.Timeout exceeded while awaiting headers"問題與解決

有鑑於上一篇debain9安裝docker時,由於我是在學校宿舍 阿學校宿舍好像DNS有問題還是我VM有問題我不知道 總之,在網卡是bridge mode時總是會出現以下 "docker daemon unable to access registry - Client.Timeout exceeded while awaiting headers" 這咚咚 但網卡調成NAT又沒事 ,由於我需要SSH 但又要docker可以pull 無奈只能繼續用NAT,那NAT情況下,VM會給你的虛擬機一個privte ip 這時候如過又要從外部SSH進來就用到windows的ip forward功能了 不廢話 直上指令>> netsh interface portproxy add v4tov4 listenport="host OS port" listenaddress="host OS IP "connectport="guest OS port" connectaddress="guest OS IP" 記得不用加""號 host OS 的部分打你主體機 guest OS的部分打你虛擬機 解決 有SSH可以用 docker可以pull 雖然這辦法很折衷啦.....

debain 9 安裝Docker Engine (CE)

其實官網就已經講得很明白了啦,但這邊就做一下筆記..... sudo apt-get remove docker docker-engine docker.io <<這一行 假如你是新機器 或沒裝過 就不用打 sudo apt-get update sudo apt-get install \      apt-transport-https \      ca-certificates \      curl \      gnupg2 \      software-properties-common curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - 然後對一下指紋 :9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88 sudo apt-key fingerprint 0EBFCD88  <<用這行命令來找 sudo add-apt-repository \    "deb [arch=amd64] https://download.docker.com/linux/debian \    $(lsb_release -cs) \    stable" <<加到apt-repository sudo apt-get update sudo apt-get install docker-ce 這樣就可以了 官網 網址: https://docs.docker.com/install/linux/docker-ce/debian/#install-docker-ce-1

burp suite 監聽https封包

不囉嗦 直接上影片 https://youtu.be/V0SLdSsJTGM

在debain安裝DVWA

apt-get install apache2 apt-get install mysql-server apt-get install php7.0 apt-get install php-mysql apt-get install php-gd rm /var/www/html/index.html cd /var/www/html 去下載DVWA unzip DVWA-master cp -r DVWA-master DVWA #這部看你要不要做 只是把路徑縮短一點 cp /var/www/html/DVWA/config/config.inc.php.dist config.inc.php vim config.inc.php db_user 改user db_password 改password vim /etc/php/7.0/apache2/php.ini 找到以下兩個然後On allow_url_include allow_url_fopen 調整MYSQL mysql -u root -p create database dvwa; CREATE USER 'user'@'127.0.0.1' IDENTIFIED BY 'password'; grant all on dvwa.* to 'user'@'127.0.0.1'; flush privileges; exit systemctl enable apache2 #開機啟動 systemctl restart apache2 防火牆 我是用firwalld啦 看你有沒有防火牆 <code class="prettyprint"> firewall-cmd --zone=public --add-port=80/tcp --permanent firewall-cmd --zone=public --add-port=443/tcp --permanent firewall-cmd --reload </code>