mirror of
https://github.com/carlospolop/hacktricks
synced 2025-02-16 14:08:26 +00:00
GitBook: [#3252] No subject
This commit is contained in:
parent
aa5a4ff6d7
commit
a202d0eb92
2 changed files with 1 additions and 16 deletions
|
@ -316,7 +316,7 @@
|
|||
* [Python](network-services-pentesting/pentesting-web/python.md)
|
||||
* [Special HTTP headers](network-services-pentesting/pentesting-web/special-http-headers.md)
|
||||
* [Spring Actuators](network-services-pentesting/pentesting-web/spring-actuators.md)
|
||||
* [Symphony](network-services-pentesting/pentesting-web/symphony.md)
|
||||
* [Symfony](network-services-pentesting/pentesting-web/symphony.md)
|
||||
* [Tomcat](network-services-pentesting/pentesting-web/tomcat.md)
|
||||
* [Uncovering CloudFlare](network-services-pentesting/pentesting-web/uncovering-cloudflare.md)
|
||||
* [VMWare (ESX, VCenter...)](network-services-pentesting/pentesting-web/vmware-esx-vcenter....md)
|
||||
|
|
|
@ -383,21 +383,6 @@ Get-NetIPConfiguration | ft InterfaceAlias,InterfaceDescription,IPv4Address
|
|||
Get-DnsClientServerAddress -AddressFamily IPv4 | ft
|
||||
```
|
||||
|
||||
### Firewall
|
||||
|
||||
```bash
|
||||
Get-NetFirewallRule -Enabled True
|
||||
|
||||
Get-NetFirewallRule -Direction Outbound -Enabled True -Action Block
|
||||
Get-NetFirewallRule -Direction Outbound -Enabled True -Action Allow
|
||||
Get-NetFirewallRule -Direction Inbound -Enabled True -Action Block
|
||||
Get-NetFirewallRule -Direction Inbound -Enabled True -Action Allow
|
||||
|
||||
# Get name, proto, local and rremote ports, remote address, penable,profile and direction
|
||||
## You can user the following line changing the initial filters to indicat a difefrent direction or action
|
||||
Get-NetFirewallRule -Direction Outbound -Enabled True -Action Block | Format-Table -Property DisplayName, @{Name='Protocol';Expression={($PSItem | Get-NetFirewallPortFilter).Protocol}},@{Name='LocalPort';Expression={($PSItem | Get-NetFirewallPortFilter).LocalPort}}, @{Name='RemotePort';Expression={($PSItem | Get-NetFirewallPortFilter).RemotePort}},@{Name='RemoteAddress';Expression={($PSItem | Get-NetFirewallAddressFilter).RemoteAddress}},Profile,Direction,Action
|
||||
```
|
||||
|
||||
### Route
|
||||
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue