创建数据库: create database xxx查看所有数据库:show databases使用数据库: use xxx看数据库相关信息:show create database xxx删除数据库: drop database xxx更改数据集:alter database xxx default character set gbk collate gbk_bin
因为没什么技术含量,所以把源代码放在文章下面了 首先看看界面 第一个软件是给github加速,因为github经常打不开所以通过配置hosts来加速打开github,里面有三个接口。但是代理功能没写,因为懒。 第二个软件是设置定时关机,因为我经常凌晨跑程序和下载游戏,不想下床关电脑,我就自己写了一个定时关机的软件,来让电脑自动关机。 图形界面用的是PYQT5,没什么难度,却写的稀烂,还是想拿出来分享一下。 源码.zip 打包好的软件
kali开启ssh 一、配置SSH参数 修改sshd_config文件,命令为:vi /etc/ssh/sshd_config 将#PasswordAuthentication no的注释去掉,并且将NO修改为YES //kali中默认是yes 将PermitRootLogin without-password修改为PermitRootLogin yes 然后保存退出vi编辑器。 二、启动SSH服务 命令为:/etc/init.d/ssh start 或者service ssh start 查看SSH服务状态是否正常运行,命令为: /etc/init.d/ssh status 或者 service ssh status update-rc.d ssh enable //系统自动启动SSH服务 update-rc.d ssh disabled // 关闭系统自动启动SSH服务 用vnc连接图形化界面 1.安装启动kali界面kex sudo apt update #更新软件源 sudo apt install kali-win-kex cd ~ kex #启动界面 2.安装Kali
本文章讲解如何在服务器上使用docker安装kali 1.安装docker配置docker镜像源 yum install docker #安装 更改docker镜像源 在/etc/docker/daemon.json里 #若没有这个文件夹则mkdir /etc/docker 里面文件内容添加 { "registry-mirrors": ["https://docker.mirrors.ustc.edu.cn" ] } systemctl restart docker #重启docker服务 2.搜索kali的镜像并拉取 docker search kali 这便是搜索到的,需要拉取的话复制名字 如: docker pull donaldrich/kali-linux 查看已经拉取的镜像 docker images 3.容器相关 复制IMAGE ID docker run --name kali -id -p 100:22 -p 8000:8000 -p 8080:8080 -p 5902:5902 ID /bin/
虚拟机网络配置 首先打开vmware进入虚拟机的网卡设置,我这里使用的rhel系统(centos或者ubuntu都可用) 然后进入系统查看ip地址,一般为192.168.x.x 输入ip a(注意有个空格) 如果没有连接网卡,可以进入nmtui配置并且激活 做好之前的步骤后测试一下能不能ping 输入ping 114.114.114.114 安装宝塔 输入bt.cn的万能安装脚本 if [ -f /usr/bin/curl ];then curl -sSO https://download.bt.cn/install/install_panel.sh;else wget -O install_panel.sh https://download.bt.cn/install/install_panel.sh;fi;bash install_panel.sh ed8484bec 然后安装成功之后打开网址192.168.x.x:8888/xxxxxx(根据上方图片地址来访问) 如果打开宝塔后台网址失败 可以尝试关闭防火墙或者防火墙添加8888端口 关闭防火墙: systemctl st
admin