|
|
Browse by Tags
All Tags » PowerShell » Function
-
This post is about home-made netcat :) Of course this is only one function of it, but it can be useful too. Sometime you want to listen on some port and see data that arrives to it to analyze it. There is the script:
function Trace-Port([int]$port=23, [string]$IPAdress=''127.0.0.1'', ...
-
One of functions that i use very often is Get-WwwString. All what it does - downloads page from web and returns it in string. It is like unix command wget $url -O -
.Net have WebClient objects for doing things like this, so you just need to wrap it into function easy to use in PowerShell.
function Get-WwwContent ([string]$url, ...
|
|
|