admin管理员组

文章数量:1595240

目录

  • 系统配置
    • 查看系统架构
    • 屏幕演示工具
    • 合并终端命令
    • Windows cmd命令提示符重启网卡
    • 禁止系统更新
    • CMD运行powshell
    • 获取文件安装目录
    • 微软VC++运行库合集
    • 强制刷新IP
    • 默认程序打开文件
    • SSH免密登录
    • 关闭IE增强配置警告
    • 滑动关机
    • 最近操作记录
    • 解决谷歌翻译
    • 禁止系统休眠
    • 文件传输
    • 文件批量改名
  • 常用命令
    • 正则匹配所有空格不包括换行
    • 简单的Shell编程
    • 随机的user-agent
  • 工具设置
    • 破解Excel表密码
    • 破解Word表密码
    • listary调用文件
    • kali设置代理
    • tcping:检测IP端口状态和ping值
    • MyKeyFinde:密钥查看器
    • Fortify 中文乱码
  • windows/office激活
    • 激活win10/11
    • Office一条龙
  • 办公
    • 通杀在线简历
    • 公文写作神器

系统配置

查看系统架构

dpkg --print-architecture

屏幕演示工具

ZoomIt 是一款微软出品的、能增强屏幕演示体验的小工具,可通过快捷键轻松实现屏幕缩放、批注、录屏、截图等多种实用功能。
使用参见:https://mp.weixin.qq/s/8HrcHJb9mrzfiYMheKf0Eg

合并终端命令

使用 ; 把两条命令合并为1个命令

Windows cmd命令提示符重启网卡

文章镜像:https://blog.csdn/m0_66757371/article/details/125143570
应用场景:使用Vmware虚拟机的时候,偶尔会需要重启网卡才能正常连接虚拟机

  1. 查询计算机上所有的网卡(包括虚拟网卡)netsh interface show interface

  1. 操作网卡的指令
关闭网卡:
netsh interface set interface "要操作的网卡名称" disable

开启网卡:
netsh interface set interface "要操作的网卡名称" enable

以虚拟网卡VMnet8为例,重启网卡【注意:要以管理员的身份运行!!!】
netsh interface set interface "VMware Network Adapter VMnet8" disable
netsh interface set interface "VMware Network Adapter VMnet8" enable
  1. 使用bat批处理

如果需要经常重启这张网卡的话,可以保存到bat批处理文件中去,不用再反复的敲命令行了,解放双手更方便。复制我的代码,将VMware Network Adapter VMnet8替换为你要重启的网卡名称即可。代码如下:

@echo off
echo 正在重启网卡VMnet8、Hostonly
netsh interface set interface "VMware Network Adapter VMnet8" disable
netsh interface set interface "VirtualBox Host-Only Network" disable
echo 网卡已关闭
netsh interface set interface "VMware Network Adapter VMnet8" enabled
netsh interface set interface "VirtualBox Host-Only Network" enabled
echo 网卡重启成功
pause


**补充:**更懒的人还可以将bat程序设置开机自启等,比如:
将其添加到开机自启文件夹,参考链接:window10设置开机后自启动.bat文件
将其添加到任务计划中去,参考链接:Windows通过计划任务定时执行bat文件

禁止系统更新

推荐视频教程:https://www.bilibili/video/BV1FM4y1i76d
Windows 系统各版本的更新策略:https://mp.weixin.qq/s/2xsdxlSNFFK_peiUwoJSpw

方案1:使用工具“Windows Update Blocker v1.7”简单粗暴的禁止系统更新
非常简单粗暴,后果是影响Windows Update服务,可能导致Vindows应用商店无法使用、无法自动下载运行库组件、驱动等

都是工具,联想的吃相就比较难看了,需要付费才行
https://iknow.lenovo/detail/200768?type=1&keyword=&keyWordId=

方案2:修改注册表
就是视频教程中提到的,通过修改注册表实现修改暂停更新的时间。譬如我想暂停更新3000天:

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v FlightSettingsMaxPauseDays /t reg_dword /d 3000 /f


CMD运行powshell

  1. 执行命令查询powshell版本:powershell -Command "$PSVersionTable.PSVersion"

  1. 运行powshell脚本

一个用来创建账号的脚本:https://github/3gstudent/Windows-User-Clone

powershell -Command Import-Module .\Windows-User-Clone.ps1
powershell -Command New-LocalUser test -Password (ConvertTo-SecureString -String '123456' -AsPlainText -Force)

获取文件安装目录

使用命令:wmic process where name="ToDesk.exe" get processid,executablepath,name

C:\Users\Administrator>wmic process where name="ToDesk.exe" get processid,executablepath,name
ExecutablePath                      Name        ProcessId
C:\Program Files\ToDesk\ToDesk.exe  ToDesk.exe  2632
C:\Program Files\ToDesk\ToDesk.exe  ToDesk.exe  2772

微软VC++运行库合集

  1. 吾爱破解:https://www.52pojie/thread-1741739-1-1.html

    https://www.52pojie/thread-1819323-1-1.html

  2. 360软件宝库:https://baoku.360/soft/show/appid/104698064

  3. 微软官方回答:Redirecting

强制刷新IP

局域网中IP被封,可使用如下命令刷新IP

ipconfig /release
ipconfig /renew

默认程序打开文件

xdg-open secret.jpg(xdg-open:使用默认的工具打开文件)

SSH免密登录

  1. windows生成:ssh-keygen -t rsa

  1. 配置目标机器
