常用命令

tcpdump -i ens18 not ip6 and "udp or tcp or icmp" and src host 10.0.0.1 -n -w /tmp/save.pcap

抓包并保存

sudo tcpdump -i ens18 host 10.130.10.197 and udp and port 2425 -n -w /tmp/test.cap

SYN包

sudo tcpdump -i ens18 "tcp[tcpflags] & (tcp-syn) != 0" -n

10.130.10.190~10.130.10.198范围内的包

tcpdump -i ens18 -n not host 10.5.73.155 and not arp and -nn 'ip[16] == 10 and ip[17] == 130 and ip[18] == 10 and ip[19] > 190 and ip[19] < 198'

tcpdump -i ens18 dst portrange 1-1024 -n

windows进程查看:

进程查看

Get-NetTCPConnection -State Listen
Get-Process -Id 692
Get-NetTCPConnection | Select-Object -Property *
Get-NetTCPConnection -RemotePort 443
netstat -a |findstr xxx

 

 

【windows 承载网络配置】

netsh wlan show drivers 查看网卡驱动是否支持承载网络;

设置承载网络:netsh wlan set hostednetwork mode=allow ssid=ssid_test key=password_of_wifi

netsh wlan start hostednetwork


LVM卷的挂载:
vgscan 扫描LVM卷
vgchange -ay 激活所有LVM卷
lvs 查看LVM卷详细信息
挂载LVM卷 mount /dev/mapper/DEV/mnt
mkfs.ext4 /dev/sdb1 格式化
fdisk -l /dev/sdb 查看
fdisk /dev/sdb 操作(删除分区等)

 

select * from mysql.user where user='root'\G;
DESC mysql.user; 表的结构
UPDATE ac_user SET password_=md5("test") WHERE username="test";
INSERT INTO web_conf.sys_user (ID, USERNAME, PASSWORD) values (5, "test", md5("123"));

数据库导入: mysql -Dtest_sys < ./base_platform/config/data.sql

 

导入记录:
use test_sys;
INSERT INTO `sac_element` VALUES ('1', 'userManager:view', 'uri', '查询', '/v1/user/{*}', '2', '2', '', 'GET', '查询用户', 'system', '2018-11-09 14:35:54', 'admin', '2018-12-30 16:53:10', '1');

INSERT INTO `sac_user` VALUES ('1', 'system', '内置管理员', '{bcrypt}$2a$10$BGFa1B9scES9Tnxf3alqYehwuOdPcZ2PotuGXt5zTqnEZHriRAN6jf', '内置系统用户', '18080000000', 'system@test.com', '1', '1', '18080000000', null, null, '系统内置>管理员,拥有系统所有权限。', 'system', '2018-04-26 18:18:06', 'admin', '2018-12-26 11:19:16', '1');

 

posted @ 2021-10-27 16:23  Ray.floyd  阅读(26)  评论(0编辑  收藏  举报