Linux - Change Username and UID
Change Username and UID list user cat /etc/passwd grep -w '^username' /etc/passwd grep -w '^jerry' /etc/passwd check user id tom // login info grep '^tom:' /etc/passwd // group info ...
Change Username and UID list user cat /etc/passwd grep -w '^username' /etc/passwd grep -w '^jerry' /etc/passwd check user id tom // login info grep '^tom:' /etc/passwd // group info ...
Change a server’s hostname vi /etc/sysconfig/network #add HOSTNAME=server0.demo.local vi /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 loca...
Linux - 锁定账号 [toc] 锁定账号的设置完成后,在远程使用ssh命令将无法登陆系统 shell –> /sbin/nologin (推荐使用) 不仅可以禁止用户登录,还可以在禁用登陆时给提示告诉它这么做的原因。 修改/etc/nologin.txt,没有的就手动新建, 在里面添加给被禁止用户的提示(这种方式的所有用户的锁定信息都在这个文件中,在登陆时给与提示)。...
Linux 远程登录 [toc] Linux系统 通过ssh服务实现的远程登录功能,默认ssh服务端口号为 22。 远程登录Linux服务器来管理维护系统。 Linux 远程登录客户端有SecureCRT, Putty, SSH Secure Shell,Xshell CentOS系统默认安装了openssh ...
Linux - ubuntu command [TOC] network related checked network with lshw sudo lshw -C network *-network description: Wireless interface product: BCM4313 802.11bgn Wireless Network ...
Find and Kill Running Processes in Linux Find and Kill Running Processes in Linux Process Find Process PID Kill Processes Kill Multiple Process Process ...
Executing programs via command line three basic ways to run a ‘command’ in the Command Prompt. builtins (“internal commands”) These are commands built into cmd itself, and do not re...
4 枚举 [toc] 4.1 枚举服务 枚举是一类程序,它允许用户从一个网络中收集某一类的所有相关信息。 本节将介绍DNS枚举和SNMP枚举技术。 DNS枚举可以收集本地所有DNS服务和相关条目。帮助用户收集目标组织的关键信息,如用户名、计算机名和IP地址等,为了获取这些信息,用户可以使用DNSenum工具。 要进行SNMP枚举,用户需要使用SnmpEnum工具。Snmp...
2 Linux - Kali Setup [TOC] 2.1 准备内核头文件 内核头文件是Linux内核的源代码。 有时候,用户需要编译内核头文件代码,为以后使用内核头文件做准备,本节将介绍编译内核头文件的详细步骤。 准备内核头文件的具体操作步骤如下所示。 (1)更新软件包列表。 执行命令如下所示: root@Kali:~# apt-get update or root@Kal...
kali install [TOC] VB install download: https://www.offensive-security.com/kali-linux-vm-vmware-virtualbox-image-download/ 安装的磁盘空间的最小值是8GB。推荐至少25GB去保存附加程序和文件。 内存最好为512MB以上。 注意事项 设置–》...
error [toc] troubleshoot Error ├─Netowork unreachable : `ping` it │ ├─ping "Netowork unreachable" : check `ip route` │ ├─ping "Netowork unreachable" : `arp -a` ├─No route to host : │ ├─check...
Linux - Network Error [toc] ping fail /etc/resolv.conf gets regenerated on boot, prevent resolv.conf to be update at boot time, # resolv.conf nameserver 10.0.2.3 nameserver 192.168.1.1 namese...
Services things to close: (decrease attack surface) bluetooth linux GUI, X server yum groupremove - X windows systme IPv6 is not used. check the Services $ systemctl // what services a...
sudo [toc] sudo file Sudo is a program that allows users to run programs, on behalf of another user, typically, the super user or root. sudo file: specifies how sudo access is granted for a giv...
SELinux [toc] intro ref https://cn.linux.vbird.org/linux_basic/0440processcontrol_5.php MAC deny by Default log everything only allow exceptions one at a time .