liunx的配置

其中有kali和ubuntu的配置以及更新

更新源

kali

更新
sudo gedit /etc/apt/sources.list

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
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://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free
deb-src http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free
deb http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib
deb-src http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib
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

ubuntu

更新
sudo gedit /etc/apt/sources.list
替换成(这是台湾源)

1
2
3
4
5
6
7
8
9
10
11
12
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ xenial partner
deb http://extras.ubuntu.com/ubuntu/ xenial main

接着更新

1
2
sudo apt-get update
sudo apt-get upgrade

如果更新不了,就清除缓存
sudo rm -vfr /var/lib/apt/lists/*
如果出现
Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)
把system settings->software&updata->other software->带有main的网站的钩去掉

安装程序

安装git

1
2
3
4
sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw
sudo tlp start

更换shell

查看shell
cat /etc/shells
安装zsh
sudo apt-get install zsh

接着安装oh-My-Zsh

1
2
3
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
chsh -s /bin/zsh

输入zsh

安装pip

1
sudo apt-get install python-pip

安装binwalk

1
2
3
4
git clone https://github.com/devttys0/binwalk
sudo python setup.py install
sudo apt-get install python-lzma
sudo apt-get install python-crypto

安装pwntools

1
pip install pwntools

安装libnum与gmpy2

libnum(只支持python2.7)

1
2
3
git clone https://github.com/hellman/libnum
cd libnum
python setup.py install

gmpy2
https://blog.csdn.net/wanzt123/article/details/71036184
使用

1
2
3
4
5
6
7
8
9
10
11
12
import libnum
import gmpy2
p = 13574881
q = 23781539
e = 23
d =gmpy2.invert(e,(p-1)*(q-1))
m=pow(c,d,n)
s= libnum.n2s(m)
print s
for i in xrange(100+1):
if gmpy2.is_prime(i):
print i

安装mips架构

https://www.cnblogs.com/WangAoBo/p/debug-arm-mips-on-linux.html

1
2
3
qemu-mipsel -L /usr/mipsel-linux-gnu ./mips
ju5t+4n0ther+base64+xor+Inn+mips
Here is Flag: flag{ju5t+4n0ther+base64+xor+Inn+mips}

Donate
-------------本文结束感谢您的阅读-------------