Tips: 本项目后期将会有更新整合, 更多脚本工具即将呼之欲出!
欢迎各位朋友持续关注我的 WeiyiGeek Blog's 站点或者 WeiyiGeek 公众号 ,并可以在其中进行留言交流, 共同学习进步 (๑′ᴗ‵๑) ❤。
项目介绍: 自己闲来无事所写以及工作中抽取的安全/运维/开发方面的代码小脚本 ,希望大家多多star支持。
Home Page: https://blog.weiyigeek.top
Tips: 本项目后期将会有更新整合, 更多脚本工具即将呼之欲出!
欢迎各位朋友持续关注我的 WeiyiGeek Blog's 站点或者 WeiyiGeek 公众号 ,并可以在其中进行留言交流, 共同学习进步 (๑′ᴗ‵๑) ❤。
可通过添加防火墙规则,禁用135,139访问
netsh advfirewall firewall add rule name="stop listening at TCP port 135,139" protocol=TCP dir=in localport=135,139 action=block enable=yes
发现脚本中已经有了。抱歉。
systemctl mask ufw.servicee >/dev/null 2>&1
--> systemctl unmask ufw.service >/dev/null 2>&1
这个咋恢复到原来的配置啊 网络出问题了
大佬,我获取了windows的加固脚本 然后修改了一些地方再给到别人使用的时候中文都变成了乱码。直接就报错了
谢谢
if($Account.Length -ge 4 -and ($Account.sid | Select-String -Pattern "^((?!(-500|-501|-503|-504)).)*$")) {
当有网卡被禁用时,会报错,应该加个筛选Up状态的
$SysNetAdapter = @{}
function F_SysNetAdapter {
$Adapter = Get-NetAdapter | Where-Object {$_.Status -eq "Up"} | Sort-Object -Property LinkSpeed
foreach ( $Item in $Adapter) {
$IPAddress = (Get-NetIPAddress -AddressFamily IPv4 -InterfaceIndex $Item.ifIndex).IPAddress
}
return $SysNetAdapter
}
这个脚本
windows10LTCS2019使用后,计算机管理-用户与组,用户名就重命名不了了。新建用户后,也是重命名不了。
对比了加固前后的cfg,还原系统组策略安全选项策略,还是重命名不了。
也看不出脚本哪里有影响。
另外:
脚本少了新建用户,三权分立。
日志缺少了调不覆盖事件。
I didn't find the security hardening script
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.