cat /home/kali/id_rsa.pub > authorized_keys
chmod 700 authorized_keys

关闭IE增强配置警告

滑动关机

搜索“SlideToShutDown.exe”,它应该位于C:\Windows\System32\SlideToShutDown.exe
双击它即可实现滑动关机。可以把它发送至桌面,替换图标。

最近操作记录

win+r快捷键,输入:recent,查看最近操作过的文件

解决谷歌翻译

  1. 找到离自己最近的谷歌服务器,拿到它的IP地址

方式1:cmd中执行命令:ping google -t,获取谷歌服务器地址
方式2:访问此地址,看看那个服务器离自己最近 https://ping.chinaz/translate.google

  1. 修改hosts

如:120.253.255.162 translate.googleapis

Windows系统: C:\Windows\System32\drivers\etc\hosts
Mac系统:		 /etc/hosts
Linux系统:	 /etc/hosts
Android系统: /system/etc/hosts
iOS系统:		 /etc/hosts
  1. 谷歌浏览器访问个英文网站,亲测可用

禁止系统休眠

参考:https://mp.weixin.qq/s/mwWI1bzs4mCBb2fryu5t-Q
使用工具:DontSleep。亲测好用。
官网:http://www.softwareok/
第三方地址:https://www.123pan/s/6zVRVv-OX1md.html

文件传输

# 直接传输
scp .\1.txt kali@192.168.229.128:/tmp/1.txt

# 指定端口号
scp -P 22 .\1.txt kali@192.168.229.128:/tmp/1.txt

文件批量改名

  1. https://www.52pojie/thread-1815735-1-1.html
  2. https://www.52pojie/thread-1817530-1-1.html

常用命令

正则匹配所有空格不包括换行

使用:[^\S\r\n]+

/\s/	// 匹配任何空白字符,包括空格、制表符、换页符等等。等价于 [ \f\n\r\t\v]。
/\x20/	// 匹配一个空格。
/\f/	// 匹配一个换页符。
/\n/	// 匹配一个换行符。
/\r/	// 匹配一个回车符。

简单的Shell编程

案例1:引自 https://www.yuque/u1881995/xwfvho/zqmzzp#VfIye

for i in $(seq 1 254); do sudo arping -c 2 192.168.56.$i | grep "bytes from" | cut -d " " -f 5 | cut -d"(" -f 2 | cut -d")" -f 1; done


案例2:批量跑数据包

for i in $(ls /home/kali/test); do tcpreplay -i eth1 -M 1000 $i; done

随机的user-agent

  1. https://epi052.github.io/feroxbuster-docs/docs/examples/random-agent/
  2. https://github/deibit/cansina/blob/master/core/ua.txt

工具设置

破解Excel表密码

https://www.youtube/watch?v=JaGJHdY8fzI

破解Word表密码

https://mp.weixin.qq/s/acEsL46hgfDosNgKhxQPhw

listary调用文件

参见:https://www.bilibili/video/BV1794y1R7nr
这里演示listary调用一个bat文件


桌面双击鼠标左键,即可打开bat文件

kali设置代理

物理机的Clash开启“允许局域网连接”

kali配置一下代理即可

tcping:检测IP端口状态和ping值

工具介绍与安装:https://zhuanlan.zhihu/p/268416050

MyKeyFinde:密钥查看器

软件介绍:https://mp.weixin.qq/s/do6jJEGVRnLVphKnswQhUw
软件已经备份网盘,搜索“Abelssoft MyKeyFinder Plus 2023 v12.03.47266 Portable.rar”

Fortify 中文乱码

参考:https://wwwblogs/uestc2007/p/16405258.html

windows/office激活

HEU KMS Activator下载:
地址1:https://wwi.lanzoup/b05gumbe 密码:9xum
地址2:https://github/zbezj/HEU_KMS_Activator/releases

使用说明书下载:https://wwi.lanzoup/b00qhqgab 密码:gki5
最近一次的更新介绍:https://mp.weixin.qq/s/Gk1G3SoMZ0-MzbUi0YTeQQ

激活win10/11

github项目地址:https://github/massgravel/Microsoft-Activation-Scripts
使用介绍:https://zhuanlan.zhihu/p/590422256
使用其实就是在powshell中执行这样一条命令:irm https://massgrave.dev/get | iex
举个例子,我这里有台win2012服务器,就不能激活,因为系统版本不对

Office一条龙

  1. Office Tool Plus:https://otp.landian.vip/zh-cn/
  2. LKY_OfficeTools:https://github/OdysseusYuan/LKY_OfficeTools

使用介绍:https://mp.weixin.qq/s/e9FTcmHGTHojGiE9r31xwA

办公

通杀在线简历

在线简历网站收费的话可以这么搞:

  1. 获取简历预览页面(有的预览简历带水印,无所谓),如:https://www.qmjianli/
  2. HTML转PDF:https://www.ilovepdf/zh-cn/html-to-pdf
  3. 下载专业的PDF工具:https://www.52pojie/thread-1270479-1-1.html

使用PDF软件删除水印,裁剪PDF尺寸

公文写作神器

[Windows] 公文写作神器 v2.8.3.22 去更新去广告版:https://www.52pojie/thread-1817116-1-1.html
下载地址:https://www.lanzoul/isa2I14d034b
2017-2022超全超大公文写作神器数据包:https://pan.quark/s/7f4e976b9157,
2017-2022各平台,各系列超全总结文档压缩包:https://pan.quark/s/606d573963bc

本文标签: 常用命令