kali linux 安装后配置
查看kali linux版本
lsb_release -a
root@dnoir:~# lsb_release -a
No LSB modules are available.
Distributor ID: Kali
Description: Kali GNU/Linux Rolling
Release: kali-rolling
Codename: kali-rolling
:~# vim /etc/apt/sources.list
Kali Rolling源
deb http://http.kali.org/kali kali-rolling main non-free contrib deb http://mirrors.aliyun.com/debian stable main contrib non-free deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
or
deb http://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free deb-src https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free deb http://http.kali.org/kali kali-rolling main non-free contrib deb-src http://http.kali.org/kali kali-rolling main non-free contrib
安装Google中文输入法
apt-get install fcitx
apt-get install fcitx-googlepinyin
reboot
Ctrl+空格 切换输入法
安装微信 :
git地址
https://github.com/geeeeeeeeek/electronic-wechat
wget https://github.com/geeeeeeeeek/electronic-wechat/releases/download/V2.0/linux-x64.tar.gz
virtualbox
wget http://download.virtualbox.org/virtualbox/5.1.2/virtualbox-5.1_5.1.2-108956~Debian~jessie_amd64.deb
wget http://download.virtualbox.org/virtualbox/5.1.2/virtualbox-5.1_5.1.2-108956~Debian~jessie_amd64.deb
--2019-06-16 11:22:11-- http://download.virtualbox.org/virtualbox/5.1.2/virtualbox-5.1_5.1.2-108956~Debian~jessie_amd64.deb 正在解析主机 download.virtualbox.org (download.virtualbox.org)... 104.118.31.125 正在连接 download.virtualbox.org (download.virtualbox.org)|104.118.31.125|:80... 已连接。 已发出 HTTP 请求,正在等待回应... 200 OK 长度:64376690 (61M) [text/plain] 正在保存至: “virtualbox-5.1_5.1.2-108956~Debian~jessie_amd64.deb” virtualbox-5.1_5.1. 100%[===================>] 61.39M 56.2KB/s 用时 22m 47s 2019-06-16 11:44:59 (46.0 KB/s) - 已保存 “virtualbox-5.1_5.1.2-108956~Debian~jessie_amd64.deb” [64376690/64376690])
jdk
https://www.oracle.com/technetwork/java/javase/downloads/index.html
tar -zxvf jdk-8u211-linux-x64.tar.gz
mv jdk1.8.0_211/ /opt/
/opt/jdk1.8.0_211# ls bin lib src.zip COPYRIGHT LICENSE THIRDPARTYLICENSEREADME-JAVAFX.txt include man THIRDPARTYLICENSEREADME.txt javafx-src.zip README.html jre release root@dnoir:/opt/jdk1.8.0_211# gedit ~/.bashrc
添加: # install JAVA JDK export JAVA_HOME=/opt/jdk1.8.0_211 export CLASSPATH=.:${JAVA_HOME}/lib export PATH=${JAVA_HOME}/bin:$PATH
执行:
source ~/.bashrc
java -version java version "1.8.0_211" Java(TM) SE Runtime Environment (build 1.8.0_211-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.211-b12, mixed mode)
安装微信:
git clone https://github.com/geeeeeeeeek/electronic-wechat.git
正克隆到 'electronic-wechat'... remote: Enumerating objects: 1380, done. remote: Total 1380 (delta 0), reused 0 (delta 0), pack-reused 1380 接收对象中: 100% (1380/1380), 1.09 MiB | 62.00 KiB/s, 完成. 处理 delta 中: 100% (754/754), 完成.
root@dnoir:~/下载# cd electronic-wechat/
root@dnoir:~/下载/electronic-wechat# ls assets CONTRIBUTING.md package.json scripts CHANGELOG.md ISSUE_TEMPLATE.md README.md src config.json LICENSE.md README_zh.md
root@dnoir:~/下载/electronic-wechat# npm install&&npm start npm WARN npm npm does not support Node.js v10.15.2 npm WARN npm You should probably upgrade to a newer version of node as we npm WARN npm can't make any promises that npm will work with this version. npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9. npm WARN npm You can find the latest version at https://nodejs.org/ npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor. > nodejieba@2.3.1 install /root/下载/electronic-wechat/node_modules/nodejieba > node-gyp rebuild
node 版本太高
root@dnoir:~# node -v v10.15.2 root@dnoir:~# npm -v 5.8.0
安装npm
https://nodejs.org/en/
解压移动到opt目录下
mv node-v10.16.0-linux-x64 /opt/
创建软链接
:/opt/node-v10.16.0-linux-x64/bin# ls node npm npx root@dnoir:/opt/node-v10.16.0-linux-x64/bin# sudo ln -s /opt/node-v10.16.0-linux-x64/bin/node /usr/local/bin/node
root@dnoir:/opt/node-v10.16.0-linux-x64/bin# sudo ln -s /opt/node-v10.16.0-linux-x64/bin/npm /usr/local/bin/npm
root@dnoir:~# node -v v10.16.0 root@dnoir:~# npm -v 6.9.0
报错: root@dnoir:~/下载# cd electronic-wechat/ root@dnoir:~/下载/electronic-wechat# ls assets CONTRIBUTING.md node_modules README_zh.md CHANGELOG.md ISSUE_TEMPLATE.md package.json scripts config.json LICENSE.md README.md src root@dnoir:~/下载/electronic-wechat# npm install && npm start npm notice created a lockfile as package-lock.json. You should commit this file. audited 1234 packages in 2.931s found 3 vulnerabilities (2 high, 1 critical) run `npm audit fix` to fix them, or `npm audit` for details > electronic-wechat@2.0.0 start /root/下载/electronic-wechat > electron src/main.js
root@dnoir:~/下载/electronic-wechat# npm audit fix
up to date in 1.103s fixed 0 of 3 vulnerabilities in 1234 scanned packages 1 package update for 3 vulns involved breaking changes (use `npm audit fix --force` to install breaking changes; or refer to `npm audit` for steps to fix these manually)
root@dnoir:~/下载/electronic-wechat# npm audit fix --force
npm WARN using --force I sure hope you know what you are doing. > electron@5.0.4 postinstall /root/下载/electronic-wechat/node_modules/electron > node install.js /root/下载/electronic-wechat/node_modules/electron/install.js:49 throw err ^ Error: EACCES: permission denied, mkdir '/root/下载/electronic-wechat/node_modules/electron/.electron' + electron@5.0.4 added 5 packages from 40 contributors, removed 2 packages and updated 4 packages in 4.913s fixed 3 of 3 vulnerabilities in 1234 scanned packages 1 package update for 3 vulns involved breaking changes (installed due to `--force` option)
再执行一次,依旧报错
root@dnoir:~/下载/electronic-wechat# npm install && npm start audited 1215 packages in 4.423s found 0 vulnerabilities > electronic-wechat@2.0.0 start /root/下载/electronic-wechat > electron src/main.js /root/下载/electronic-wechat/node_modules/electron/index.js:14 throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again') ^ Error: Electron failed to install correctly, please delete node_modules/electron and try installing again at getElectronPath (/root/下载/electronic-wechat/node_modules/electron/index.js:14:11) at Object.<anonymous> (/root/下载/electronic-wechat/node_modules/electron/index.js:18:18) at Module._compile (internal/modules/cjs/loader.js:776:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:690:17) at require (internal/modules/cjs/helpers.js:25:18) at Object.<anonymous> (/root/下载/electronic-wechat/node_modules/electron/cli.js:3:16) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! electronic-wechat@2.0.0 start: `electron src/main.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the electronic-wechat@2.0.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2019-06-16T04_57_39_805Z-debug.log
更换cnpm
root@dnoir:~/下载/electronic-wechat# npm install -g cnpm --registry=https://registry.npm.taobao.org /opt/node-v10.16.0-linux-x64/bin/cnpm -> /opt/node-v10.16.0-linux-x64/lib/node_modules/cnpm/bin/cnpm + cnpm@6.1.0 added 684 packages from 900 contributors in 20.157s
安装crossover(MAC/LINUX运行windows软件)
让kali兼容32位的系统软件
dpkg --add-architecture i386
apt-get update
apt-get install gdebi -y
gdebi crossover*.deb
apt-get install libgphoto2-6:i386
打开软件
posted on 2019-06-15 13:51 Ra7ing安全实验室 阅读(2497) 评论(0) 编辑 收藏 举报