get the interface id of the loop back interface

1
netsh int ip sh int

add the address to id

1
2
netsh int ip add addr <ID> <IP>/32 st=ac sk=tr
netsh int ip add addr 1 192.168.2.59/32 st=ac sk=tr

delete the address from id

1
2
netsh int ip delete addr <ID> <IP>
netsh int ip delete addr 1 192.168.2.59

Comment and share

  1. 用firefox瀏覽器取得https網站的server crt,並存成local.crt

    1
    google firefox get ssl cert
  2. 利用keytool產生java client端要用的client keysotre

    1
    2
    keytool -import -alias ocsg.keystore -keystore ocsg.keystore -file localhost.crt
    #建立的同時要輸入密碼,密碼會在下一步用到
Continue reading

官方的 Source 在台北連線實在很慢,,淡江大學資訊中心的伺服器有 Mirror 一份,直接改 /etc/apt/sources.list 替換成下面這兩個位址就可以了。

mirror site
1
2
http://ftp.tku.edu.tw/kali/ main non-free contrib
http://ftp.tku.edu.tw/kali-security/ kali/updates main contrib non-free

iso
1
http://ftp.tku.edu.tw/index.php?dir=Linux%2FKali%2F

Comment and share

  1. 下載jdk
  2. 解壓縮到/usr/java/

    1
    tar -zxvf jdk1.7.0_45.tar.gz
  3. 修改/etc/profile與/etc/profile/etc/bashrc,加入以下

    1
    2
    3
    # JDK environment
    JAVA_HOME=/usr/java/jdk1.7.0_45
    PATH=$PATH:$JAVA_HOME/bin/
  4. 登出再登入,or source /etc/profile

  5. java -version

Comment and share

Cwza

Hello everyone.
I’m cwza.
Welcome to my blog.


Software Engineer


Taiwan/Taipei