kali linux 2.0 tips(長期更新)

  1. 安裝好系統後想改變系統默認語言(中文改變到英文)

    dpkg-reconfigure locales

    選擇en_US(UTF8)


  2. 沒有菜單編輯器,菜單編輯起來不方便

    apt-get install alacarte


  3. 將默認的gnome桌面更換爲小巧快速的xfce桌面

    step 1: apt-get install kali-defaults kali-root-login desktop-base xfce4 xfce4-places-plugin xfce4-goodies

    step 2: update-alternatives --config x-session-manager


  4. weevely運行失敗,顯示“ImportError: No module named sockshandler”,官方論壇可以搜索到解決方法:

    step 1: Download last PySocks from python site https://pypi.python.org/pypi/PySocks/

    step 2: ./setup.py install  (論壇裏說要先setup.py build,但貌似不用)

    step 3: Enjoy weevely!


  5. 關於字典的幾個小命令

    (1)爲字典去重:sort xxx.dic |uniq >new.dic

    (2)去除字典中長度小於8的字符串:awk 'length($1)>7 {print($1)}' > new.dic


  6. tor browser默認不能在root下運行,很不爽,怎麼破?

    方法一:建立普通用戶xxx,然後xhost + xxx,再運行./start-tor-browser

    方法二:建立普通用戶xxx,然後gksu -u xxx ./start-tor-browser


  7. 偶比較喜歡的vim最基本配置

    set number
    syntax on
    set ruler
    set cursorline
    set cursorcolumn
    set incsearch
    colorscheme slate



  8. 使用tor

    (1)apt-get install tor privoxy

    (2)vim /etc/privoxy/config

    (3)sqlmap --tor --tor-port 9050 --tor-type SOCKS5

    (4)firefox, use proxy switcher,  127.0.0.1:9050,socks5


  9. 設置CentOS靶機時,解決mysql不能啓動的問題

    在網上搜了半天,原來是CentOS自帶 MariaDB與MySQL衝突的原因

    解決方法如上:

    (1)安裝mariadb(如果沒有安裝的話):yum install mariadb mariadb-server

    (2)systemctl enable mariadb.service

    (3)systemctl start mariadb.service

    (4)mysql_secure_installation


  10. 命令行下查詢自己的外網ip

    curl cip.cc

    curl ip.cip.cc(純IP)

    proxychains curl cip.cc(看看你的代理設置好沒有)


    To be continued...

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章