How To Modify Your Proxy Settings with Powershell

Proxy servers are everywhere and used for more than one purpose. Frequently a bad configuration of a proxy server on the device can be the root cause of users navigation problems or negative experience, needless to say, that companies use group policies to manage proxy settings or transparent proxy in a router/firewall to avoid this problem.

But in general, a proxy server has a positive impact on the user experience and sometimes the user is not even aware of it. Continue reading “How To Modify Your Proxy Settings with Powershell”

BaSH and NMap to list all devices connected to a guest wi-fi network

Monitoring your network resources and infrastructure effectively requires planning, knowledge of the metrics and experience of how to set up the threshold for warning and critical alarms and a lot of testing.

It’s very hard to focus on signals where there is too much noise.

Usually the tool you’re using doesn’t matter so much, what it’s really important what to implement more than how. And even if the configuration and the design are different we should be able to achieve similar results.

In this example I use a very popular tool such NMAP and with BaSH create a plain text report of a guest wi-fi network that sometime I want to generate.

Continue reading “BaSH and NMap to list all devices connected to a guest wi-fi network”

PowerShell Requires Statements

When we write code we make assumptions on the environment and the correct execution and most importantly obtaining the expecting result strictly depends on it.
I will not touch on software design or testing process, but just focus on an essential foundation that everyone should think to write better code and more efficient. Preventing to revisit code looking for answer the question of why is not working as expected.

Continue reading “PowerShell Requires Statements”

Audit Office Documents with Macros with Powershell

Every organisation sooner or later has to deal with Office documents with macros enabled. Risk assessment and auditing are the first steps when planning to disable them via group policy or just to mitigate risk implied.

The priority should target real usage and avoid any untrusted macro. In this article I will try to help to create a simple report where we can simply leverage powershell to find documents with macros enabled.

Continue reading “Audit Office Documents with Macros with Powershell”